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

Issue 1826853007: LayoutBox::mapContentsRectToVisibleRectInBorderBoxSpace() (Closed)

Created:
4 years, 9 months ago by Xianzhu
Modified:
4 years, 8 months ago
Reviewers:
chrishtr, trchen
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@pi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

LayoutBox::mapContentsRectToVisibleRectInBorderBoxSpace() Called in several mapToVisibleRectInAncestor() implementations, to map a rect in contents space of the container to the border-box space of the container, before calling container->mapToVisibleRectInAncestor(). This ensures that input rect to mapToVisibleRectInAncestor() is in the local space (border-box space for LayoutBox) of the object. This fixes two issues: - Unnecessary flipping for writing mode when mapping the own rect of a LayoutBox having flippedBlocksWritingMode(). - Missing clipping of the ancestor (non-composited-scrolling). BUG=597965, 597902

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Enable comparison, DO NOT CQ #

Total comments: 22
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -85 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 chunk +3 lines, -1 line 2 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 5 chunks +17 lines, -28 lines 16 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 5 chunks +25 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 1 chunk +0 lines, -9 lines 4 comments Download
M third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp View 1 2 4 chunks +1 line, -12 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
Xianzhu
4 years, 9 months ago (2016-03-26 01:23:04 UTC) #2
chrishtr
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) I don't think this isn't right. These ...
4 years, 8 months ago (2016-03-28 16:34:31 UTC) #3
Xianzhu
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 16:34:31, chrishtr wrote: > I ...
4 years, 8 months ago (2016-03-28 17:35:21 UTC) #4
chrishtr
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 at 17:35:21, Xianzhu wrote: > ...
4 years, 8 months ago (2016-03-28 18:02:04 UTC) #5
Xianzhu
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 18:02:04, chrishtr wrote: > On ...
4 years, 8 months ago (2016-03-28 18:15:37 UTC) #6
chrishtr
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 at 18:15:37, Xianzhu wrote: > ...
4 years, 8 months ago (2016-03-28 19:28:53 UTC) #7
Xianzhu
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 19:28:53, chrishtr wrote: > On ...
4 years, 8 months ago (2016-03-28 19:42:10 UTC) #8
Xianzhu
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 19:42:10, Xianzhu wrote: > On ...
4 years, 8 months ago (2016-03-28 19:43:01 UTC) #9
chrishtr
On 2016/03/28 at 19:43:01, wangxianzhu wrote: > https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 ...
4 years, 8 months ago (2016-03-28 20:20:31 UTC) #10
chrishtr
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 at 19:43:01, Xianzhu wrote: > ...
4 years, 8 months ago (2016-03-28 20:38:59 UTC) #11
Xianzhu
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 20:38:58, chrishtr wrote: > On ...
4 years, 8 months ago (2016-03-28 21:12:08 UTC) #12
chrishtr
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode976 third_party/WebKit/Source/core/layout/LayoutBox.cpp:976: if (usesCompositedScrolling()) On 2016/03/28 at 21:12:08, Xianzhu wrote: > ...
4 years, 8 months ago (2016-03-28 22:09:58 UTC) #13
trchen
4 years, 8 months ago (2016-03-28 22:22:42 UTC) #14
https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/layout/LayoutView.cpp (left):

https://codereview.chromium.org/1826853007/diff/2/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/layout/LayoutView.cpp:494: if
(style()->isFlippedBlocksWritingMode()) {
On 2016/03/28 22:09:58, chrishtr wrote:
> On 2016/03/28 at 21:12:08, Xianzhu wrote:
> > On 2016/03/28 20:38:59, chrishtr wrote:
> > > This is handled by LayoutBox somehow?
> > > 
> > > Is this tested? Add a unittest?
> > 
> > Can a LayoutView have writing-mode?
> 
> I think so. IIRC I added this code a month or so ago.

Yes, LayoutView back-inherits the writing mode from html/body.

Powered by Google App Engine
This is Rietveld 408576698