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

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: Small rebase fixes 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 a09e7642b6185f591e77851739b0ddfff9250862..7909422216b1cf0bc6375e3c571a17aa06f5cc40 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
@@ -117,7 +117,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