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

Unified Diff: Source/core/page/PageSerializer.cpp

Issue 426293002: Use tighter typing in editing: MarkupAccumulator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
Index: Source/core/page/PageSerializer.cpp
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp
index 9ec4e243ee3dd36269945a46056344a3321b7d3f..3ad1bda6be6607f085e40ac09c09693a7fe22128 100644
--- a/Source/core/page/PageSerializer.cpp
+++ b/Source/core/page/PageSerializer.cpp
@@ -108,7 +108,7 @@ protected:
virtual void appendText(StringBuilder& out, Text&) OVERRIDE;
virtual void appendElement(StringBuilder& out, Element&, Namespaces*) OVERRIDE;
virtual void appendCustomAttributes(StringBuilder& out, const Element&, Namespaces*) OVERRIDE;
- virtual void appendEndTag(const Node&) OVERRIDE;
+ virtual void appendEndTag(const Element&) OVERRIDE;
private:
PageSerializer* m_serializer;
@@ -167,10 +167,10 @@ void SerializerMarkupAccumulator::appendCustomAttributes(StringBuilder& out, con
appendAttribute(out, element, Attribute(frameOwnerURLAttributeName(frameOwner), AtomicString(url.string())), namespaces);
}
-void SerializerMarkupAccumulator::appendEndTag(const Node& node)
+void SerializerMarkupAccumulator::appendEndTag(const Element& element)
{
- if (node.isElementNode() && !shouldIgnoreElement(toElement(node)))
- MarkupAccumulator::appendEndTag(node);
+ if (!shouldIgnoreElement(element))
+ MarkupAccumulator::appendEndTag(element);
}
PageSerializer::PageSerializer(Vector<SerializedResource>* resources)
« Source/core/editing/MarkupAccumulator.cpp ('K') | « Source/core/editing/markup.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698