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

Unified Diff: Source/core/dom/Node.cpp

Issue 26270004: Element should not use confusingAndOftenMisusedAttached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index d9d7c2484c7468be55b58399c2a49b3a376d4257..deb789d648f5c49cb255d46064bf1b09c6317e2b 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -734,6 +734,11 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType, StyleChangeSource sou
markAncestorsWithChildNeedsStyleRecalc();
}
+bool Node::inActiveDocument() const
+{
+ return inDocument() && document().isActive();
+}
+
void Node::lazyAttach()
{
markAncestorsWithChildNeedsStyleRecalc();
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698