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

Unified Diff: third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp

Issue 2542843002: Changed EPointerEvents to an enum class and renamed its members to keywords (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp
diff --git a/third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp b/third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp
index cc8157932f0163d2cb79e7b504cadc4612a6257b..4f98e4dcf89d6a84a5c0b13ccc4708dd5374e3cd 100644
--- a/third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp
+++ b/third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp
@@ -41,80 +41,82 @@ PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting,
canHitFill(false),
canHitBoundingBox(false) {
if (request.svgClipContent())
- pointerEvents = PE_FILL;
+ pointerEvents = EPointerEvents::PE_FILL;
if (hitTesting == SVG_GEOMETRY_HITTESTING) {
switch (pointerEvents) {
- case PE_BOUNDINGBOX:
+ case EPointerEvents::PE_BOUNDINGBOX:
canHitBoundingBox = true;
break;
- case PE_VISIBLE_PAINTED:
- case PE_AUTO: // "auto" is like "visiblePainted" when in SVG content
+ case EPointerEvents::PE_VISIBLE_PAINTED:
+ case EPointerEvents::PE_AUTO: // "auto" is like "visiblePainted" when in
+ // SVG content
requireFill = true;
requireStroke = true;
- case PE_VISIBLE:
+ case EPointerEvents::PE_VISIBLE:
requireVisible = true;
canHitFill = true;
canHitStroke = true;
break;
- case PE_VISIBLE_FILL:
+ case EPointerEvents::PE_VISIBLE_FILL:
requireVisible = true;
canHitFill = true;
break;
- case PE_VISIBLE_STROKE:
+ case EPointerEvents::PE_VISIBLE_STROKE:
requireVisible = true;
canHitStroke = true;
break;
- case PE_PAINTED:
+ case EPointerEvents::PE_PAINTED:
requireFill = true;
requireStroke = true;
- case PE_ALL:
+ case EPointerEvents::PE_ALL:
canHitFill = true;
canHitStroke = true;
break;
- case PE_FILL:
+ case EPointerEvents::PE_FILL:
canHitFill = true;
break;
- case PE_STROKE:
+ case EPointerEvents::PE_STROKE:
canHitStroke = true;
break;
- case PE_NONE:
+ case EPointerEvents::PE_NONE:
// nothing to do here, defaults are all false.
break;
}
} else {
switch (pointerEvents) {
- case PE_BOUNDINGBOX:
+ case EPointerEvents::PE_BOUNDINGBOX:
canHitBoundingBox = true;
break;
- case PE_VISIBLE_PAINTED:
- case PE_AUTO: // "auto" is like "visiblePainted" when in SVG content
+ case EPointerEvents::PE_VISIBLE_PAINTED:
+ case EPointerEvents::PE_AUTO: // "auto" is like "visiblePainted" when in
+ // SVG content
requireVisible = true;
requireFill = true;
requireStroke = true;
canHitFill = true;
canHitStroke = true;
break;
- case PE_VISIBLE_FILL:
- case PE_VISIBLE_STROKE:
- case PE_VISIBLE:
+ case EPointerEvents::PE_VISIBLE_FILL:
+ case EPointerEvents::PE_VISIBLE_STROKE:
+ case EPointerEvents::PE_VISIBLE:
requireVisible = true;
canHitFill = true;
canHitStroke = true;
break;
- case PE_PAINTED:
+ case EPointerEvents::PE_PAINTED:
requireFill = true;
requireStroke = true;
canHitFill = true;
canHitStroke = true;
break;
- case PE_FILL:
- case PE_STROKE:
- case PE_ALL:
+ case EPointerEvents::PE_FILL:
+ case EPointerEvents::PE_STROKE:
+ case EPointerEvents::PE_ALL:
canHitFill = true;
canHitStroke = true;
break;
- case PE_NONE:
+ case EPointerEvents::PE_NONE:
// nothing to do here, defaults are all false.
break;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698