webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
WebCore::MarkupAccumulator Class Reference

#include <MarkupAccumulator.h>

Inheritance diagram for WebCore::MarkupAccumulator:
WebCore::PageSerializer::SerializerMarkupAccumulator WebCore::StyledMarkupAccumulator

Public Member Functions

 MarkupAccumulator (Vector< Node *> *, EAbsoluteURLs, const Range *=nullptr, EFragmentSerialization=HTMLFragmentSerialization)
 
virtual ~MarkupAccumulator ()
 
String serializeNodes (Node &targetNode, EChildrenOnly, Vector< QualifiedName > *tagNamesToSkip=nullptr)
 

Static Public Member Functions

static void appendCharactersReplacingEntities (StringBuilder &, const String &, unsigned, unsigned, EntityMask)
 

Protected Member Functions

size_t length () const
 
void concatenateMarkup (StringBuilder &)
 
void appendString (const String &)
 
void appendEndTag (const Node &node)
 
virtual void appendEndTag (const Element &)
 
virtual void appendCustomAttributes (StringBuilder &, const Element &, Namespaces *)
 
virtual void appendText (StringBuilder &, const Text &)
 
virtual void appendElement (StringBuilder &, const Element &, Namespaces *)
 
void appendStartTag (const Node &, Namespaces *=nullptr)
 
void appendOpenTag (StringBuilder &, const Element &, Namespaces *)
 
void appendCloseTag (StringBuilder &, const Element &)
 
void appendStartMarkup (StringBuilder &, const Node &, Namespaces *)
 
void appendEndMarkup (StringBuilder &, const Element &)
 
void appendAttributeValue (StringBuilder &, const String &, bool)
 
void appendNamespace (StringBuilder &, const AtomicString &prefix, const AtomicString &namespaceURI, Namespaces &, bool allowEmptyDefaultNS=false)
 
void appendXMLDeclaration (StringBuilder &, const Document &)
 
void appendDocumentType (StringBuilder &, const DocumentType &)
 
void appendProcessingInstruction (StringBuilder &, const String &target, const String &data)
 
void appendAttribute (StringBuilder &, const Element &, const Attribute &, Namespaces *)
 
void appendCDATASection (StringBuilder &, const String &)
 
bool shouldAddNamespaceElement (const Element &)
 
bool shouldAddNamespaceAttribute (const Attribute &, Namespaces &)
 
bool shouldSelfClose (const Element &)
 
bool elementCannotHaveEndTag (const Node &)
 
EntityMask entityMaskForText (const Text &) const
 

Static Protected Member Functions

static size_t totalLength (const Vector< String > &)
 

Protected Attributes

Vector< Node * > *const m_nodes
 
const Range *const m_range
 

Constructor & Destructor Documentation

◆ MarkupAccumulator()

WebCore::MarkupAccumulator::MarkupAccumulator ( Vector< Node *> *  nodes,
EAbsoluteURLs  resolveUrlsMethod,
const Range range = nullptr,
EFragmentSerialization  fragmentSerialization = HTMLFragmentSerialization 
)

◆ ~MarkupAccumulator()

WebCore::MarkupAccumulator::~MarkupAccumulator ( )
virtual

Member Function Documentation

◆ appendAttribute()

void WebCore::MarkupAccumulator::appendAttribute ( StringBuilder result,
const Element element,
const Attribute attribute,
Namespaces namespaces 
)
protected

◆ appendAttributeValue()

void WebCore::MarkupAccumulator::appendAttributeValue ( StringBuilder result,
const String attribute,
bool  documentIsHTML 
)
protected

◆ appendCDATASection()

void WebCore::MarkupAccumulator::appendCDATASection ( StringBuilder result,
const String section 
)
protected

◆ appendCharactersReplacingEntities()

void WebCore::MarkupAccumulator::appendCharactersReplacingEntities ( StringBuilder result,
const String source,
unsigned  offset,
unsigned  length,
EntityMask  entityMask 
)
static

