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

Unified Diff: third_party/WebKit/Source/platform/DragImage.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Added 2 changes in mac files 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/platform/DragImage.cpp
diff --git a/third_party/WebKit/Source/platform/DragImage.cpp b/third_party/WebKit/Source/platform/DragImage.cpp
index d3e2316b7d9d07b321510422282b33c21bbcdf0f..791129db6e320d1cc45a50a9a5aab41876386fbd 100644
--- a/third_party/WebKit/Source/platform/DragImage.cpp
+++ b/third_party/WebKit/Source/platform/DragImage.cpp
@@ -287,7 +287,7 @@ std::unique_ptr<DragImage> DragImage::create(const KURL& url,
IntPoint textPos(
kDragLabelBorderX,
kDragLabelBorderY + labelFont.getFontDescription().computedPixelSize());
- if (hasStrongDirectionality && textRun.direction() == RTL) {
+ if (hasStrongDirectionality && textRun.direction() == TextDirection::Rtl) {
float textWidth = labelFont.width(textRun);
int availableWidth = imageSize.width() - kDragLabelBorderX * 2;
textPos.setX(availableWidth - ceilf(textWidth));

Powered by Google App Engine
This is Rietveld 408576698