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

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

Issue 612823004: Use bit-fields for space saving in PointerEventsHitRules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correction in #include 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
« no previous file with comments | « Source/core/rendering/PointerEventsHitRules.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/PointerEventsHitRules.cpp
diff --git a/Source/core/rendering/PointerEventsHitRules.cpp b/Source/core/rendering/PointerEventsHitRules.cpp
index 1691f0dfb8c1da42fa38cbaf0495132a702a82e4..375801d230942524e92fd1b1d159ff900064796b 100644
--- a/Source/core/rendering/PointerEventsHitRules.cpp
+++ b/Source/core/rendering/PointerEventsHitRules.cpp
@@ -20,8 +20,16 @@
#include "config.h"
#include "core/rendering/PointerEventsHitRules.h"
+#include "wtf/Assertions.h"
+
namespace blink {
+struct SameSizeAsPointerEventsHitRules {
+ unsigned bitfields;
+};
+
+COMPILE_ASSERT(sizeof(PointerEventsHitRules) <= sizeof(SameSizeAsPointerEventsHitRules), PointerEventsHitRules_should_stay_small);
+
PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, const HitTestRequest& request, EPointerEvents pointerEvents)
: requireVisible(false)
, requireFill(false)
« no previous file with comments | « Source/core/rendering/PointerEventsHitRules.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698