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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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/HTMLImageFallbackHelper.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp b/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
index f7e5795796cbba72715d7e51f53be53b76266da6..1ff6278ae79eebb7032824063de1591ec8ad66a4 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
@@ -116,7 +116,8 @@ PassRefPtr<ComputedStyle> HTMLImageFallbackHelper::customStyleForAltText(
// image for the element's writing direction.
brokenImage->setInlineStyleProperty(
CSSPropertyFloat,
- AtomicString(newStyle->direction() == LTR ? "left" : "right"));
+ AtomicString(newStyle->direction() == TextDirection::Ltr ? "left"
+ : "right"));
// This is an <img> with no attributes, so don't display anything.
if (noImageSourceSpecified(element) &&

Powered by Google App Engine
This is Rietveld 408576698