#include "third_party/blink/renderer/core/html/html_view_source_document.h"
#include "third_party/blink/public/strings/grit/blink_strings.h"
#include "third_party/blink/renderer/core/css/css_value_id_mappings.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/events/mouse_event.h"
#include "third_party/blink/renderer/core/html/forms/html_form_element.h"
#include "third_party/blink/renderer/core/html/forms/html_input_element.h"
#include "third_party/blink/renderer/core/html/forms/html_label_element.h"
#include "third_party/blink/renderer/core/html/html_anchor_element.h"
#include "third_party/blink/renderer/core/html/html_base_element.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/html/html_br_element.h"
#include "third_party/blink/renderer/core/html/html_div_element.h"
#include "third_party/blink/renderer/core/html/html_head_element.h"
#include "third_party/blink/renderer/core/html/html_html_element.h"
#include "third_party/blink/renderer/core/html/html_meta_element.h"
#include "third_party/blink/renderer/core/html/html_span_element.h"
#include "third_party/blink/renderer/core/html/html_table_cell_element.h"
#include "third_party/blink/renderer/core/html/html_table_element.h"
#include "third_party/blink/renderer/core/html/html_table_row_element.h"
#include "third_party/blink/renderer/core/html/html_table_section_element.h"
#include "third_party/blink/renderer/core/html/parser/html_view_source_parser.h"
#include "third_party/blink/renderer/core/input_type_names.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/text/platform_locale.h"
namespace blink {
class ViewSourceEventListener : public NativeEventListener { … };
HTMLViewSourceDocument::HTMLViewSourceDocument(const DocumentInit& initializer)
: … { … }
DocumentParser* HTMLViewSourceDocument::CreateParser() { … }
void HTMLViewSourceDocument::CreateContainingTable() { … }
void HTMLViewSourceDocument::AddSource(
const String& source,
HTMLToken& token,
const HTMLAttributesRanges& attributes_ranges,
int token_start) { … }
void HTMLViewSourceDocument::ProcessDoctypeToken(const String& source,
HTMLToken&) { … }
void HTMLViewSourceDocument::ProcessEndOfFileToken(const String& source,
HTMLToken&) { … }
void HTMLViewSourceDocument::ProcessTagToken(
const String& source,
const HTMLToken& token,
const HTMLAttributesRanges& attributes_ranges,
int token_start) { … }
void HTMLViewSourceDocument::ProcessCommentToken(const String& source,
HTMLToken&) { … }
void HTMLViewSourceDocument::ProcessCharacterToken(const String& source,
HTMLToken&) { … }
Element* HTMLViewSourceDocument::AddSpanWithClassName(
const AtomicString& class_name) { … }
void HTMLViewSourceDocument::AddLine(const AtomicString& class_name) { … }
void HTMLViewSourceDocument::FinishLine() { … }
void HTMLViewSourceDocument::AddText(const String& text,
const AtomicString& class_name) { … }
int HTMLViewSourceDocument::AddRange(const String& source,
int start,
int end,
const AtomicString& class_name,
bool is_link,
bool is_anchor,
const AtomicString& link) { … }
Element* HTMLViewSourceDocument::AddBase(const AtomicString& href) { … }
Element* HTMLViewSourceDocument::AddLink(const AtomicString& url,
bool is_anchor) { … }
int HTMLViewSourceDocument::AddSrcset(const String& source,
int start,
int end) { … }
void HTMLViewSourceDocument::Trace(Visitor* visitor) const { … }
}