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

Issue 2473483004: Simplify SVG pending resource (re)validation (Closed)

Created:
4 years, 1 month ago by fs
Modified:
4 years, 1 month 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

Simplify SVG pending resource (re)validation The contents of the m_pendingResourcesForRemoval map has a lifespan that does not extend beyond the scope of SVGElement's buildPendingResourcesIfNeeded() method. So instead of passing through the map in SVGDocumentExtensions, just take the corresponding set for the pending 'id' and iterate that directly, avoiding indirection and complicated removal sequence. This also allow SVGDocumentExtensions::removeElementFromPendingResources to be simplified, so do that, and then remove the m_pendingResourcesForRemoval map from SVGDocumentExtensions. BUG=661598 Committed: https://crrev.com/9365003f3f4f921445eeb94413d7a29f996b4148 Cr-Commit-Position: refs/heads/master@{#429539}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -103 lines) Patch
M third_party/WebKit/Source/core/svg/SVGDocumentExtensions.h View 2 chunks +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp View 3 chunks +16 lines, -76 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 chunk +19 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
fs
4 years, 1 month ago (2016-11-02 17:26:18 UTC) #4
pdr.
On 2016/11/02 at 17:26:18, fs wrote: > Nice cleanup. LGTM
4 years, 1 month ago (2016-11-02 21:55:11 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/2473483004/1
4 years, 1 month ago (2016-11-03 08:38:03 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-03 08:42:19 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 08:44:58 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9365003f3f4f921445eeb94413d7a29f996b4148
Cr-Commit-Position: refs/heads/master@{#429539}

Powered by Google App Engine
This is Rietveld 408576698