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

Issue 24066007: Mask/background-repeat: round should round the number of tiles of an image to the nearest natural n… (Closed)

Created:
7 years, 3 months ago by Andrei Parvu
Modified:
7 years, 3 months ago
CC:
blink-reviews, dglazkov+blink, eae, leviw+renderwatch, jchaffraix+rendering, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Mask/background-repeat: round should round the number of tiles of an image to the nearest natural number greater than 0. BUG=260691 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158017

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added round function instead of roundToInt #

Total comments: 2

Patch Set 3 : Added lroundf function #

Total comments: 3

Patch Set 4 : Rebaseline test #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -17 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/css3/background/background-repeat-round-auto1-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/background/background-repeat-round-auto2-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/background/background-repeat-round-border-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/background/background-repeat-round-content-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/background/background-repeat-round-padding.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/background/background-repeat-round-padding-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/mask-repeat-round-auto1-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/mask-repeat-round-auto2-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/mask-repeat-round-border-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/mask-repeat-round-content-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/mask-repeat-round-padding.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/mask-repeat-round-padding-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/ietestcenter/css3/bordersbackgrounds/background-size-aspect-ratio.htm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Andrei Parvu
According to the spec [1] mask/background-repeat: round should round the number of tiles of an ...
7 years, 3 months ago (2013-09-13 09:05:37 UTC) #1
Julien - ping for review
https://codereview.chromium.org/24066007/diff/1/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/24066007/diff/1/Source/core/rendering/RenderBoxModelObject.cpp#newcode1065 Source/core/rendering/RenderBoxModelObject.cpp:1065: int nrTiles = roundToInt((float)positioningAreaSize.width() / roundToInt takes a LayoutUnit ...
7 years, 3 months ago (2013-09-16 20:05:25 UTC) #2
Andrei Parvu
Thanks for the review, Julien. Didn't know about the round function from wtf/MathExtras.h - replaced ...
7 years, 3 months ago (2013-09-17 09:14:53 UTC) #3
eseidel
https://codereview.chromium.org/24066007/diff/6001/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/24066007/diff/6001/Source/core/rendering/RenderBoxModelObject.cpp#newcode1065 Source/core/rendering/RenderBoxModelObject.cpp:1065: int nrTiles = static_cast<int>(round((float)positioningAreaSize.width() / fillTileSize.width())); We don't have ...
7 years, 3 months ago (2013-09-17 15:48:44 UTC) #4
Julien - ping for review
https://codereview.chromium.org/24066007/diff/6001/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/24066007/diff/6001/Source/core/rendering/RenderBoxModelObject.cpp#newcode1065 Source/core/rendering/RenderBoxModelObject.cpp:1065: int nrTiles = static_cast<int>(round((float)positioningAreaSize.width() / fillTileSize.width())); On 2013/09/17 15:48:44, ...
7 years, 3 months ago (2013-09-17 16:26:26 UTC) #5
eseidel
We also have saturated arithmetic functions for LayoutUnit if that's applicable here?
7 years, 3 months ago (2013-09-17 16:33:10 UTC) #6
Julien - ping for review
On 2013/09/17 16:33:10, eseidel wrote: > We also have saturated arithmetic functions for LayoutUnit if ...
7 years, 3 months ago (2013-09-17 17:28:57 UTC) #7
Andrei Parvu
Changed variable type to long and used lroundf function.
7 years, 3 months ago (2013-09-17 17:50:09 UTC) #8
eseidel
https://codereview.chromium.org/24066007/diff/13001/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/24066007/diff/13001/Source/core/rendering/RenderBoxModelObject.cpp#newcode1065 Source/core/rendering/RenderBoxModelObject.cpp:1065: long nrTiles = lroundf((float)positioningAreaSize.width() / fillTileSize.width()); So this is ...
7 years, 3 months ago (2013-09-17 18:06:59 UTC) #9
eseidel
lgtm https://codereview.chromium.org/24066007/diff/13001/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/24066007/diff/13001/Source/core/rendering/RenderBoxModelObject.cpp#newcode1065 Source/core/rendering/RenderBoxModelObject.cpp:1065: long nrTiles = lroundf((float)positioningAreaSize.width() / fillTileSize.width()); On 2013/09/17 ...
7 years, 3 months ago (2013-09-17 18:08:32 UTC) #10
Julien - ping for review
lgtm2 https://codereview.chromium.org/24066007/diff/13001/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/24066007/diff/13001/Source/core/rendering/RenderBoxModelObject.cpp#newcode1065 Source/core/rendering/RenderBoxModelObject.cpp:1065: long nrTiles = lroundf((float)positioningAreaSize.width() / fillTileSize.width()); On 2013/09/17 ...
7 years, 3 months ago (2013-09-17 18:37:48 UTC) #11
Andrei Parvu
Thanks for the comments, guys!
7 years, 3 months ago (2013-09-18 06:19:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrei.prv@gmail.com/24066007/13001
7 years, 3 months ago (2013-09-18 06:20:08 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=5157
7 years, 3 months ago (2013-09-18 07:43:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrei.prv@gmail.com/24066007/31001
7 years, 3 months ago (2013-09-18 11:19:16 UTC) #15
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-18 11:19:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrei.prv@gmail.com/24066007/36001
7 years, 3 months ago (2013-09-18 14:40:17 UTC) #17
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-18 15:46:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrei.prv@gmail.com/24066007/46001
7 years, 3 months ago (2013-09-19 06:16:57 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-19 08:01:30 UTC) #20
Message was sent while issue was closed.
Change committed as 158017

Powered by Google App Engine
This is Rietveld 408576698