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

Issue 652243002: Hoist paint-server transform adaption out of preparePaintServer (Closed)

Created:
6 years, 2 months ago by fs
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, Rik, danakj, krit, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, jbroman, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, mkwst+moarreviews_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, rune+blink, Stephen Chennney, zoltan1
Project:
blink
Visibility:
Public.

Description

Hoist paint-server transform adaption out of preparePaintServer The additional transform computed by the helper function RenderSVGResourceContainer::computeResourceSpaceTransform by each paint-server (that is CTM-dependent), only depends on the input to preparePaintServer, and not the paint-server itself. Hoist the computation into SVGRenderSupport::updateGraphicsContext. This in turn mean that the various preparePaintServer implementations no longer use the passed RenderStyle (previously only used for checking for vector-effect) and RenderSVGResourceModeFlags, so remove those. computeResourceSpaceTransform w/ associated helpers are moved to SVGRenderSupport. BUG=420022 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183746

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -83 lines) Patch
M Source/core/rendering/svg/RenderSVGResource.h View 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResource.cpp View 3 chunks +12 lines, -4 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceContainer.h View 2 chunks +0 lines, -4 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceContainer.cpp View 2 chunks +0 lines, -53 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceGradient.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceGradient.cpp View 2 chunks +2 lines, -6 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourcePattern.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGResourcePattern.cpp View 2 chunks +2 lines, -6 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceSolidColor.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/rendering/svg/SVGRenderSupport.cpp View 3 chunks +51 lines, -2 lines 2 comments Download
M Source/platform/graphics/Pattern.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
fs
https://codereview.chromium.org/652243002/diff/1/Source/core/rendering/svg/SVGRenderSupport.cpp File Source/core/rendering/svg/SVGRenderSupport.cpp (right): https://codereview.chromium.org/652243002/diff/1/Source/core/rendering/svg/SVGRenderSupport.cpp#newcode398 Source/core/rendering/svg/SVGRenderSupport.cpp:398: static bool shouldTransformOnTextPainting(RenderObject& renderer, AffineTransform& resourceTransform) Will remove these ...
6 years, 2 months ago (2014-10-14 13:49:17 UTC) #2
pdr.
LGTM I'm a little sad that gradient/pattern transform updating is now spread across two places. ...
6 years, 2 months ago (2014-10-14 23:38:48 UTC) #3
fs
On 2014/10/14 23:38:48, pdr wrote: > LGTM > > I'm a little sad that gradient/pattern ...
6 years, 2 months ago (2014-10-15 10:52:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652243002/1
6 years, 2 months ago (2014-10-15 10:53:03 UTC) #6
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 13:03:51 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 183746

Powered by Google App Engine
This is Rietveld 408576698