Take CSS Clip and contain: paint into account when computing visual rects.
BUG=611379, 599939
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/3d30a67e378ec3fcaac5809305584bbabca88e18
Cr-Commit-Position: refs/heads/master@{#411843}
Description was changed from ========== none none BUG= ========== to ========== none none BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ...
4 years, 4 months ago
(2016-08-11 23:07:25 UTC)
#1
Description was changed from
==========
none
none
BUG=
==========
to
==========
none
none
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
chrishtr
Description was changed from ========== none none BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Take CSS Clip ...
4 years, 4 months ago
(2016-08-11 23:09:30 UTC)
#2
Description was changed from
==========
none
none
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
to
==========
Take CSS Clip and contain: paint into account when computing visual rects.
BUG=611379
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/121284)
4 years, 4 months ago
(2016-08-12 00:44:50 UTC)
#8
4 years, 4 months ago
(2016-08-12 16:42:22 UTC)
#11
ping
chrishtr
Description was changed from ========== Take CSS Clip and contain: paint into account when computing ...
4 years, 4 months ago
(2016-08-12 17:04:00 UTC)
#12
Description was changed from
==========
Take CSS Clip and contain: paint into account when computing visual rects.
BUG=611379
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
to
==========
Take CSS Clip and contain: paint into account when computing visual rects.
BUG=611379,599939
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
Xianzhu
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.h File third_party/WebKit/Source/core/layout/LayoutBox.h (right): https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.h#newcode806 third_party/WebKit/Source/core/layout/LayoutBox.h:806: // Returns the combination of overflow clip, contain: paint ...
4 years, 4 months ago
(2016-08-12 17:07:57 UTC)
#13
4 years, 4 months ago
(2016-08-12 17:20:01 UTC)
#15
Dry run: This issue passed the CQ dry run.
chrishtr
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.h File third_party/WebKit/Source/core/layout/LayoutBox.h (right): https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.h#newcode806 third_party/WebKit/Source/core/layout/LayoutBox.h:806: // Returns the combination of overflow clip, contain: paint ...
4 years, 4 months ago
(2016-08-12 17:56:24 UTC)
#16
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutBox.h (right):
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutBox.h:806: // Returns the
combination of overflow clip, contain: paint clip and CSS clip for this object,
in local space.
On 2016/08/12 at 17:07:57, Xianzhu wrote:
> What about control clip?
Control clip on only affects LayoutButton, LayoutMenuList and
LayoutTextControlSingleLine. I tried to modify
PaintPropertyTreeBuilderTest.ControlClip to check visual rects for hidden layout
children of the button, but the LayoutBlockFlow which contains the LayoutText of
the button already has a size that is smaller than the control clip, and the
LayoutText doesn't
have an ObjectPaintProperties object at present (optimized out), which makes it
more boilerplate to test.
I don't think it's worth it to add this. WDYT?
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp (right):
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp:320:
addClipRectRelativeToPaintOffset(box.clippingRect());
On 2016/08/12 at 17:07:57, Xianzhu wrote:
> The original code won't apply clip on descendant absolute-position objects
unless the current object is the containing block ancestor of the
absolute-position object. This is not fully correct for css clip, but we should
be at the safe side as we won't apply wrong clip.
>
> Please add a comment about this.
Added one here and in LayoutBox.
Xianzhu
lgtm https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.h File third_party/WebKit/Source/core/layout/LayoutBox.h (right): https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.h#newcode806 third_party/WebKit/Source/core/layout/LayoutBox.h:806: // Returns the combination of overflow clip, contain: ...
4 years, 4 months ago
(2016-08-12 18:45:46 UTC)
#17
lgtm
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutBox.h (right):
https://codereview.chromium.org/2241663002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutBox.h:806: // Returns the
combination of overflow clip, contain: paint clip and CSS clip for this object,
in local space.
On 2016/08/12 17:56:24, chrishtr wrote:
> On 2016/08/12 at 17:07:57, Xianzhu wrote:
> > What about control clip?
>
> Control clip on only affects LayoutButton, LayoutMenuList and
> LayoutTextControlSingleLine. I tried to modify
> PaintPropertyTreeBuilderTest.ControlClip to check visual rects for hidden
layout
> children of the button, but the LayoutBlockFlow which contains the LayoutText
of
> the button already has a size that is smaller than the control clip, and the
> LayoutText doesn't
> have an ObjectPaintProperties object at present (optimized out), which makes
it
> more boilerplate to test.
>
> I don't think it's worth it to add this. WDYT?
SGTM.
chrishtr
The CQ bit was checked by chrishtr@chromium.org
4 years, 4 months ago
(2016-08-12 18:56:30 UTC)
#18
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/250574) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago
(2016-08-12 18:59:43 UTC)
#21
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/260586)
4 years, 4 months ago
(2016-08-12 20:35:41 UTC)
#26
4 years, 4 months ago
(2016-08-13 01:18:37 UTC)
#30
Message was sent while issue was closed.
Committed patchset #7 (id:120001)
commit-bot: I haz the power
Description was changed from ========== Take CSS Clip and contain: paint into account when computing ...
4 years, 4 months ago
(2016-08-13 01:20:27 UTC)
#31
Message was sent while issue was closed.
Description was changed from
==========
Take CSS Clip and contain: paint into account when computing visual rects.
BUG=611379,599939
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
to
==========
Take CSS Clip and contain: paint into account when computing visual rects.
BUG=611379,599939
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/3d30a67e378ec3fcaac5809305584bbabca88e18
Cr-Commit-Position: refs/heads/master@{#411843}
==========
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/3d30a67e378ec3fcaac5809305584bbabca88e18 Cr-Commit-Position: refs/heads/master@{#411843}
4 years, 4 months ago
(2016-08-13 01:20:28 UTC)
#32
Issue 2241663002: Take CSS Clip and contain: paint into account when computing visual rects.
(Closed)
Created 4 years, 4 months ago by chrishtr
Modified 4 years, 4 months ago
Reviewers: szager1, Xianzhu
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 5