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

Unified Diff: Source/core/dom/ElementRareData.h

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Add a test for watching dynamic attribute changes Created 7 years, 4 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/Element.cpp ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementRareData.h
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h
index dcc8564febd099d6352699f0d99d1d160897d916..1cf550cc0f9d669063a5194786c739a52bb3b71b 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -95,6 +95,9 @@ public:
unsigned childIndex() const { return m_childIndex; }
void setChildIndex(unsigned index) { m_childIndex = index; }
+ bool renderStyleWatchedSelectorsRepresentedInSelectorWatch() const { return m_renderStyleWatchedSelectorsRepresentedInSelectorWatch; }
+ void setRenderStyleWatchedSelectorsRepresentedInSelectorWatch(bool value) { m_renderStyleWatchedSelectorsRepresentedInSelectorWatch = value; }
+
void clearShadow() { m_shadow = nullptr; }
ElementShadow* shadow() const { return m_shadow.get(); }
ElementShadow* ensureShadow()
@@ -167,6 +170,8 @@ private:
unsigned m_childrenAffectedByForwardPositionalRules : 1;
unsigned m_childrenAffectedByBackwardPositionalRules : 1;
+ unsigned m_renderStyleWatchedSelectorsRepresentedInSelectorWatch : 1;
+
unsigned m_isInsideRegion : 1;
RegionOversetState m_regionOversetState;
@@ -213,6 +218,7 @@ inline ElementRareData::ElementRareData(RenderObject* renderer)
, m_childrenAffectedByDirectAdjacentRules(false)
, m_childrenAffectedByForwardPositionalRules(false)
, m_childrenAffectedByBackwardPositionalRules(false)
+ , m_renderStyleWatchedSelectorsRepresentedInSelectorWatch(false)
, m_isInsideRegion(false)
, m_regionOversetState(RegionUndefined)
, m_minimumSizeForResizing(defaultMinimumSizeForResizing())
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698