Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: Source/core/editing/StyledMarkupAccumulator.cpp

Issue 1162113004: Refactoring: Change some functions in MarkupFormatter static (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/MarkupFormatter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/StyledMarkupAccumulator.cpp
diff --git a/Source/core/editing/StyledMarkupAccumulator.cpp b/Source/core/editing/StyledMarkupAccumulator.cpp
index 5f2ff485be8b035a4ecf4c52137a80fe2787fbd9..b424529f4fc1471f532b1efd3b8d36478e33ddcb 100644
--- a/Source/core/editing/StyledMarkupAccumulator.cpp
+++ b/Source/core/editing/StyledMarkupAccumulator.cpp
@@ -160,7 +160,7 @@ void StyledMarkupAccumulator::appendElement(StringBuilder& out, Element& element
// We'll handle the style attribute separately, below.
if (attribute.name() == styleAttr && shouldOverrideStyleAttr)
continue;
- m_accumulator.appendAttribute(out, element, attribute, 0);
+ m_accumulator.appendAttribute(out, element, attribute, nullptr);
}
if (shouldOverrideStyleAttr) {
@@ -192,7 +192,7 @@ void StyledMarkupAccumulator::appendElement(StringBuilder& out, Element& element
if (!newInlineStyle->isEmpty()) {
out.appendLiteral(" style=\"");
- m_accumulator.appendAttributeValue(out, newInlineStyle->style()->asText(), documentIsHTML);
+ MarkupFormatter::appendAttributeValue(out, newInlineStyle->style()->asText(), documentIsHTML);
out.append('\"');
}
}
@@ -209,7 +209,7 @@ void StyledMarkupAccumulator::appendStyleNodeOpenTag(StringBuilder& out, StylePr
else
out.appendLiteral("<span style=\"");
ASSERT(m_document);
- m_accumulator.appendAttributeValue(out, style->asText(), m_document->isHTMLDocument());
+ MarkupFormatter::appendAttributeValue(out, style->asText(), m_document->isHTMLDocument());
out.appendLiteral("\">");
}
« no previous file with comments | « Source/core/editing/MarkupFormatter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698