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

Unified Diff: Source/core/rendering/PointerEventsHitRules.h

Issue 612823004: Use bit-fields for space saving in PointerEventsHitRules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added COMPILE_ASSERT & s/bool/unsigned Created 6 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
Index: Source/core/rendering/PointerEventsHitRules.h
diff --git a/Source/core/rendering/PointerEventsHitRules.h b/Source/core/rendering/PointerEventsHitRules.h
index 21659e9d526bd7ed9bf7e1a2ce15eadd5e6a7cf9..845f9d252e5582c788c84628e0e3e77874799a7c 100644
--- a/Source/core/rendering/PointerEventsHitRules.h
+++ b/Source/core/rendering/PointerEventsHitRules.h
@@ -35,12 +35,12 @@ public:
PointerEventsHitRules(EHitTesting, const HitTestRequest&, EPointerEvents);
- bool requireVisible;
- bool requireFill;
- bool requireStroke;
- bool canHitStroke;
- bool canHitFill;
- bool canHitBoundingBox;
+ unsigned requireVisible : 1;
+ unsigned requireFill : 1;
+ unsigned requireStroke : 1;
+ unsigned canHitStroke : 1;
+ unsigned canHitFill : 1;
+ unsigned canHitBoundingBox : 1;
};
}
« no previous file with comments | « no previous file | Source/core/rendering/PointerEventsHitRules.cpp » ('j') | Source/core/rendering/PointerEventsHitRules.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698