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

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

Issue 1064123002: compositor-worker: Introduce CompositorProxy::disconnect(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix-win-for-realz Created 5 years, 8 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') | no next file » | 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 82ea814f7851062f74b4e1fd11cf0fa38c969ba1..f687588e85b4527cb2fb0605146e7385fdb41fb0 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -123,6 +123,14 @@ public:
bool hasPseudoElements() const;
void clearPseudoElements();
+ uint32_t incrementProxyCount() { return ++m_proxyCount; }
+ uint32_t decrementProxyCount()
+ {
+ ASSERT(m_proxyCount);
+ return --m_proxyCount;
+ }
+ uint32_t proxyCount() const { return m_proxyCount; }
+
void setCustomElementDefinition(PassRefPtrWillBeRawPtr<CustomElementDefinition> definition) { m_customElementDefinition = definition; }
CustomElementDefinition* customElementDefinition() const { return m_customElementDefinition.get(); }
@@ -134,7 +142,8 @@ public:
private:
short m_tabindex;
- bool m_tabStop;
+ unsigned short m_tabStop : 1;
+ unsigned short m_proxyCount : 10;
LayoutSize m_minimumSizeForResizing;
IntSize m_savedLayerScrollOffset;
@@ -168,6 +177,7 @@ inline ElementRareData::ElementRareData(LayoutObject* renderer)
: NodeRareData(renderer)
, m_tabindex(0)
, m_tabStop(true)
+ , m_proxyCount(0)
, m_minimumSizeForResizing(defaultMinimumSizeForResizing())
{
m_isElementRareData = true;
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698