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

Issue 2647503004: Added CSSPropertyPositionUtils which holds position parsing methods. (Closed)

Created:
3 years, 11 months ago by nainar
Modified:
3 years, 11 months ago
Reviewers:
sashab, aazzam
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added CSSPropertyPositionUtils which holds position parsing methods. Moved methods with position parsing logic into a utils file, so that the parsing logic for CSSPropertyBackgroundAttachment, CSSPropertyBackgroundBlendMode, CSSPropertyBackgroundClip, CSSPropertyBackgroundImage, CSSPropertyBackgroundOrigin, CSSPropertyBackgroundPositionX, CSSPropertyBackgroundPositionY, CSSPropertyBackgroundSize, CSSPropertyMaskSourceType, CSSPropertyWebkitBackgroundClip, CSSPropertyWebkitBackgroundOrigin, CSSPropertyWebkitMaskClip, CSSPropertyWebkitMaskComposite, CSSPropertyWebkitMaskImage, CSSPropertyWebkitMaskOrigin, CSSPropertyWebkitMaskPositionX, CSSPropertyWebkitMaskPositionY and CSSPropertyWebkitMaskSize can be moved out of CSSPropertyParser.cpp into implementations of CSSPropertyAPI.h. Follow up patches implement CSSPropertyAPI for all the properties. This patch: - Adds CSSPropertyPositionUtils (.h and .cpp files) to the BUILD.gn file. - Moves consumePositionLonghand(), consumePositionX() and consumePositionY() from CSSPropertyParser.cpp to CSSPropertyPositionUtils.cpp. - Changes callsites of these methods in CSSPropertyParser.cpp to call the methods from CSSPropertyPositionUtils. BUG=668012 Review-Url: https://codereview.chromium.org/2647503004 Cr-Commit-Position: refs/heads/master@{#445031} Committed: https://chromium.googlesource.com/chromium/src/+/6cb44cd8daf1700acb3cc710191974d2c057a4ba

Patch Set 1 #

Patch Set 2 : Add position utility functions #

Patch Set 3 : It builds! #

Total comments: 5

Patch Set 4 : Merged correctly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -37 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 chunks +13 lines, -37 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyPositionUtils.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (20 generated)
nainar
Anna, PTAL?
3 years, 11 months ago (2017-01-19 05:58:10 UTC) #6
aazzam
if consumePositionLonghand is only a helper function for consumePositionX and consumePositionY, then maybe just implement ...
3 years, 11 months ago (2017-01-19 22:36:18 UTC) #9
nainar
Done. PTAL?
3 years, 11 months ago (2017-01-20 04:24:31 UTC) #12
aazzam
awesome, LGTM! sasha ptal :)
3 years, 11 months ago (2017-01-20 04:36:53 UTC) #16
sashab
Might need to replace forward decls with #inclueds. Other than that lgtm :) https://codereview.chromium.org/2647503004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn File ...
3 years, 11 months ago (2017-01-20 04:39:49 UTC) #17
nainar
Sasha FYI. https://codereview.chromium.org/2647503004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn File third_party/WebKit/Source/core/css/BUILD.gn (right): https://codereview.chromium.org/2647503004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn#newcode395 third_party/WebKit/Source/core/css/BUILD.gn:395: "properties/CSSPropertyPositionUtils.h", On 2017/01/20 at 04:39:49, sashab wrote: ...
3 years, 11 months ago (2017-01-20 06:22:38 UTC) #18
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/2647503004/60001
3 years, 11 months ago (2017-01-20 10:22:30 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 10:26:54 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6cb44cd8daf1700acb3cc7101919...

Powered by Google App Engine
This is Rietveld 408576698