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

Issue 55783002: Introduce BorderImageLength and BorderImageLengthBox (Closed)

Created:
7 years, 1 month ago by davve
Modified:
7 years, 1 month ago
CC:
blink-reviews, zoltan1, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, Steve Block
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce BorderImageLength and BorderImageLengthBox Getting rid of the Relative length type has been a goal for a while and this is step one for getting rid of it for the remaining user: border-image. Specifically, the 'border-image-width' and 'border-image-outset' longhand properties are the remaining users of the Relative length type. Relative is used to indicate that the Length doesn't contain a length at all, but a plain number (in this case a multiple of the respective computed border width). Wrap this usage within a BorderImageLength for now, to prepare for BorderImageLength conditionally acting as a number itself and thus making it possible to remove the Relative length type. To limit scope, not all use of Length as a BorderImageLength is wrapped. Notably parts of RenderStyle and the related animation code haven't been converted. For this to work there is compatibility code that goes from LengthBox to BorderImageLengthBox and back. No functional changes expected. To a large part covered by existing tests in LayoutTests/fast/borders/border-image-*. BUG=259107 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161527

Patch Set 1 #

Total comments: 29

Patch Set 2 : Address review comments #

Total comments: 4

Patch Set 3 : For landing #

Patch Set 4 : Add PlatformExport.h #

Patch Set 5 : Moved BorderImageLength{,Box} to core/rendering/style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -68 lines) Patch
M Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 2 chunks +13 lines, -13 lines 0 comments Download
M Source/core/css/CSSToStyleMap.h View 1 3 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSToStyleMap.cpp View 1 2 3 4 4 chunks +24 lines, -23 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download
A Source/core/rendering/style/BorderImageLength.h View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
A Source/core/rendering/style/BorderImageLengthBox.h View 1 2 3 4 1 chunk +116 lines, -0 lines 0 comments Download
M Source/core/rendering/style/NinePieceImage.h View 1 2 3 4 5 chunks +14 lines, -12 lines 0 comments Download
M Source/core/rendering/style/NinePieceImage.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
davve
Be careful what you wish for :) (regarding comment in http://code.google.com/p/chromium/issues/detail?id=304000). This is patch 1/4 ...
7 years, 1 month ago (2013-11-01 12:43:42 UTC) #1
davve
On 2013/11/01 12:43:42, davve wrote: > I'll publish them if you find the first part ...
7 years, 1 month ago (2013-11-01 16:56:06 UTC) #2
Julien - ping for review
https://codereview.chromium.org/55783002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/55783002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode182 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:182: image.setOutset(LengthOrNumberBox({{ (["Length(0, Fixed)"]*4) | join(", ") }})); We modify ...
7 years, 1 month ago (2013-11-01 18:27:11 UTC) #3
davve
https://codereview.chromium.org/55783002/diff/1/Source/platform/LengthOrNumberBox.h File Source/platform/LengthOrNumberBox.h (right): https://codereview.chromium.org/55783002/diff/1/Source/platform/LengthOrNumberBox.h#newcode28 Source/platform/LengthOrNumberBox.h:28: class PLATFORM_EXPORT LengthOrNumberBox { On 2013/11/01 18:27:11, Julien Chaffraix ...
7 years, 1 month ago (2013-11-04 09:55:36 UTC) #4
davve
https://codereview.chromium.org/55783002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/55783002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode182 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:182: image.setOutset(LengthOrNumberBox({{ (["Length(0, Fixed)"]*4) | join(", ") }})); On 2013/11/01 ...
7 years, 1 month ago (2013-11-04 12:42:53 UTC) #5
Julien - ping for review
lgtm https://codereview.chromium.org/55783002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/55783002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode182 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:182: image.setOutset(LengthOrNumberBox({{ (["Length(0, Fixed)"]*4) | join(", ") }})); On ...
7 years, 1 month ago (2013-11-04 16:31:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/55783002/340001
7 years, 1 month ago (2013-11-04 21:11:37 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-04 22:36:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/55783002/470001
7 years, 1 month ago (2013-11-05 09:16:23 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-05 10:28:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/55783002/630001
7 years, 1 month ago (2013-11-07 12:40:54 UTC) #11
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 13:39:36 UTC) #12
Message was sent while issue was closed.
Change committed as 161527

Powered by Google App Engine
This is Rietveld 408576698