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

Issue 2661323002: Implement CSSPaintValue and add a layout test. (Closed)

Created:
3 years, 10 months ago by renjieliu1
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, haraken, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement CSSPaintValue and add a layout test. BUG=672647 Review-Url: https://codereview.chromium.org/2661323002 Cr-Commit-Position: refs/heads/master@{#453546} Committed: https://chromium.googlesource.com/chromium/src/+/d18dd5bf544f6e8a0ed730588956df9da41db235

Patch Set 1 #

Patch Set 2 : Pass in extracted csspaint arguments and call paint function. #

Patch Set 3 : updates #

Total comments: 2

Patch Set 4 : fix indent #

Total comments: 4

Patch Set 5 : parse arguments early #

Total comments: 8

Patch Set 6 : rebase #

Total comments: 6

Patch Set 7 : check generator ready #

Total comments: 4

Patch Set 8 : add flag #

Total comments: 6

Patch Set 9 : refactor #

Total comments: 2

Patch Set 10 : format #

Total comments: 2

Patch Set 11 : format #

Patch Set 12 : rebase #

Total comments: 2

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -13 lines) Patch
A third_party/WebKit/LayoutTests/csspaint/paint-arguments.html View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/csspaint/paint-arguments-expected.html View 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintValue.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintValue.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +41 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSVariableData.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/cssom/StyleValueFactory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 53 (27 generated)
renjieliu1
3 years, 10 months ago (2017-01-31 23:07:37 UTC) #3
meade_UTC10
lgtm This seems pretty straight forward. Looks like you still need a paint owner. https://codereview.chromium.org/2661323002/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint-arguments.html ...
3 years, 10 months ago (2017-02-09 06:48:45 UTC) #4
renjieliu1
thanks for the review! https://codereview.chromium.org/2661323002/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint-arguments.html File third_party/WebKit/LayoutTests/csspaint/paint-arguments.html (right): https://codereview.chromium.org/2661323002/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint-arguments.html#newcode47 third_party/WebKit/LayoutTests/csspaint/paint-arguments.html:47: importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent); On 2017/02/09 06:48:45, Eddy ...
3 years, 10 months ago (2017-02-13 01:32:14 UTC) #7
renjieliu1
3 years, 10 months ago (2017-02-13 01:34:46 UTC) #9
renjieliu1
Friendly ping: Hi Ian, can you review the cl? Thank you! :)
3 years, 10 months ago (2017-02-15 22:59:32 UTC) #12
ikilpatrick
https://codereview.chromium.org/2661323002/diff/60001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/60001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode50 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:50: return m_generator->paint(layoutObject, size, zoom, m_argumentVariableData); should be able to ...
3 years, 10 months ago (2017-02-16 03:19:36 UTC) #13
renjieliu1
thank you for the review! https://codereview.chromium.org/2661323002/diff/60001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/60001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode50 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:50: return m_generator->paint(layoutObject, size, zoom, ...
3 years, 10 months ago (2017-02-16 04:11:14 UTC) #14
renjieliu1
Refactored the code to parse the input arguments earlier to avoid parsing every time paint ...
3 years, 10 months ago (2017-02-17 04:56:21 UTC) #15
meade_UTC10
https://codereview.chromium.org/2661323002/diff/80001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/80001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode52 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:52: if (!m_parsedInputArguments) { If you make the type of ...
3 years, 10 months ago (2017-02-17 07:09:37 UTC) #16
renjieliu1
thank you for the review! https://codereview.chromium.org/2661323002/diff/80001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/80001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode52 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:52: if (!m_parsedInputArguments) { On ...
3 years, 10 months ago (2017-02-19 04:39:14 UTC) #17
ikilpatrick
https://codereview.chromium.org/2661323002/diff/100001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/100001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode52 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:52: if (!m_parsedInputArguments) { This is unfortunately racy. You'll need ...
3 years, 10 months ago (2017-02-21 17:40:36 UTC) #18
haraken
https://codereview.chromium.org/2661323002/diff/100001/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp File third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp (right): https://codereview.chromium.org/2661323002/diff/100001/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp#newcode81 third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp:81: DEFINE_STATIC_LOCAL(Vector<CSSSyntaxDescriptor>, emptyVector, ()); Nit: Is it really worth defining ...
3 years, 10 months ago (2017-02-21 23:51:55 UTC) #20
renjieliu1
thank you for the review! https://codereview.chromium.org/2661323002/diff/100001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/100001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode52 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:52: if (!m_parsedInputArguments) { On ...
3 years, 10 months ago (2017-02-22 04:47:55 UTC) #21
ikilpatrick
just a few more comments! https://codereview.chromium.org/2661323002/diff/120001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/120001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode53 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:53: m_parsedInputArguments = new CSSStyleValueVector(); ...
3 years, 10 months ago (2017-02-22 19:25:13 UTC) #22
renjieliu1
https://codereview.chromium.org/2661323002/diff/120001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/120001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode53 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:53: m_parsedInputArguments = new CSSStyleValueVector(); On 2017/02/22 19:25:13, ikilpatrick wrote: ...
3 years, 10 months ago (2017-02-22 23:54:56 UTC) #23
ikilpatrick
lgtm https://codereview.chromium.org/2661323002/diff/140001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/140001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode56 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:56: // Parse arguments. Could you extract this into ...
3 years, 9 months ago (2017-02-27 17:25:03 UTC) #24
renjieliu1
thanks for the review! https://codereview.chromium.org/2661323002/diff/140001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/140001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode56 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:56: // Parse arguments. On 2017/02/27 ...
3 years, 9 months ago (2017-02-27 23:20:44 UTC) #25
ikilpatrick
https://codereview.chromium.org/2661323002/diff/160001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/160001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode62 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:62: if (!m_parsedInputArguments) { oh could you de-nest this? e.g. ...
3 years, 9 months ago (2017-02-27 23:24:29 UTC) #26
renjieliu1
https://codereview.chromium.org/2661323002/diff/160001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/160001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode62 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:62: if (!m_parsedInputArguments) { On 2017/02/27 23:24:29, ikilpatrick wrote: > ...
3 years, 9 months ago (2017-02-28 00:06:09 UTC) #27
ikilpatrick
lgtm https://codereview.chromium.org/2661323002/diff/180001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/180001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode66 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:66: if (!m_generator->isImageGeneratorReady()) { no need for braces here.
3 years, 9 months ago (2017-02-28 00:10:45 UTC) #28
renjieliu1
https://codereview.chromium.org/2661323002/diff/180001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp File third_party/WebKit/Source/core/css/CSSPaintValue.cpp (right): https://codereview.chromium.org/2661323002/diff/180001/third_party/WebKit/Source/core/css/CSSPaintValue.cpp#newcode66 third_party/WebKit/Source/core/css/CSSPaintValue.cpp:66: if (!m_generator->isImageGeneratorReady()) { On 2017/02/28 00:10:45, ikilpatrick wrote: > ...
3 years, 9 months ago (2017-02-28 00:31:03 UTC) #29
haraken
V8 binding usage LGTM https://codereview.chromium.org/2661323002/diff/220001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp File third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp (right): https://codereview.chromium.org/2661323002/diff/220001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp#newcode116 third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp:116: instance, 4, argv, isolate); Nit: ...
3 years, 9 months ago (2017-02-28 04:21:30 UTC) #40
renjieliu1
https://codereview.chromium.org/2661323002/diff/220001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp File third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp (right): https://codereview.chromium.org/2661323002/diff/220001/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp#newcode116 third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp:116: instance, 4, argv, isolate); On 2017/02/28 04:21:30, haraken wrote: ...
3 years, 9 months ago (2017-02-28 05:04:59 UTC) #42
renjieliu1
3 years, 9 months ago (2017-02-28 05:05:00 UTC) #43
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/2661323002/240001
3 years, 9 months ago (2017-02-28 07:47:41 UTC) #50
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 09:00:02 UTC) #53
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/d18dd5bf544f6e8a0ed730588956...

Powered by Google App Engine
This is Rietveld 408576698