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

Unified Diff: third_party/WebKit/Source/core/html/forms/RangeInputType.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/html/forms/RangeInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
index 39d4d0180c11156691c7a2f3f738108a374fa354..0ca1bd5e0073fb073cac3fa68043a475fa458748 100644
--- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
@@ -190,7 +190,7 @@ void RangeInputType::handleKeydownEvent(KeyboardEvent* event) {
const Decimal bigStep =
std::max((stepRange.maximum() - stepRange.minimum()) / 10, step);
- TextDirection dir = TextDirection::Ltr;
+ TextDirection dir = TextDirection::kLtr;
bool isVertical = false;
if (element().layoutObject()) {
dir = computedTextDirection();
@@ -204,11 +204,11 @@ void RangeInputType::handleKeydownEvent(KeyboardEvent* event) {
} else if (key == "ArrowDown") {
newValue = current - step;
} else if (key == "ArrowLeft") {
- newValue = (isVertical || dir == TextDirection::Rtl) ? current + step
- : current - step;
+ newValue = (isVertical || dir == TextDirection::kRtl) ? current + step
+ : current - step;
} else if (key == "ArrowRight") {
- newValue = (isVertical || dir == TextDirection::Rtl) ? current - step
- : current + step;
+ newValue = (isVertical || dir == TextDirection::kRtl) ? current - step
+ : current + step;
} else if (key == "PageUp") {
newValue = current + bigStep;
} else if (key == "PageDown") {

Powered by Google App Engine
This is Rietveld 408576698