◆ appendCloseTag()

void WebCore::MarkupAccumulator::appendCloseTag ( StringBuilder result,
const Element element 
)
protected

◆ appendCustomAttributes()

void WebCore::MarkupAccumulator::appendCustomAttributes ( StringBuilder ,
const Element ,
Namespaces  
)
protectedvirtual

◆ appendDocumentType()

void WebCore::MarkupAccumulator::appendDocumentType ( StringBuilder result,
const DocumentType documentType 
)
protected

◆ appendElement()

void WebCore::MarkupAccumulator::appendElement ( StringBuilder result,
const Element element,
Namespaces namespaces 
)
protectedvirtual

◆ appendEndMarkup()

void WebCore::MarkupAccumulator::appendEndMarkup ( StringBuilder result,
const Element element 
)
protected

◆ appendEndTag() [1/2]

void WebCore::MarkupAccumulator::appendEndTag ( const Node node)
inlineprotected

◆ appendEndTag() [2/2]

void WebCore::MarkupAccumulator::appendEndTag ( const Element element)
protectedvirtual

◆ appendNamespace()

void WebCore::MarkupAccumulator::appendNamespace ( StringBuilder result,
const AtomicString prefix,
const AtomicString namespaceURI,
Namespaces namespaces,
bool  allowEmptyDefaultNS = false 
)
protected

◆ appendOpenTag()

void WebCore::MarkupAccumulator::appendOpenTag ( StringBuilder result,
const Element element,
Namespaces namespaces 
)
protected

◆ appendProcessingInstruction()

void WebCore::MarkupAccumulator::appendProcessingInstruction ( StringBuilder result,
const String target,
const String data 
)
protected

◆ appendStartMarkup()

void WebCore::MarkupAccumulator::appendStartMarkup ( StringBuilder result,
const Node node,
Namespaces namespaces 
)
protected

◆ appendStartTag()

void WebCore::MarkupAccumulator::appendStartTag ( const Node node,
Namespaces namespaces = nullptr 
)
protected

◆ appendString()

void WebCore::MarkupAccumulator::appendString ( const String string)
protected

◆ appendText()

void WebCore::MarkupAccumulator::appendText ( StringBuilder result,
const Text text 
)
protectedvirtual

◆ appendXMLDeclaration()

void WebCore::MarkupAccumulator::appendXMLDeclaration ( StringBuilder result,
const Document document 
)
protected

◆ concatenateMarkup()

void WebCore::MarkupAccumulator::concatenateMarkup ( StringBuilder result)
protected

◆ elementCannotHaveEndTag()

bool WebCore::MarkupAccumulator::elementCannotHaveEndTag ( const Node node)
protected

◆ entityMaskForText()

EntityMask WebCore::MarkupAccumulator::entityMaskForText ( const Text text) const
protected

◆ length()

size_t WebCore::MarkupAccumulator::length ( void  ) const
inlineprotected

◆ serializeNodes()

String WebCore::MarkupAccumulator::serializeNodes ( Node targetNode,
EChildrenOnly  childrenOnly,
Vector< QualifiedName > *  tagNamesToSkip = nullptr 
)

◆ shouldAddNamespaceAttribute()

bool WebCore::MarkupAccumulator::shouldAddNamespaceAttribute ( const Attribute attribute,
Namespaces namespaces 
)
protected

◆ shouldAddNamespaceElement()

bool WebCore::MarkupAccumulator::shouldAddNamespaceElement ( const Element element)
protected

◆ shouldSelfClose()

bool WebCore::MarkupAccumulator::shouldSelfClose ( const Element element)
protected

◆ totalLength()

size_t WebCore::MarkupAccumulator::totalLength ( const Vector< String > &  strings)
staticprotected

Member Data Documentation

◆ m_nodes

Vector<Node*>* const WebCore::MarkupAccumulator::m_nodes
protected

◆ m_range

const Range* const WebCore::MarkupAccumulator::m_range
protected

The documentation for this class was generated from the following files: