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 #Messages
Total messages: 11 (0 generated)
|