Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutView.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| index b49d539afca42b34114e18eefccf3d55200781ed..0c75bbf499b44057a70a9d47e7cd6b3b86ac0889 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| @@ -491,15 +491,6 @@ bool LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc |
| if (document().printing()) |
| return true; |
| - if (style()->isFlippedBlocksWritingMode()) { |
|
chrishtr
2016/03/28 20:38:59
This is handled by LayoutBox somehow?
Is this tes
Xianzhu
2016/03/28 21:12:08
Can a LayoutView have writing-mode?
chrishtr
2016/03/28 22:09:58
I think so. IIRC I added this code a month or so a
trchen
2016/03/28 22:22:42
Yes, LayoutView back-inherits the writing mode fro
|
| - // We have to flip by hand since the view's logical height has not been determined. We |
| - // can use the viewport width and height. |
| - if (style()->isHorizontalWritingMode()) |
| - rect.setY(viewHeight() - rect.maxY()); |
| - else |
| - rect.setX(viewWidth() - rect.maxX()); |
| - } |
| - |
| if (mode & IsFixed) |
| adjustOffsetForFixedPosition(rect); |