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

Unified Diff: third_party/WebKit/Source/core/frame/FrameSerializer.cpp

Issue 2912213002: Support serializing shadow DOM to MHTML (Closed)
Patch Set: Strip anoter shadow attribute Created 3 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
Index: third_party/WebKit/Source/core/frame/FrameSerializer.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
index 2b43599d5ec2cdf32815f444145cd0cc924a45a7..272da6656166c969ebc2f8a178339e0e3aa230e7 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
@@ -102,6 +102,7 @@ class SerializerMarkupAccumulator : public MarkupAccumulator {
Namespaces*) override;
void AppendStartTag(Node&, Namespaces* = nullptr) override;
void AppendEndTag(const Element&) override;
+ std::pair<Node*, Element*> GetAuxiliaryDOMTree(const Element&) const override;
private:
void AppendAttributeValue(StringBuilder& out, const String& attribute_value);
@@ -232,6 +233,11 @@ void SerializerMarkupAccumulator::AppendEndTag(const Element& element) {
MarkupAccumulator::AppendEndTag(element);
}
+std::pair<Node*, Element*> SerializerMarkupAccumulator::GetAuxiliaryDOMTree(
+ const Element& element) const {
+ return delegate_.GetAuxiliaryDOMTree(element);
+}
+
void SerializerMarkupAccumulator::AppendAttributeValue(
StringBuilder& out,
const String& attribute_value) {
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.h ('k') | third_party/WebKit/Source/web/LocalFrameClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698