Home | History | Annotate | Download | only in editing

Lines Matching refs:markup

30 #include "core/editing/markup.h"
176 StringBuilder markup;
178 appendElement(markup, toElement(node), convertBlocksToInlines && isBlock(&node), rangeFullySelectsNode);
180 appendStartMarkup(markup, node, 0);
181 m_reversedPrecedingMarkup.append(markup.toString());
374 // This null check will prevent crashes (but create too much markup)
393 markup if we're not skipping the descendants
424 // Surround the currently accumulated markup with markup for ancestors we never opened as we leave the subtree(s) rooted at those ancestors.
494 // Add an interchange newline if a paragraph break is selected and a br won't already be added to the markup to represent it.
524 // the structure and appearance of the copied markup.
659 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromMarkup(Document& document, const String& markup, const String& baseURL, ParserContentPolicy parserContentPolicy)
665 fragment->parseHTML(markup, fakeBody.get(), parserContentPolicy);
712 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromMarkupWithContext(Document& document, const String& markup, unsigned fragmentStart, unsigned fragmentEnd,
715 // FIXME: Need to handle the case where the markup already contains these markers.
718 taggedMarkup.append(markup.left(fragmentStart));
720 taggedMarkup.append(markup.substring(fragmentStart, fragmentEnd - fragmentStart));
722 taggedMarkup.append(markup.substring(fragmentEnd));
905 StringBuilder markup;
906 markup.appendLiteral("<a href=\"");
907 markup.append(url.string());
908 markup.appendLiteral("\">");
909 MarkupAccumulator::appendCharactersReplacingEntities(markup, title, 0, title.length(), EntityMaskInPCDATA);
910 markup.appendLiteral("</a>");
911 return markup.toString();
914 PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentForInnerOuterHTML(const String& markup, Element* contextElement, ParserContentPolicy parserContentPolicy, const char* method, ExceptionState& exceptionState)
921 fragment->parseHTML(markup, contextElement, parserContentPolicy);
925 bool wasValid = fragment->parseXML(markup, contextElement, parserContentPolicy);
927 exceptionState.throwDOMException(SyntaxError, "The provided markup is invalid XML, and therefore cannot be inserted into an XML document.");
982 PassRefPtrWillBeRawPtr<DocumentFragment> createContextualFragment(const String& markup, Element* element, ParserContentPolicy parserContentPolicy, ExceptionState& exceptionState)
990 RefPtrWillBeRawPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, element, parserContentPolicy, "createContextualFragment", exceptionState);