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

Issue 226363003: [CSS Shapes] Simplify Polygon implementation (Closed)

Created:
6 years, 8 months ago by rwlbuis
Modified:
6 years, 8 months ago
CC:
blink-reviews, jamesr, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jbroman, danakj, Rik, jchaffraix+rendering, pdr., Stephen Chennney, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Shapes] Simplify Polygon implementation Only floats can specify shape-outside. For polygon shape-outside values, the problem of finding the left and right exclusion edges reduces to finding the X axis limits of the polygon edges that overlap a particular layout line. This is a much simpler version of the problem that PolygonShape was originally designed for, and so the implementation can also be simplified. There's more about the new algorithm in http://hansmuller-webkit.blogspot.com/2014/03/a-simpler-algorithm-for-css-shapes.html. This is a merge of http://trac.webkit.org/changeset/166790 by Hans Muller <hmuller@adobe.com>;. BUG=360139 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170931

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't change FloatRect.h #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -429 lines) Patch
M Source/core/rendering/shapes/PolygonShape.h View 2 chunks +7 lines, -33 lines 1 comment Download
M Source/core/rendering/shapes/PolygonShape.cpp View 1 2 chunks +61 lines, -260 lines 0 comments Download
M Source/core/rendering/shapes/ShapeInterval.h View 3 chunks +1 line, -136 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rwlbuis
PTAL :)
6 years, 8 months ago (2014-04-04 20:32:02 UTC) #1
Stephen Chennney
I haven't looked at the rest of the code, but I'm not happy with the ...
6 years, 8 months ago (2014-04-04 20:42:35 UTC) #2
rwlbuis
On 2014/04/04 20:42:35, Stephen Chenney wrote: > I haven't looked at the rest of the ...
6 years, 8 months ago (2014-04-04 21:44:34 UTC) #3
Hans Muller
The changes look good to me.
6 years, 8 months ago (2014-04-04 21:54:32 UTC) #4
rwlbuis
Another code simplification patch ported over from WebKit.
6 years, 8 months ago (2014-04-04 22:07:00 UTC) #5
eseidel
lgtm https://codereview.chromium.org/226363003/diff/20001/Source/core/rendering/shapes/PolygonShape.h File Source/core/rendering/shapes/PolygonShape.h (right): https://codereview.chromium.org/226363003/diff/20001/Source/core/rendering/shapes/PolygonShape.h#newcode50 Source/core/rendering/shapes/PolygonShape.h:50: bool isWithinYRange(float y1, float y2) const { return ...
6 years, 8 months ago (2014-04-05 01:49:04 UTC) #6
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 8 months ago (2014-04-05 02:56:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/226363003/20001
6 years, 8 months ago (2014-04-05 02:56:51 UTC) #8
commit-bot: I haz the power
6 years, 8 months ago (2014-04-05 21:47:14 UTC) #9
Message was sent while issue was closed.
Change committed as 170931

Powered by Google App Engine
This is Rietveld 408576698