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

Issue 579243004: Prevent reading stale/invalid data when applying a <pattern> (Closed)

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

Description

Prevent reading stale/invalid data when applying a <pattern> RenderSVGResourcePattern::applyResource was checking the value of PatternAttributes::patternUnits() before it had been set from the element, meaning it could have been stale after having been updated, or plain wrong since the default value is oBB. Hoist the PatternAttribute setup out of buildPattern() to make sure |m_attributes| is valid when read. The |resourceMode| attribute passed to buildPattern() is removed because it is unused. BUG=415619 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182268

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -15 lines) Patch
A LayoutTests/svg/custom/pattern-empty-bbox-1.html View 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/pattern-empty-bbox-1-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/pattern-empty-bbox-2.html View 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/pattern-empty-bbox-2-expected.html View 1 chunk +2 lines, -0 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 +14 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
fs
6 years, 3 months ago (2014-09-18 16:33:50 UTC) #2
f(malita)
lgtm
6 years, 3 months ago (2014-09-18 20:45:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/579243004/1
6 years, 3 months ago (2014-09-18 20:46:57 UTC) #5
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 20:52:34 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 182268

Powered by Google App Engine
This is Rietveld 408576698