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

Issue 2220253002: [Typed-OM] Add Image typedom_types to properties and enable them to be set with StyleMap (Closed)

Created:
4 years, 4 months ago by anthonyhkf
Modified:
4 years, 4 months ago
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@CSSURLImageValue
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Typed-OM] Add Image typedom_types to properties and enable them to be set with StyleMap Those properties are: background-image, border-image-source, list-style-image, content, and shape-outside. Spec: https://drafts.css-houdini.org/css-typed-om/#mapping-of-properties-to-accepted-types BUG=545318 Committed: https://crrev.com/d76a6b0f5c29fe451128de078a82991954304393 Cr-Commit-Position: refs/heads/master@{#413403}

Patch Set 1 #

Patch Set 2 : Add layout test #

Total comments: 15

Patch Set 3 : Add resource and remove keywords for list-style-image #

Patch Set 4 : Add previous test #

Patch Set 5 : Rebase #

Patch Set 6 : Add tests for each image property and enable set for content #

Total comments: 1

Patch Set 7 : Fix tests #

Patch Set 8 : Add comments #

Total comments: 7

Patch Set 9 : Use url & base64 images, set content to accept list of values #

Patch Set 10 : Fixed typo #

Total comments: 8

Patch Set 11 : Renaming things #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +100 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/typedcssom/resources/1x1-green.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/Source/build/scripts/make_cssom_types.py View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (23 generated)
anthonyhkf
4 years, 4 months ago (2016-08-08 04:25:14 UTC) #2
meade_UTC10
Looking pretty good, tests need a bit of work. https://codereview.chromium.org/2220253002/diff/20001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (left): https://codereview.chromium.org/2220253002/diff/20001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#oldcode10 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:10: ...
4 years, 4 months ago (2016-08-08 06:49:01 UTC) #3
ikilpatrick
https://codereview.chromium.org/2220253002/diff/20001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/20001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode19 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:19: document.getElementById("test-image1").styleMap.set('background-image', imageValue1); might be good to loop over all ...
4 years, 4 months ago (2016-08-08 16:37:50 UTC) #4
meade_UTC10
https://codereview.chromium.org/2220253002/diff/20001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/20001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode19 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:19: document.getElementById("test-image1").styleMap.set('background-image', imageValue1); On 2016/08/08 16:37:49, ikilpatrick wrote: > might ...
4 years, 4 months ago (2016-08-09 07:03:52 UTC) #5
anthonyhkf
I've added the 'shape-outside' and 'content'. But I need to change the StyleBuilderCustom.cpp to enable ...
4 years, 4 months ago (2016-08-10 05:38:13 UTC) #6
anthonyhkf
https://codereview.chromium.org/2220253002/diff/100001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/100001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode48 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:48: image[i].src = url[i]; Oh, it's still wrong here :(
4 years, 4 months ago (2016-08-10 06:05:10 UTC) #7
anthonyhkf
https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode12 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:12: return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAIMUlEQVR42r3ZCVeTVxoHcD7LfAtn2LfqONae0zOnlh4piKBA2G2L0o5jtRoWWURkzYJQttrpoeOGoiC7ZRMSAmHfNwkh20tA7H+e+76ELQFeECfn/A8hC/nx3Hufm5s4OR3yojOuhjxrNSKxfAphGWM4naDFifgB+H7bD59v+nH8u36c/pcWoamjSC6dwfNWA5aW8Ben/9elQWVEgnwCvpd74RWnhWesEA+WGCHu63GL7oNrlBAXild0P67IJtGoNuGjAZvoj4ekDMOXquV9ScvHDhprD7VhXWyJpNvoZ9DNEbT0mo8OvGBckX6vnMQnbEgvCdkKtWE9HFR1NyiLc6Tw+1Xl9IdjO/rNOHOtD76X+vh5x+eQUFcH0L9FCPn8qhbdw9zhwNVtepyK7yGkBr5xvQTr24DasEcF/aukF26XelCvOuDcfdaqx/HoN/CJ6YFPrAY+BPXhodqPBmU5Fs2wRnHYVo0RJ+K64BPdTVAVQQkbp4E3X1Xtkc5ROyjFJVa9/zRYWFqRfh7fBa+IN/CKop/RKnjHqIXEUlXjqKpx2g9e9XtBj4X34tPvtXtDf5QNwzO8naCd8IrsgndUN7yjWdTwomngHaMhXJ9dNY8Cemw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Kh2dUjnI6Jx+n+6vfM2hsc+K4dl3H4T7HySu84ZvNttQAAAAAElFTkSuQmCC"; Is it OK to use this image? ...
4 years, 4 months ago (2016-08-10 07:02:13 UTC) #8
meade_UTC10
You also need to give your CL description a more descriptive title :) What does ...
4 years, 4 months ago (2016-08-10 07:16:05 UTC) #9
anthonyhkf
https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp (right): https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp#newcode688 third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp:688: } On 2016/08/10 07:16:05, Eddy wrote: > What's this ...
4 years, 4 months ago (2016-08-10 07:26:09 UTC) #11
Timothy Loh
https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp (right): https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp#newcode688 third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp:688: } On 2016/08/10 07:26:09, anthonyhkf wrote: > On 2016/08/10 ...
4 years, 4 months ago (2016-08-10 07:44:05 UTC) #12
meade_UTC10
https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp (right): https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp#newcode688 third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp:688: } On 2016/08/10 07:44:05, Timothy Loh wrote: > On ...
4 years, 4 months ago (2016-08-11 00:44:41 UTC) #13
anthonyhkf
https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/140001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode12 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:12: return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAIMUlEQVR42r3ZCVeTVxoHcD7LfAtn2LfqONae0zOnlh4piKBA2G2L0o5jtRoWWURkzYJQttrpoeOGoiC7ZRMSAmHfNwkh20tA7H+e+76ELQFeECfn/A8hC/nx3Hufm5s4OR3yojOuhjxrNSKxfAphGWM4naDFifgB+H7bD59v+nH8u36c/pcWoamjSC6dwfNWA5aW8Ben/9elQWVEgnwCvpd74RWnhWesEA+WGCHu63GL7oNrlBAXild0P67IJtGoNuGjAZvoj4ekDMOXquV9ScvHDhprD7VhXWyJpNvoZ9DNEbT0mo8OvGBckX6vnMQnbEgvCdkKtWE9HFR1NyiLc6Tw+1Xl9IdjO/rNOHOtD76X+vh5x+eQUFcH0L9FCPn8qhbdw9zhwNVtepyK7yGkBr5xvQTr24DasEcF/aukF26XelCvOuDcfdaqx/HoN/CJ6YFPrAY+BPXhodqPBmU5Fs2wRnHYVo0RJ+K64BPdTVAVQQkbp4E3X1Xtkc5ROyjFJVa9/zRYWFqRfh7fBa+IN/CKop/RKnjHqIXEUlXjqKpx2g9e9XtBj4X34tPvtXtDf5QNwzO8naCd8IrsgndUN7yjWdTwomngHaMhXJ9dNY8CemwLlOUH+ZRjbEUDh+B7A3C/8Bpekg6hqoT1iuwWKhvNqqrhK+tN2P2G3VHDt0GdRUDZ9dcaB302Um6ERLmMf8b/AfeLrfCUdPLhsVEqwqrhSZPdi1U1tpevrK2abKFFpA0ho2IM5dXjeFQziKJKDZILexB+6w9IbrYh/KdWSK53QPJTOyTSTkRJOxCZ3I0ISmSSSkhqDyJuqyg9iMnQ4IZieDu0vH4Z4UohoXkL8Aqug0doKzxoC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esPV2hhh9SIBJKjyuqmuGryrZFtqBOikSeSjFDPba+4tUW0UiWlqE1OLHGygBiE67gMDAlvCDbFlk/dQjcgXzZLTxHM6xHae2iaGQhZXSeoJOLawjJ5w6ETaBRmFkQXphti2zH2Q3JhttWSfZGpqTOZIfcC1pQu+VkGkHzVCwyOF8ImzIDkwKAzTu247AVzdoPC7vOFg67jz1GNaiHtGT2QEPOqlmjfrcJrWha2QCIzXlKqJxDWcNmdR1lnBafrGoB/tJxFNdxB0KyTOneb3+XH5S/JArnKBdlwm5VSujHHaz1WPBzvQXXS3X4OnUWX0qnkPhAd2Dkwzar/ZmpomkZ5/Msu2L2S1De9gRSfz6b+hZ+STPwTxpBCbUjMUgbVPlqFdP6945PohLF0gcDz60nIMuAr27P4YvEKWQ9MuyNdFDN2p7V3c/2k7o1+OfqDwTbCbTlbKYefgSVZE1Tc1/ZF7gVWdayuv/HOlWd9EI55l1Be+H45Ao5m67DF7cm+XfpB0EW1ZqxYPyzQtTnT8U1Jjvsub2Suz2B2Sb4pcwhQTnPtyOxSMUrMyZ07w/2iR7DBuaaRON44HrYsH8pnUQxHRzFV9J0cKTt8rRjGecyFx2iduJsCcg2wy91HkkP9KKALBVNVvHDvdcCC89bouE0O4TtjD9VMzCNFlCjdf+hrrWitnvlaL94+IX6bEDmEgJyLLsiA9jcTKfz+lPTnkBl7QoqWy3UJ//8eN+OlDeYEZq9hK/vGbcjc2hu3jEgMoctoJVtQBsy/4UBz6mCU4edi4e5zOjXkEfn8ehCqnKGAWdpBzqTMovsKh2dUjnI6Jx+n+6vfM2hsc+K4dl3H4T7HySu84ZvNttQAAAAAElFTkSuQmCC"; On 2016/08/10 07:16:05, Eddy wrote: > On ...
4 years, 4 months ago (2016-08-11 03:25:57 UTC) #22
meade_UTC10
https://codereview.chromium.org/2220253002/diff/180001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/180001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode14 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:14: function urlImage() { This function name makes it sound ...
4 years, 4 months ago (2016-08-12 05:30:17 UTC) #23
anthonyhkf
https://codereview.chromium.org/2220253002/diff/180001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html File third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html (right): https://codereview.chromium.org/2220253002/diff/180001/third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html#newcode14 third_party/WebKit/LayoutTests/typedcssom/cssURLImageValue.html:14: function urlImage() { On 2016/08/12 05:30:17, Eddy wrote: > ...
4 years, 4 months ago (2016-08-14 05:51:30 UTC) #24
meade_UTC10
lgtm
4 years, 4 months ago (2016-08-15 01:08:18 UTC) #29
meade_UTC10
+Tim for OWNERS approval
4 years, 4 months ago (2016-08-15 01:09:13 UTC) #31
ikilpatrick
lgtm
4 years, 4 months ago (2016-08-15 01:36:52 UTC) #32
Timothy Loh
lgtm
4 years, 4 months ago (2016-08-15 03:24:03 UTC) #33
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/2220253002/220001
4 years, 4 months ago (2016-08-22 04:19:15 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-22 04:24:14 UTC) #42
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 04:25:56 UTC) #44
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d76a6b0f5c29fe451128de078a82991954304393
Cr-Commit-Position: refs/heads/master@{#413403}

Powered by Google App Engine
This is Rietveld 408576698