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

Issue 2290293003: Stricter treatment of SVGSVGElement::m_useCurrentView (Closed)

Created:
4 years, 3 months ago by fs
Modified:
4 years, 3 months ago
Reviewers:
pdr.
CC:
fs, blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stricter treatment of SVGSVGElement::m_useCurrentView m_useCurrentView being true implies that m_viewSpec is non-null. Perhaps defensively, most code that checks it is written in a way such that it expects that m_viewSpec can be null if m_useCurrentView is true - which is not the case, and adds unnecessary code. Instead change the code to adhere to the rule above, and assert that in the various places instead. Also add some checks of the invariant in methods that set the flag and m_viewSpec. Refactor SVGSVGElement::setupInitialView to avoid the need to sprinkle invariant checks "all over" it. BUG=110195 Committed: https://crrev.com/ad443bcef2f7386e432e5c621e78640d91ef2e95 Cr-Commit-Position: refs/heads/master@{#415346}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -31 lines) Patch
M third_party/WebKit/Source/core/svg/SVGSVGElement.cpp View 7 chunks +36 lines, -31 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
fs
4 years, 3 months ago (2016-08-30 15:55:42 UTC) #4
pdr.
On 2016/08/30 at 15:55:42, fs wrote: > LGTM
4 years, 3 months ago (2016-08-30 17:50:02 UTC) #7
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/2290293003/1
4 years, 3 months ago (2016-08-30 17:51:03 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-30 17:56:34 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 17:58:29 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ad443bcef2f7386e432e5c621e78640d91ef2e95
Cr-Commit-Position: refs/heads/master@{#415346}

Powered by Google App Engine
This is Rietveld 408576698