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

Issue 2165833006: Merge CSSSVGDocumentValue with CSSURIValue (Closed)

Created:
4 years, 5 months ago by fs
Modified:
4 years, 5 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge CSSSVGDocumentValue with CSSURIValue These two CSSValue classes are used to represent the same semantic, which is a reference to an element by means of a "url(...)" function. CSSSVGDocumentValue carries additional state to be able to handle references to external documents, by caching a DocumentResource. Move all the DocumentResource state to CSSURIValue, while also keeping the naming of the URL string (m_url). Also do some minor cleanup, for instance by removing "SVG" from the cachedSVGDocument() method name and dropping some unnecessary .get()s. This bloats CSSURIValue a bit for the cases where the DocumentResource is not utilized, but this bloat will be reduced (in relative terms) with future developments. On the "pro"-side is naturally that we now don't have to extend two CSSValue classes with additional functionality and state. BUG=470608, 405315 Committed: https://crrev.com/496a81df6c42d2672f7d61b0c36dc31723155600 Cr-Commit-Position: refs/heads/master@{#407126}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Unwrap 'url(...)' for 'filter' #

Patch Set 3 : Fixup FilterInterpolationFunctions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -202 lines) Patch
M third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h View 1 chunk +0 lines, -71 lines 0 comments Download
D third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp View 1 chunk +0 lines, -71 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSURIValue.h View 1 chunk +16 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSURIValue.cpp View 1 chunk +31 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 6 chunks +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ElementStyleResources.h View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp View 1 3 chunks +15 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolverState.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 26 (17 generated)
fs
4 years, 5 months ago (2016-07-20 22:23:25 UTC) #6
Timothy Loh
https://codereview.chromium.org/2165833006/diff/1/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp File third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp (left): https://codereview.chromium.org/2165833006/diff/1/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp#oldcode63 third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp:63: return serializeString(m_url); Probably you want to update consumeFilter and ...
4 years, 5 months ago (2016-07-21 04:01:45 UTC) #9
fs
https://codereview.chromium.org/2165833006/diff/1/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp File third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp (left): https://codereview.chromium.org/2165833006/diff/1/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp#oldcode63 third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp:63: return serializeString(m_url); On 2016/07/21 at 04:01:45, Timothy Loh wrote: ...
4 years, 5 months ago (2016-07-21 08:39:16 UTC) #10
fs
https://codereview.chromium.org/2165833006/diff/1/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp File third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp (left): https://codereview.chromium.org/2165833006/diff/1/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp#oldcode63 third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp:63: return serializeString(m_url); On 2016/07/21 at 08:39:16, fs wrote: > ...
4 years, 5 months ago (2016-07-21 13:42:08 UTC) #17
Timothy Loh
lgtm IIRC I added CSSFunctionValue in the past because there were a few CSSValue subclasses ...
4 years, 5 months ago (2016-07-22 00:09:21 UTC) #20
fs
On 2016/07/22 at 00:09:21, timloh wrote: > lgtm > > IIRC I added CSSFunctionValue in ...
4 years, 5 months ago (2016-07-22 09:38:10 UTC) #21
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/2165833006/40001
4 years, 5 months ago (2016-07-22 09:38:41 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 10:49:08 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 10:50:29 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/496a81df6c42d2672f7d61b0c36dc31723155600
Cr-Commit-Position: refs/heads/master@{#407126}

Powered by Google App Engine
This is Rietveld 408576698