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

Issue 14892005: [CSS Exclusions] ExclusionShape bounding box methods should return LayoutRects (Closed)

Created:
7 years, 7 months ago by Hans Muller
Modified:
7 years, 7 months ago
CC:
blink-reviews, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, leviw_travelin_and_unemployed
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Exclusions] ExclusionShape bounding box methods should return LayoutRects Redefined the ExclusionShape API in terms of LayoutUnits, instead of floats: all of the ExclusionShape methods now have LayoutUnit parameters and return LayoutUnit values. This is more natural, since the callers work exclusively in LayoutUnits. This is strictly a refactoring, no new tests were needed. The impetus for this change was some feedback from Levi and Julien about an earlier change - https://codereview.chromium.org/14289003/. The LayoutUnit to float conversions have always occured at the boundary between the layout system and the ExclusionShape classes. Previously these conversions were mostly implicit and ad-hoc, and the callers found them somewhat confusing. Refactoring the ExclusionShape API in terms of LayoutUnits simplifies life for the callers and ensures that the conversions are systematic. BUG=235085 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149809

Patch Set 1 #

Patch Set 2 : [CSS Exclusions] ExclusionShape bounding box methods should return LayoutRects #

Total comments: 3

Patch Set 3 : reverted LineSegment logicalLeft,Right type change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -75 lines) Patch
M Source/core/rendering/exclusions/ExclusionPolygon.h View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionPolygon.cpp View 6 chunks +18 lines, -14 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionRectangle.h View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionRectangle.cpp View 4 chunks +17 lines, -13 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionShape.h View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionShape.cpp View 6 chunks +7 lines, -9 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionShapeInfo.h View 3 chunks +4 lines, -8 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionShapeInfo.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionShapeInsideInfo.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionShapeOutsideInfo.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Hans Muller
Although this not a small patch, it's making a logically small change. It revises the ...
7 years, 7 months ago (2013-05-03 22:20:23 UTC) #1
eseidel
Emil and Levi are better reviewer here.
7 years, 7 months ago (2013-05-04 01:15:47 UTC) #2
Hans Muller
Added Levi and Emil per Eric's request.
7 years, 7 months ago (2013-05-06 13:56:37 UTC) #3
Hans Muller
[resending this since the reviewer list has changed, sorry if you're seeing a dup] Although ...
7 years, 7 months ago (2013-05-06 15:39:11 UTC) #4
eae
I'm not entirely sure why you are making this change and I am a bit ...
7 years, 7 months ago (2013-05-06 15:59:28 UTC) #5
Hans Muller
On 2013/05/06 15:59:28, eae wrote: > I'm not entirely sure why you are making this ...
7 years, 7 months ago (2013-05-06 17:08:28 UTC) #6
eae
On 2013/05/06 17:08:28, Hans Muller wrote: > On 2013/05/06 15:59:28, eae wrote: > > I'm ...
7 years, 7 months ago (2013-05-06 19:45:16 UTC) #7
Hans Muller
On 2013/05/06 19:45:16, eae wrote: > On 2013/05/06 17:08:28, Hans Muller wrote: > > On ...
7 years, 7 months ago (2013-05-06 21:21:31 UTC) #8
eae
LGTM Thanks!
7 years, 7 months ago (2013-05-06 21:22:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14892005/10001
7 years, 7 months ago (2013-05-06 21:57:47 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-06 22:04:40 UTC) #11
Message was sent while issue was closed.
Change committed as 149809

Powered by Google App Engine
This is Rietveld 408576698