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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 2007 Rob Buis <buis@kde.org> 2 Copyright (C) 2007 Rob Buis <buis@kde.org>
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 23 matching lines...) Expand all
34 PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, 34 PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting,
35 const HitTestRequest& request, 35 const HitTestRequest& request,
36 EPointerEvents pointerEvents) 36 EPointerEvents pointerEvents)
37 : requireVisible(false), 37 : requireVisible(false),
38 requireFill(false), 38 requireFill(false),
39 requireStroke(false), 39 requireStroke(false),
40 canHitStroke(false), 40 canHitStroke(false),
41 canHitFill(false), 41 canHitFill(false),
42 canHitBoundingBox(false) { 42 canHitBoundingBox(false) {
43 if (request.svgClipContent()) 43 if (request.svgClipContent())
44 pointerEvents = EPointerEvents::Fill; 44 pointerEvents = EPointerEvents::kFill;
45 45
46 if (hitTesting == SVG_GEOMETRY_HITTESTING) { 46 if (hitTesting == SVG_GEOMETRY_HITTESTING) {
47 switch (pointerEvents) { 47 switch (pointerEvents) {
48 case EPointerEvents::BoundingBox: 48 case EPointerEvents::kBoundingBox:
49 canHitBoundingBox = true; 49 canHitBoundingBox = true;
50 break; 50 break;
51 case EPointerEvents::VisiblePainted: 51 case EPointerEvents::kVisiblePainted:
52 case EPointerEvents::Auto: // "auto" is like "visiblePainted" when in 52 case EPointerEvents::kAuto: // "auto" is like "visiblePainted" when in
53 // SVG content 53 // SVG content
54 requireFill = true; 54 requireFill = true;
55 requireStroke = true; 55 requireStroke = true;
56 case EPointerEvents::Visible: 56 case EPointerEvents::kVisible:
57 requireVisible = true; 57 requireVisible = true;
58 canHitFill = true; 58 canHitFill = true;
59 canHitStroke = true; 59 canHitStroke = true;
60 break; 60 break;
61 case EPointerEvents::VisibleFill: 61 case EPointerEvents::kVisibleFill:
62 requireVisible = true; 62 requireVisible = true;
63 canHitFill = true; 63 canHitFill = true;
64 break; 64 break;
65 case EPointerEvents::VisibleStroke: 65 case EPointerEvents::kVisibleStroke:
66 requireVisible = true; 66 requireVisible = true;
67 canHitStroke = true; 67 canHitStroke = true;
68 break; 68 break;
69 case EPointerEvents::Painted: 69 case EPointerEvents::kPainted:
70 requireFill = true; 70 requireFill = true;
71 requireStroke = true; 71 requireStroke = true;
72 case EPointerEvents::All: 72 case EPointerEvents::kAll:
73 canHitFill = true; 73 canHitFill = true;
74 canHitStroke = true; 74 canHitStroke = true;
75 break; 75 break;
76 case EPointerEvents::Fill: 76 case EPointerEvents::kFill:
77 canHitFill = true; 77 canHitFill = true;
78 break; 78 break;
79 case EPointerEvents::Stroke: 79 case EPointerEvents::kStroke:
80 canHitStroke = true; 80 canHitStroke = true;
81 break; 81 break;
82 case EPointerEvents::None: 82 case EPointerEvents::kNone:
83 // nothing to do here, defaults are all false. 83 // nothing to do here, defaults are all false.
84 break; 84 break;
85 } 85 }
86 } else { 86 } else {
87 switch (pointerEvents) { 87 switch (pointerEvents) {
88 case EPointerEvents::BoundingBox: 88 case EPointerEvents::kBoundingBox:
89 canHitBoundingBox = true; 89 canHitBoundingBox = true;
90 break; 90 break;
91 case EPointerEvents::VisiblePainted: 91 case EPointerEvents::kVisiblePainted:
92 case EPointerEvents::Auto: // "auto" is like "visiblePainted" when in 92 case EPointerEvents::kAuto: // "auto" is like "visiblePainted" when in
93 // SVG content 93 // SVG content
94 requireVisible = true; 94 requireVisible = true;
95 requireFill = true; 95 requireFill = true;
96 requireStroke = true; 96 requireStroke = true;
97 canHitFill = true; 97 canHitFill = true;
98 canHitStroke = true; 98 canHitStroke = true;
99 break; 99 break;
100 case EPointerEvents::VisibleFill: 100 case EPointerEvents::kVisibleFill:
101 case EPointerEvents::VisibleStroke: 101 case EPointerEvents::kVisibleStroke:
102 case EPointerEvents::Visible: 102 case EPointerEvents::kVisible:
103 requireVisible = true; 103 requireVisible = true;
104 canHitFill = true; 104 canHitFill = true;
105 canHitStroke = true; 105 canHitStroke = true;
106 break; 106 break;
107 case EPointerEvents::Painted: 107 case EPointerEvents::kPainted:
108 requireFill = true; 108 requireFill = true;
109 requireStroke = true; 109 requireStroke = true;
110 canHitFill = true; 110 canHitFill = true;
111 canHitStroke = true; 111 canHitStroke = true;
112 break; 112 break;
113 case EPointerEvents::Fill: 113 case EPointerEvents::kFill:
114 case EPointerEvents::Stroke: 114 case EPointerEvents::kStroke:
115 case EPointerEvents::All: 115 case EPointerEvents::kAll:
116 canHitFill = true; 116 canHitFill = true;
117 canHitStroke = true; 117 canHitStroke = true;
118 break; 118 break;
119 case EPointerEvents::None: 119 case EPointerEvents::kNone:
120 // nothing to do here, defaults are all false. 120 // nothing to do here, defaults are all false.
121 break; 121 break;
122 } 122 }
123 } 123 }
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 // vim:ts=4:noet 128 // vim:ts=4:noet
OLDNEW
« 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