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

Issue 2533673002: Added CSSPropertyAPI and CSS padding properties which implement this API (Closed)

Created:
4 years ago by aazzam
Modified:
4 years ago
CC:
Z_DONOTUSE, ojan, sashab, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis, rune
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added CSSPropertyAPI and CSS padding properties which implement this API Added the CSSPropertyAPI for a single method parseSingleValue. Made CSSPaddingProperties which implements this API for a few css properties. Added CSS property descriptor which uses a struct to store function pointers for the property's functions. BUG=668012 Committed: https://crrev.com/13f6e06ed6b80d003e7298b501e57a58695ca951 Cr-Commit-Position: refs/heads/master@{#438057}

Patch Set 1 #

Patch Set 2 : fix branch #

Total comments: 14

Patch Set 3 : Added comments and made code neater #

Total comments: 1

Patch Set 4 : Fixed some formatting #

Total comments: 32

Patch Set 5 : Made code neater, moved get descriptor code to a macro #

Patch Set 6 : removed unnecessary line #

Patch Set 7 : review comments #

Total comments: 45

Patch Set 8 : Renamed CSSPaddingProperties, added comments and style #

Patch Set 9 : Polishing code comments #

Total comments: 10

Patch Set 10 : Fixed comments and added is_pod static assert for descriptor #

Total comments: 4

Patch Set 11 : Fixed comments #

Total comments: 5

Patch Set 12 : fixed comments #

Total comments: 6

Patch Set 13 : Removed id variable in class #

Total comments: 2

Patch Set 14 : added TODO #

Patch Set 15 : renamed isValid to temporaryCanReadValue #

Total comments: 4

Patch Set 16 : Removed subclasses of WebkitPadding #

Patch Set 17 : format #

Patch Set 18 : format #

Messages

