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

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

Issue 1174823004: Unuse bitfields for ElementRareData::m_proxyCount. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add comment Created 5 years, 6 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 | « no previous file | 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 5f998e1a175df798dd48a5342cb1e2fa5b20f95f..bcd739cf05d7d796782502e1998914bdb2390157 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -129,7 +129,9 @@ public:
private:
short m_tabindex;
- unsigned short m_proxyCount : 10;
+ // As m_proxyCount usually doesn't exceed 10bits (1024), if you want to add some booleans you
+ // can steal some bits from m_proxyCount by using bitfields to prevent ElementRareData bloat.
+ unsigned short m_proxyCount;
LayoutSize m_minimumSizeForResizing;
IntSize m_savedLayerScrollOffset;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698