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

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)

Created:
3 years, 6 months ago by eae
Modified:
3 years, 6 months ago
Reviewers:
ikilpatrick, pdr.
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dshwang, eae+blinkwatch, haraken, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Break StyleImage dependency on LayoutObject Break the dependency on LayoutObject by StyleImage by explicitly passing the required parameters rather than getting them from a LayoutObject and by using the ImageResourceObserver interface to keep track of observers. Part of a larger set of changes to break dependencies on LayoutObject in order to allow improved code sharing between legacy layout and LayoutNG. BUG=714962 R=pdr@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2941533002 Cr-Commit-Position: refs/heads/master@{#479144} Committed: https://chromium.googlesource.com/chromium/src/+/5609ccb5f5426a991ce70426525bf9c0959990e4

Patch Set 1 #

Patch Set 2 : Rebase w/HEAD #

Total comments: 3

Patch Set 3 : Address reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -120 lines) Patch
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.h View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp View 2 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.cpp View 2 chunks +12 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageGeneratorValue.h View 4 chunks +15 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp View 6 chunks +25 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintImageGenerator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintValue.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintValue.cpp View 2 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h View 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp View 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.h View 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.cpp View 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.h View 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp View 1 chunk +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.h View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp View 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleImage.h View 2 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleInvalidImage.h View 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/StylePendingImage.h View 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
eae
3 years, 6 months ago (2017-06-13 15:59:20 UTC) #1
pdr.
LGTM but this seems to be failing on the bots.
3 years, 6 months ago (2017-06-13 17:55:57 UTC) #11
eae
3 years, 6 months ago (2017-06-13 18:09:05 UTC) #13
ikilpatrick
lgtm https://codereview.chromium.org/2941533002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2941533002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode132 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:132: &style, root_style, LayoutViewItem(layout_object.View()), LayoutViewItem(document.View()); https://codereview.chromium.org/2941533002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): ...
3 years, 6 months ago (2017-06-13 18:41:01 UTC) #16
eae
Thanks, CSSGradientView needs the LayoutObject for CreateGradient as well. I'll try to untangle that in ...
3 years, 6 months ago (2017-06-13 18:48:07 UTC) #17
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/2941533002/40001
3 years, 6 months ago (2017-06-13 18:48:46 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 20:56:55 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5609ccb5f5426a991ce70426525b...

Powered by Google App Engine
This is Rietveld 408576698