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

Issue 2442383002: Simplify ObjectPaintInvalidatorW/C::computePaintInvalidationReason() (Closed)

Created:
4 years, 1 month ago by Xianzhu
Modified:
4 years, 1 month ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify ObjectPaintInvalidatorW/C::computePaintInvalidationReason() Now it returns PaintInvalidationBoundsChange instead of PaintInvalidationIncremental when bounds change for non-LayoutBox. Then we don't need to override PaintInvalidationIncremental with PaintInvalidationFull in ObjectPaintInvalidatorWithContext:: invalidatePaintIfNeeded(). About layout test changes: - Some test no longer produce PaintInvalidationSelection invalidations when the object is doing full paint invalidation; - Some "full" invalidations are now "bounds change" invalidations. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/85d28b117fc977f85fc4a23ec8ac9e3348235572 Cr-Commit-Position: refs/heads/master@{#427213}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebaseline-cl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -1167 lines) Patch
M third_party/WebKit/LayoutTests/paint/invalidation/svg/feImage-target-attribute-change-with-use-indirection-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/inner-svg-change-viewBox-contract-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/marker-viewBox-changes-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/mask-clip-target-transform-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-content-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-deep-shadow-tree-content-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-image-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-shadow-tree-content-expected.txt View 1 3 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-use-on-symbol-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-use-without-attributes-on-symbol-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/resource-invalidate-on-target-update-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/rounded-rect-height-change-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/compositing/squashing/selection-repaint-with-gaps-expected.txt View 1 5 chunks +12 lines, -63 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/japanese-rl-selection-clear-expected.txt View 2 chunks +16 lines, -81 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/japanese-rl-selection-repaint-expected.txt View 2 chunks +12 lines, -61 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/selection-partial-invalidation-between-blocks-expected.txt View 3 chunks +6 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/js-late-clipPath-and-object-creation-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/js-late-clipPath-creation-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-content-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-deep-shadow-tree-content-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-image-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-shadow-tree-content-expected.txt View 3 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-use-on-symbol-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-use-without-attributes-on-symbol-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/paint/invalidation/japanese-rl-selection-repaint-expected.txt View 1 2 chunks +13 lines, -66 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/compositing/squashing/selection-repaint-with-gaps-expected.txt View 1 5 chunks +12 lines, -63 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/japanese-rl-selection-clear-expected.txt View 1 2 chunks +17 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/japanese-rl-selection-repaint-expected.txt View 1 2 chunks +13 lines, -66 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/selection-partial-invalidation-between-blocks-expected.txt View 1 3 chunks +6 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/selection/invalidation-rect-includes-newline-expected.txt View 1 2 chunks +4 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/selection/invalidation-rect-includes-newline-for-vertical-lr-expected.txt View 1 2 chunks +4 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/selection/invalidation-rect-includes-newline-for-vertical-rl-expected.txt View 1 2 chunks +4 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/svg/js-late-clipPath-and-object-creation-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/svg/js-late-clipPath-creation-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/compositing/squashing/selection-repaint-with-gaps-expected.txt View 1 5 chunks +12 lines, -63 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/japanese-rl-selection-clear-expected.txt View 1 2 chunks +17 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/japanese-rl-selection-repaint-expected.txt View 1 2 chunks +13 lines, -66 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/selection-partial-invalidation-between-blocks-expected.txt View 1 3 chunks +6 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/selection/invalidation-rect-includes-newline-expected.txt View 2 chunks +4 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/selection/invalidation-rect-includes-newline-for-vertical-lr-expected.txt View 2 chunks +4 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/selection/invalidation-rect-includes-newline-for-vertical-rl-expected.txt View 2 chunks +4 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/js-late-clipPath-and-object-creation-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/js-late-clipPath-creation-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win7/paint/invalidation/japanese-rl-selection-clear-expected.txt View 1 2 chunks +17 lines, -86 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win7/paint/invalidation/japanese-rl-selection-repaint-expected.txt View 1 2 chunks +13 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp View 3 chunks +11 lines, -20 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Xianzhu
Ptal. https://codereview.chromium.org/2442383002/diff/1/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp File third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp (left): https://codereview.chromium.org/2442383002/diff/1/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp#oldcode506 third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp:506: There would be no change of test results ...
4 years, 1 month ago (2016-10-24 18:23:49 UTC) #5
pdr.
LGTM One small question: is the change to js-late-clipPath-creation-expected.png expected? There are a few failures ...
4 years, 1 month ago (2016-10-24 21:10:49 UTC) #8
Xianzhu
On 2016/10/24 21:10:49, pdr. wrote: > LGTM > > One small question: is the change ...
4 years, 1 month ago (2016-10-24 21:30:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2442383002/20001
4 years, 1 month ago (2016-10-24 21:49:29 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-25 01:27:40 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 01:29:16 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/85d28b117fc977f85fc4a23ec8ac9e3348235572
Cr-Commit-Position: refs/heads/master@{#427213}

Powered by Google App Engine
This is Rietveld 408576698