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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 3733b523b04a9678c891dad2714e5d71758c92cb..51e4cf640bd4f30cdcc9510a24a0637d51fae500 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -161,6 +161,16 @@ class CORE_EXPORT Element : public ContainerNode {
void setFloatingPointAttribute(const QualifiedName& attributeName,
double value);
+ // TODO: This is the wrong approach, but gets the job done. Find a more
+ // appropriate way of doing the same thing.
+ bool forceReattachDuringStyleRecalc() {
+ bool r = m_forceReattach;
+ m_forceReattach = false;
esprehn 2016/12/10 02:20:55 You don't need any of this. lazyReattach does the
+ return r;
+ }
+ void setForceReattach() { m_forceReattach = true; }
+ bool m_forceReattach = false;
+
// Call this to get the value of an attribute that is known not to be the
// style attribute or one of the SVG animatable attributes.
bool fastHasAttribute(const QualifiedName&) const;

Powered by Google App Engine
This is Rietveld 408576698