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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2166923004: Fix Ruby visual rects in flipped blocks writing mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 78eca2d86f8337920eaf26036524d39d37768599..a2a84252e1674d4b5ef40ae8360dbf4eed7e401d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2102,6 +2102,8 @@ bool LayoutBox::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ances
// coordinate space to the parent space, then back to <tr> / <td>.
if (tableRowContainer)
topLeft.moveBy(-tableRowContainer->topLeftLocation(toLayoutBox(container)));
+ } else if (container->isRuby()) {
+ topLeft.moveBy(topLeftLocation());
wkorman 2016/07/20 22:12:33 This was needed to apply offset resulting from any
} else {
topLeft.moveBy(location());
}

Powered by Google App Engine
This is Rietveld 408576698