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

Unified Diff: third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp

Issue 2729583004: Skip a few "using namespace" that we don't really need. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp b/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
index 614d3129b7f64ebea004c0ffde1153cdb81e99cd..836e34c74c6468f36eafac17d6797b612b954ab9 100644
--- a/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
@@ -32,8 +32,6 @@
#include "platform/text/PlatformLocale.h"
#include "platform/text/TextRun.h"
-using namespace WTF::Unicode;
-
namespace blink {
int DateTimeNumericFieldElement::Range::clampValue(int value) const {
@@ -67,8 +65,11 @@ DateTimeNumericFieldElement::DateTimeNumericFieldElement(
// We show a direction-neutral string such as "--" as a placeholder. It
// should follow the direction of numeric values.
if (localeForOwner().isRTL()) {
- CharDirection dir = direction(formatValue(this->maximum())[0]);
- if (dir == LeftToRight || dir == EuropeanNumber || dir == ArabicNumber) {
+ WTF::Unicode::CharDirection dir =
+ WTF::Unicode::direction(formatValue(this->maximum())[0]);
+ if (dir == WTF::Unicode::LeftToRight ||
+ dir == WTF::Unicode::EuropeanNumber ||
+ dir == WTF::Unicode::ArabicNumber) {
setInlineStyleProperty(CSSPropertyUnicodeBidi, CSSValueBidiOverride);
setInlineStyleProperty(CSSPropertyDirection, CSSValueLtr);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698