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

Issue 1809643008: Adding or changing any of box-shadow, outline, or border-image-outset does not need a layout.. (Closed)

Created:
4 years, 9 months ago by rhogan
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-style_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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

. so just require a paint invalidation and ensure visual overflow gets recomputed. Another go at https://codereview.chromium.org/561303002 which was reverted by https://codereview.chromium.org/747493002. This includes wangxianzhu's fix for tables in https://codereview.chromium.org/744493002. The intent of this patch is to avoid layout for all types of LayoutBlock when the outline, border-image-outset or box-shadow are updated. BUG=396825, 434700, 437012 Committed: https://crrev.com/de7ae34361ba945b6d1ec7b3c679fecf5d94d35b Cr-Commit-Position: refs/heads/master@{#387862}

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Total comments: 9

Patch Set 4 : Updated #

Patch Set 5 : Updated #

Patch Set 6 : Updated #

Total comments: 7

Patch Set 7 : Updated #

Total comments: 1

Patch Set 8 : Updated #

Patch Set 9 : Updated #

Patch Set 10 : Updated #

Patch Set 11 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -50 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/layout/border-image-outset-no-relayout.html View 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/layout/border-image-outset-no-relayout-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/layout/outline-no-relayout.html View 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/layout/outline-no-relayout-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/layout/shadow-box-no-relayout.html View 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/layout/shadow-box-no-relayout-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/border-image-outset-add-repaint.html View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/border-image-outset-add-repaint-expected.txt View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/border-image-outset-change-repaint.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/border-image-outset-change-repaint-expected.txt View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/box-shadow-add-repaint.html View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/box-shadow-add-repaint-expected.txt View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/box-shadow-change-repaint.html View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/box-shadow-change-repaint-expected.txt View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/outline-add-repaint.html View 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/outline-add-repaint-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/outline-change-offset-expected.txt View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/outline-change-repaint.html View 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/repaint/outline-change-repaint-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/outline-change-invalidation-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/outline-clip-change-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/outline-continuations-expected.png View 1 2 3 4 Binary file 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 6 7 4 chunks +19 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.cpp View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 5 6 7 6 chunks +35 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderData.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 6 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleDifference.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 33 (11 generated)
rhogan
4 years, 9 months ago (2016-03-22 13:51:22 UTC) #4
Xianzhu
Is it possible to split this CL into the following two CLs? 1. Recompute overflow ...
4 years, 9 months ago (2016-03-22 17:02:05 UTC) #5
leviw_travelin_and_unemployed
I think you meant me in the reviewers list.
4 years, 9 months ago (2016-03-22 18:57:46 UTC) #7
leviw_travelin_and_unemployed
You want to copy the subject line into the first line of the description and ...
4 years, 9 months ago (2016-03-22 18:58:33 UTC) #8
Xianzhu
https://codereview.chromium.org/1809643008/diff/40001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/1809643008/diff/40001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode728 third_party/WebKit/Source/core/style/ComputedStyle.cpp:728: return true; On 2016/03/22 17:02:05, Xianzhu wrote: > We ...
4 years, 9 months ago (2016-03-23 20:28:26 UTC) #9
rhogan
On 2016/03/22 at 17:02:05, wangxianzhu wrote: > Is it possible to split this CL into ...
4 years, 8 months ago (2016-04-12 19:29:00 UTC) #10
Xianzhu
On 2016/04/12 19:29:00, rhogan wrote: > On 2016/03/22 at 17:02:05, wangxianzhu wrote: > > Is ...
4 years, 8 months ago (2016-04-12 19:39:39 UTC) #11
rhogan
On 2016/04/12 at 19:39:39, wangxianzhu wrote: > On 2016/04/12 19:29:00, rhogan wrote: > > On ...
4 years, 8 months ago (2016-04-14 20:01:56 UTC) #12
Xianzhu
A suggestion: you'd better reply to each review comment in the code, and publish them ...
4 years, 8 months ago (2016-04-15 04:59:16 UTC) #13
rhogan
On 2016/04/15 at 04:59:16, wangxianzhu wrote: > A suggestion: you'd better reply to each review ...
4 years, 8 months ago (2016-04-15 19:26:09 UTC) #14
rhogan
https://codereview.chromium.org/1809643008/diff/100001/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp File third_party/WebKit/Source/core/layout/LayoutTableRow.cpp (right): https://codereview.chromium.org/1809643008/diff/100001/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp#newcode251 third_party/WebKit/Source/core/layout/LayoutTableRow.cpp:251: // TODO(rhogan, wangxianzhu): This seems incorrect because cell may ...
4 years, 8 months ago (2016-04-15 19:34:32 UTC) #15
Xianzhu
https://codereview.chromium.org/1809643008/diff/100001/third_party/WebKit/Source/core/layout/LayoutTableRow.h File third_party/WebKit/Source/core/layout/LayoutTableRow.h (right): https://codereview.chromium.org/1809643008/diff/100001/third_party/WebKit/Source/core/layout/LayoutTableRow.h#newcode125 third_party/WebKit/Source/core/layout/LayoutTableRow.h:125: void recomputeOverflow(); On 2016/04/15 19:34:32, rhogan wrote: > On ...
4 years, 8 months ago (2016-04-15 20:48:51 UTC) #16
rhogan
On 2016/04/15 at 20:48:51, wangxianzhu wrote: > https://codereview.chromium.org/1809643008/diff/120001/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp#newcode1099 > third_party/WebKit/Source/core/layout/LayoutTableSection.cpp:1099: void LayoutTableSection::computeOverflowFromCells(unsigned totalRows, unsigned nEffCols) ...
4 years, 8 months ago (2016-04-16 14:31:15 UTC) #17
rhogan
On 2016/04/15 at 20:48:51, wangxianzhu wrote: > Now I see why this is named recomputeOverflow/recalculateOverflow ...
4 years, 8 months ago (2016-04-16 14:31:37 UTC) #18
Xianzhu
lgtm
4 years, 8 months ago (2016-04-16 21:57:24 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809643008/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809643008/180001
4 years, 8 months ago (2016-04-17 19:00:48 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809643008/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809643008/200001
4 years, 8 months ago (2016-04-17 20:05:59 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-17 21:06:33 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809643008/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809643008/200001
4 years, 8 months ago (2016-04-18 06:00:08 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-18 06:04:53 UTC) #29
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/de7ae34361ba945b6d1ec7b3c679fecf5d94d35b Cr-Commit-Position: refs/heads/master@{#387862}
4 years, 8 months ago (2016-04-18 06:06:11 UTC) #31
mstensho (USE GERRIT)
4 years, 8 months ago (2016-04-18 08:19:19 UTC) #33
Message was sent while issue was closed.
That commit message didn't end up pretty. The first line is:

". so just require a paint invalidation and ensure visual overflow gets
recomputed."

Powered by Google App Engine
This is Rietveld 408576698