| 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 e59ec0a172a46cd5934620fc9ed8dc86ec46f8cd..277b0aea0ad7367fdd1d0dc76bd4a1e1978fd3cd 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -2094,6 +2094,10 @@ 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()) {
|
| + // TODO(wkorman): Generalize Ruby specialization and/or document more clearly.
|
| + // See the accompanying specialization in LayoutInline::mapToVisualRectInAncestorSpace.
|
| + topLeft.moveBy(topLeftLocation());
|
| } else {
|
| topLeft.moveBy(location());
|
| }
|
|
|