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

Issue 2878533004: Implements CSSPropertyAPI for the offset-path property (Closed)

Created:
3 years, 7 months ago by Eric Willigers
Modified:
3 years, 7 months ago
Reviewers:
meade_UTC10, Bugs Nash
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implements CSSPropertyAPI for the offset-path property A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyOffsetPath from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the offset-path property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIOffsetPath.cpp to the BUILD.gn file. - Adds parseSingleValue to "offset-path" in CSSProperties.json5 so that it will be added to the generated files for the api. - Moves the parsing logic for offset-path from CSSPropertyParser.cpp to CSSPropertyAPIOffsetPath.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2878533004 Cr-Commit-Position: refs/heads/master@{#471289} Committed: https://chromium.googlesource.com/chromium/src/+/545f7be4401875ef9842de21144da3561281b2db

Patch Set 1 #

Total comments: 2

Patch Set 2 : add the new generated .h file to core/BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Eric Willigers
Diffs in generated files: https://gist.github.com/ewilligers/02f396260667f41fda900330197a8068/revisions
3 years, 7 months ago (2017-05-11 05:22:31 UTC) #2
Bugs Nash
lgtm with changes. As with previous patch, please add the new .h file to core/BUILD.gn ...
3 years, 7 months ago (2017-05-11 23:19:06 UTC) #3
Eric Willigers
On 2017/05/11 23:19:06, Bugs Nash wrote: > ... As with previous patch, please add the ...
3 years, 7 months ago (2017-05-12 00:26:47 UTC) #4
Eric Willigers
https://codereview.chromium.org/2878533004/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp (right): https://codereview.chromium.org/2878533004/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp#newcode8 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp:8: On 2017/05/11 23:19:06, Bugs Nash wrote: > As with ...
3 years, 7 months ago (2017-05-12 00:29:38 UTC) #6
meade_UTC10
rs lgtm
3 years, 7 months ago (2017-05-12 04:21:05 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/2878533004/20001
3 years, 7 months ago (2017-05-12 08:29:20 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382964)
3 years, 7 months ago (2017-05-12 09:44:42 UTC) #16
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/2878533004/20001
3 years, 7 months ago (2017-05-12 12:25:28 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 12:52:28 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/545f7be4401875ef9842de21144d...

Powered by Google App Engine
This is Rietveld 408576698