Total messages: 78 (38 generated)
commit-bot: I haz the power
This CL has an open dependency (Issue 2521173002 Patch 40001). Please resolve the dependency and ...
4 years ago (2016-11-28 00:19:22 UTC) #5
aazzam
4 years ago (2016-11-28 00:19:50 UTC) #6
aazzam
ptal :) https://codereview.chromium.org/2533673002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h File third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h (right): https://codereview.chromium.org/2533673002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h#newcode15 third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h:15: class CSSPropertyAPI { Look at other public ...
4 years ago (2016-11-28 23:29:01 UTC) #9
nainar
Hi Anna, The patch lg*m so far. Other than one issue and I have commented ...
4 years ago (2016-11-29 02:17:21 UTC) #11
alancutter (OOO until 2018)
https://codereview.chromium.org/2533673002/diff/60001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2533673002/diff/60001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode3433 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3433: parse Avoid manual line wrapping, let the formatting tool ...
4 years ago (2016-11-29 06:51:50 UTC) #14
alancutter (OOO until 2018)
https://codereview.chromium.org/2533673002/diff/60001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2533673002/diff/60001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode43 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:43: #include "core/css/properties/CSSPaddingProperties.h" This include is not necessary. The core ...
4 years ago (2016-11-29 06:54:05 UTC) #15
alancutter (OOO until 2018)
To add to nainar's comment about unit tests: I would be okay for these changes ...
4 years ago (2016-11-29 06:58:49 UTC) #16
aazzam
ptal :) https://codereview.chromium.org/2533673002/diff/60001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2533673002/diff/60001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode43 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:43: #include "core/css/properties/CSSPaddingProperties.h" On 2016/11/29 at 06:54:04, alancutter ...
4 years ago (2016-11-30 23:32:54 UTC) #19
alancutter (OOO until 2018)
https://codereview.chromium.org/2533673002/diff/120001/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp File third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp (right): https://codereview.chromium.org/2533673002/diff/120001/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp#newcode41 third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp:41: } These implementations are identical, they should inherit from ...
4 years ago (2016-11-30 23:46:54 UTC) #20
sashab
A few small naming and comments comments Other than that lg*m :D https://codereview.chromium.org/2533673002/diff/120001/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.h File third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.h ...
4 years ago (2016-11-30 23:48:39 UTC) #21
aazzam
https://codereview.chromium.org/2533673002/diff/120001/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp File third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp (right): https://codereview.chromium.org/2533673002/diff/120001/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp#newcode41 third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp:41: } On 2016/11/30 at 23:46:54, alancutter wrote: > These ...
4 years ago (2016-12-01 04:17:54 UTC) #25
aazzam
4 years ago (2016-12-05 23:29:04 UTC) #28
sashab
Love the comments!! Looking super polished. Just a couple of nits, happy for ojan to ...
4 years ago (2016-12-05 23:58:12 UTC) #30
aazzam
Thanks Sasha, I fixed those things :) would like it if you could review for ...
4 years ago (2016-12-06 00:30:10 UTC) #33
sashab
Some more tiny stuff sorry :) But looking great so far https://codereview.chromium.org/2533673002/diff/180001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): ...
4 years ago (2016-12-06 01:46:55 UTC) #35
aazzam
https://codereview.chromium.org/2533673002/diff/180001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/180001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode20 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:20: // only. On 2016/12/06 at 01:46:55, sashab wrote: > ...
4 years ago (2016-12-06 02:39:40 UTC) #36
sashab
One more tiny thing :) https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp (right): https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp#newcode23 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp:23: "CSSPropertyDescriptor should be POD."); ...
4 years ago (2016-12-06 23:04:28 UTC) #37
ojan
https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode21 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:21: bool isValid; Is this just a temporary thing we ...
4 years ago (2016-12-07 00:48:57 UTC) #38
ojan
https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode21 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:21: bool isValid; On 2016/12/07 at 00:48:57, ojan wrote: > ...
4 years ago (2016-12-07 00:49:41 UTC) #39
aazzam
PTAL :) https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp (right): https://codereview.chromium.org/2533673002/diff/200001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp#newcode23 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.cpp:23: "CSSPropertyDescriptor should be POD."); On 2016/12/06 at ...
4 years ago (2016-12-07 02:16:42 UTC) #40
Z_DONOTUSE
Almost there. Sorry for the delays. The TODOs are good (and should stay), but comments ...
4 years ago (2016-12-08 01:00:18 UTC) #43
aazzam
PTAL ojan :) https://codereview.chromium.org/2533673002/diff/220001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h File third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h (right): https://codereview.chromium.org/2533673002/diff/220001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h#newcode37 third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h:37: static const CSSPropertyID id; On 2016/12/08 ...
4 years ago (2016-12-08 02:27:10 UTC) #44
Z_DONOTUSE
https://codereview.chromium.org/2533673002/diff/220001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/220001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode23 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:23: bool isValid; On 2016/12/08 at 02:27:10, aazzam wrote: > ...
4 years ago (2016-12-08 03:18:00 UTC) #47
Z_DONOTUSE
https://codereview.chromium.org/2533673002/diff/240001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPadding.h File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPadding.h (right): https://codereview.chromium.org/2533673002/diff/240001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPadding.h#newcode22 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPadding.h:22: class CSSPropertyAPIWebkitPaddingStart : public CSSPropertyAPIWebkitPadding {}; Nit: It's really ...
4 years ago (2016-12-08 03:20:05 UTC) #48
aazzam
PTAL ojan :) https://codereview.chromium.org/2533673002/diff/220001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/220001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode23 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:23: bool isValid; On 2016/12/08 at 03:18:00, ...
4 years ago (2016-12-08 04:16:36 UTC) #49
alancutter (OOO until 2018)
https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode20 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:20: bool temporaryCanReadValue; TODO: Remove this once the switch in ...
4 years ago (2016-12-11 23:31:15 UTC) #51
alancutter (OOO until 2018)
https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode20 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:20: bool temporaryCanReadValue; On 2016/12/11 at 23:31:15, alancutter wrote: > ...
4 years ago (2016-12-11 23:37:04 UTC) #52
aazzam
https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode20 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:20: bool temporaryCanReadValue; On 2016/12/11 at 23:31:15, alancutter wrote: > ...
4 years ago (2016-12-12 03:37:32 UTC) #53
Z_DONOTUSE
lgtm https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h File third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h (right): https://codereview.chromium.org/2533673002/diff/280001/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h#newcode20 third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h:20: bool temporaryCanReadValue; On 2016/12/12 at 03:37:32, aazzam wrote: ...
4 years ago (2016-12-12 05:50:18 UTC) #54
sashab
LGTM. Well done Anna! :)
4 years ago (2016-12-12 05:53:25 UTC) #56
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/2533673002/280001
4 years ago (2016-12-12 05:55:59 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196894)
4 years ago (2016-12-12 07:37:26 UTC) #60
aazzam
PTAL Alan :)
4 years ago (2016-12-12 23:22:43 UTC) #62
alancutter (OOO until 2018)
lgtm
4 years ago (2016-12-12 23:24:42 UTC) #63
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/2533673002/320001
4 years ago (2016-12-12 23:33:25 UTC) #66
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/2533673002/340001
4 years ago (2016-12-13 00:05:11 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/197739)
4 years ago (2016-12-13 01:45:15 UTC) #71
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/2533673002/340001
4 years ago (2016-12-13 02:51:47 UTC) #73
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years ago (2016-12-13 04:37:15 UTC) #76
commit-bot: I haz the power
4 years ago (2016-12-13 04:38:46 UTC) #78
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/13f6e06ed6b80d003e7298b501e57a58695ca951
Cr-Commit-Position: refs/heads/master@{#438057}

Powered by Google App Engine
This is Rietveld 408576698