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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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: 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 5f80f4592ed1c438d804628d7410f2d35a78aaca..fc60bd0e4dcda8775ed3ba43ea50e73720554f95 100644
--- a/third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp
+++ b/third_party/WebKit/Source/core/layout/PointerEventsHitRules.cpp
@@ -41,82 +41,82 @@ PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting,
canHitFill(false),
canHitBoundingBox(false) {
if (request.svgClipContent())
- pointerEvents = EPointerEvents::Fill;
+ pointerEvents = EPointerEvents::kFill;
if (hitTesting == SVG_GEOMETRY_HITTESTING) {
switch (pointerEvents) {
- case EPointerEvents::BoundingBox:
+ case EPointerEvents::kBoundingBox:
canHitBoundingBox = true;
break;
- case EPointerEvents::VisiblePainted:
- case EPointerEvents::Auto: // "auto" is like "visiblePainted" when in
- // SVG content
+ case EPointerEvents::kVisiblePainted:
+ case EPointerEvents::kAuto: // "auto" is like "visiblePainted" when in
+ // SVG content
requireFill = true;
requireStroke = true;
- case EPointerEvents::Visible:
+ case EPointerEvents::kVisible:
requireVisible = true;
canHitFill = true;
canHitStroke = true;
break;
- case EPointerEvents::VisibleFill:
+ case EPointerEvents::kVisibleFill:
requireVisible = true;
canHitFill = true;
break;
- case EPointerEvents::VisibleStroke:
+ case EPointerEvents::kVisibleStroke:
requireVisible = true;
canHitStroke = true;
break;
- case EPointerEvents::Painted:
+ case EPointerEvents::kPainted:
requireFill = true;
requireStroke = true;
- case EPointerEvents::All:
+ case EPointerEvents::kAll:
canHitFill = true;
canHitStroke = true;
break;
- case EPointerEvents::Fill:
+ case EPointerEvents::kFill:
canHitFill = true;
break;
- case EPointerEvents::Stroke:
+ case EPointerEvents::kStroke:
canHitStroke = true;
break;
- case EPointerEvents::None:
+ case EPointerEvents::kNone:
// nothing to do here, defaults are all false.
break;
}
} else {
switch (pointerEvents) {
- case EPointerEvents::BoundingBox:
+ case EPointerEvents::kBoundingBox:
canHitBoundingBox = true;
break;
- case EPointerEvents::VisiblePainted:
- case EPointerEvents::Auto: // "auto" is like "visiblePainted" when in
- // SVG content
+ case EPointerEvents::kVisiblePainted:
+ case EPointerEvents::kAuto: // "auto" is like "visiblePainted" when in
+ // SVG content
requireVisible = true;
requireFill = true;
requireStroke = true;
canHitFill = true;
canHitStroke = true;
break;
- case EPointerEvents::VisibleFill:
- case EPointerEvents::VisibleStroke:
- case EPointerEvents::Visible:
+ case EPointerEvents::kVisibleFill:
+ case EPointerEvents::kVisibleStroke:
+ case EPointerEvents::kVisible:
requireVisible = true;
canHitFill = true;
canHitStroke = true;
break;
- case EPointerEvents::Painted:
+ case EPointerEvents::kPainted:
requireFill = true;
requireStroke = true;
canHitFill = true;
canHitStroke = true;
break;
- case EPointerEvents::Fill:
- case EPointerEvents::Stroke:
- case EPointerEvents::All:
+ case EPointerEvents::kFill:
+ case EPointerEvents::kStroke:
+ case EPointerEvents::kAll:
canHitFill = true;
canHitStroke = true;
break;
- case EPointerEvents::None:
+ case EPointerEvents::kNone:
// nothing to do here, defaults are all false.
break;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/ListMarkerText.cpp ('k') | third_party/WebKit/Source/core/layout/TextRunConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698