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

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

Issue 2538953002: Remove hidden elements from MHTML (Closed)
Patch Set: Fix trybots Created 4 years 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 | « chrome/test/data/save_page/style.htm ('k') | third_party/WebKit/Source/core/frame/FrameSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameSerializer.h
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.h b/third_party/WebKit/Source/core/frame/FrameSerializer.h
index 42d2681c4c9264275881200d5566029f36e39809..6758ab3ac47173922604e7f22de129d71932c7f2 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.h
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.h
@@ -69,6 +69,9 @@ class CORE_EXPORT FrameSerializer final {
class Delegate {
public:
+ // Controls whether HTML serialization should skip the given element.
+ virtual bool shouldIgnoreElement(const Element&) { return false; }
+
// Controls whether HTML serialization should skip the given attribute.
virtual bool shouldIgnoreAttribute(const Element&, const Attribute&) {
return false;
« no previous file with comments | « chrome/test/data/save_page/style.htm ('k') | third_party/WebKit/Source/core/frame/FrameSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698