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

Unified Diff: third_party/WebKit/Source/core/page/SpatialNavigation.cpp

Issue 2660423004: Rename EOverflow values with k prefix. (Closed)
Patch Set: Rebase 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/page/SpatialNavigation.cpp
diff --git a/third_party/WebKit/Source/core/page/SpatialNavigation.cpp b/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
index 63f72a1aefa3ef9ffd818cff6519274e99cef8ed..95db920d452304e9feb116c80118cf89c8429a38 100644
--- a/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
+++ b/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
@@ -330,21 +330,21 @@ bool canScrollInDirection(const Node* container, WebFocusType type) {
switch (type) {
case WebFocusTypeLeft:
return (container->layoutObject()->style()->overflowX() !=
- EOverflow::Hidden &&
+ EOverflow::kHidden &&
container->layoutBox()->scrollLeft() > 0);
case WebFocusTypeUp:
return (container->layoutObject()->style()->overflowY() !=
- EOverflow::Hidden &&
+ EOverflow::kHidden &&
container->layoutBox()->scrollTop() > 0);
case WebFocusTypeRight:
return (container->layoutObject()->style()->overflowX() !=
- EOverflow::Hidden &&
+ EOverflow::kHidden &&
container->layoutBox()->scrollLeft() +
container->layoutBox()->clientWidth() <
container->layoutBox()->scrollWidth());
case WebFocusTypeDown:
return (container->layoutObject()->style()->overflowY() !=
- EOverflow::Hidden &&
+ EOverflow::kHidden &&
container->layoutBox()->scrollTop() +
container->layoutBox()->clientHeight() <
container->layoutBox()->scrollHeight());
@@ -627,10 +627,10 @@ bool canBeScrolledIntoView(WebFocusType type, const FocusCandidate& candidate) {
if (!candidateRect.intersects(parentRect)) {
if (((type == WebFocusTypeLeft || type == WebFocusTypeRight) &&
parentNode.layoutObject()->style()->overflowX() ==
- EOverflow::Hidden) ||
+ EOverflow::kHidden) ||
((type == WebFocusTypeUp || type == WebFocusTypeDown) &&
parentNode.layoutObject()->style()->overflowY() ==
- EOverflow::Hidden))
+ EOverflow::kHidden))
return false;
}
if (parentNode == candidate.enclosingScrollableBox)

Powered by Google App Engine
This is Rietveld 408576698