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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: . 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
Index: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index 8725bf275c9008b7177b6b66618e33d8a940b2e8..bda135e1cc0c6bf82250ad6bf4bff9f65c5bbd31 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -566,7 +566,7 @@ class CORE_EXPORT Node : public EventTarget {
return hasRareData() ? m_data.m_rareData->layoutObject()
: m_data.m_layoutObject;
}
- void setLayoutObject(LayoutObject* layoutObject) {
+ virtual void setLayoutObject(LayoutObject* layoutObject) {
if (hasRareData())
m_data.m_rareData->setLayoutObject(layoutObject);
else

Powered by Google App Engine
This is Rietveld 408576698