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

Issue 568723002: Move transient/temporary RenderSVGResource state out of SVGInlineTextBox (Closed)

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

Description

Move transient/temporary RenderSVGResource state out of SVGInlineTextBox The SVGInlineTextBox member variable |m_paintingResource| is only set temporarily within paintTextWithShadows and paintDecorationWithStyle, and is only accessed from the methods that do setup and teardown of it. This makes it possible to remove it from SVGInlineTextBox and instead manage it in through a variable on the stack. The lifetime management is kept manual/the same as previously. The interaction with TextRun::RenderingContext is changed to be passed as a parameter to the added "scope" object in order to simplify the interface a bit. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181904

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -57 lines) Patch
M Source/core/rendering/svg/SVGInlineTextBox.h View 2 chunks +0 lines, -9 lines 0 comments Download
M Source/core/rendering/svg/SVGInlineTextBox.cpp View 11 chunks +41 lines, -48 lines 1 comment Download

Messages

Total messages: 7 (2 generated)
fs
6 years, 3 months ago (2014-09-12 12:03:42 UTC) #2
f(malita)
Nice, lgtm! https://codereview.chromium.org/568723002/diff/1/Source/core/rendering/svg/SVGInlineTextBox.cpp File Source/core/rendering/svg/SVGInlineTextBox.cpp (right): https://codereview.chromium.org/568723002/diff/1/Source/core/rendering/svg/SVGInlineTextBox.cpp#newcode347 Source/core/rendering/svg/SVGInlineTextBox.cpp:347: PaintingResourceScope(RenderObject& renderer, TextRun::RenderingContext* renderingContext = 0) We ...
6 years, 3 months ago (2014-09-12 13:40:56 UTC) #3
fs
On 2014/09/12 13:40:56, Florin Malita wrote: > Nice, lgtm! Thanks! > https://codereview.chromium.org/568723002/diff/1/Source/core/rendering/svg/SVGInlineTextBox.cpp > File Source/core/rendering/svg/SVGInlineTextBox.cpp ...
6 years, 3 months ago (2014-09-12 14:01:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568723002/1
6 years, 3 months ago (2014-09-12 14:02:18 UTC) #6
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 14:07:22 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 181904

Powered by Google App Engine
This is Rietveld 408576698