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

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

Issue 2538953002: Remove hidden elements from MHTML (Closed)
Patch Set: Created 4 years, 1 month 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.h
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.h b/third_party/WebKit/Source/core/frame/FrameSerializer.h
index 856863fd3bbd6ee9b5008477fedd30417b4889ac..61540f9bee682ec128110352c57a05686863709f 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.h
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.h
@@ -67,6 +67,9 @@ class CORE_EXPORT FrameSerializer final {
public:
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;

Powered by Google App Engine
This is Rietveld 408576698