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

Issue 2817523002: Cleanup CSSGradientValue (Closed)

Created:
3 years, 8 months ago by f(malita)
Modified:
3 years, 8 months ago
Reviewers:
fs
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-paint_chromium.org, chromium-reviews, dglazkov+blink, dshwang, jfernandez, reed1, Manuel Rego, rwlbuis, svillar
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup CSSGradientValue 1) move member fields to subclasses, to ensure they're only used/stored by gradient types which need them 2) remove setters; instead of manipulating fields after instantiation, pass all needed params to the ctor 3) refactor the CSS parsing methods for #2: defer gradient value instantiation until all needed params are parsed 4) constify member value pointers Refactor only, no functional changes. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 BUG=614368 Review-Url: https://codereview.chromium.org/2817523002 Cr-Commit-Position: refs/heads/master@{#464034} Committed: https://chromium.googlesource.com/chromium/src/+/55633a0e8db901aa6ce0990c99352b5d77087d06

Patch Set 1 #

Patch Set 2 : moar cleanup #

Total comments: 3

Patch Set 3 : some more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -191 lines) Patch
M third_party/WebKit/Source/core/css/CSSGradientValue.h View 1 2 8 chunks +105 lines, -57 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.cpp View 1 2 9 chunks +27 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 8 chunks +92 lines, -110 lines 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImageGridTest.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
f(malita)
3 years, 8 months ago (2017-04-12 12:53:26 UTC) #11
fs
lgtm https://codereview.chromium.org/2817523002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.h File third_party/WebKit/Source/core/css/CSSGradientValue.h (right): https://codereview.chromium.org/2817523002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.h#newcode189 third_party/WebKit/Source/core/css/CSSGradientValue.h:189: Member<const CSSPrimitiveValue> angle_; // may be null. Could ...
3 years, 8 months ago (2017-04-12 13:28:15 UTC) #12
f(malita)
https://codereview.chromium.org/2817523002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.h File third_party/WebKit/Source/core/css/CSSGradientValue.h (right): https://codereview.chromium.org/2817523002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.h#newcode189 third_party/WebKit/Source/core/css/CSSGradientValue.h:189: Member<const CSSPrimitiveValue> angle_; // may be null. On 2017/04/12 ...
3 years, 8 months ago (2017-04-12 13:59:05 UTC) #13
fs
https://codereview.chromium.org/2817523002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.h File third_party/WebKit/Source/core/css/CSSGradientValue.h (right): https://codereview.chromium.org/2817523002/diff/20001/third_party/WebKit/Source/core/css/CSSGradientValue.h#newcode189 third_party/WebKit/Source/core/css/CSSGradientValue.h:189: Member<const CSSPrimitiveValue> angle_; // may be null. On 2017/04/12 ...
3 years, 8 months ago (2017-04-12 14:01:26 UTC) #14
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/2817523002/40001
3 years, 8 months ago (2017-04-12 14:04:26 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 15:35:47 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/55633a0e8db901aa6ce0990c9935...

Powered by Google App Engine
This is Rietveld 408576698