gecko-dev/layout
Ting-Yu Lin af28dce861 Bug 1311244 Part 6 - Add ShapeInfo and move <shape-box> impl to BoxShapeInfo. r=dbaron
Create ShapeInfo as a base class for implementing all the shapes. In this
design, we only need to create the correct subclass in FloatInfo's
constructor whenever shape-outside is used rather than manually branching on
StyleShapeSourceType and StyleBasicShape in all the methods like
LineRight(), LineLeft(), etc.

The concrete subclass of ShapeInfo could focus on implementing how its shape
influence the flow area by overriding the needed methods in ShapeInfo.

Move ComputeEllipseLineInterceptDiff() and XInterceptAtY() under the scope
nsFloatManager so that they could be used by BoxShapeInfo and all the other
ShpapeInfo subclasses yet to come.

MozReview-Commit-ID: ETVc5FdGNha

--HG--
extra : rebase_source : c73b0d0be2350db3eedb61b565de194842352ba1
2017-01-06 16:36:30 +08:00
..
base Bug 1311244 Part 4 - Extract the computation of circle radius as ComputeCircleRadius(). r=dbaron 2017-01-06 16:36:05 +08:00
build Bug 1322550 - Rename DOMStorage to Storage, r=smaug 2017-01-04 14:53:01 +01:00
doc Bug 906116 - part3.3: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron 2016-07-06 13:06:14 +08:00
forms Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
generic Bug 1311244 Part 6 - Add ShapeInfo and move <shape-box> impl to BoxShapeInfo. r=dbaron 2017-01-06 16:36:30 +08:00
inspector Bug 1322191 part 3 - [css-display] Tests for display:flow-root. r=dholbert 2016-12-23 19:11:04 +01:00
ipc Bug 1304598 Part 6 - Rename nsViewportFrame.h/cpp to ViewportFrame.h/cpp, and move exported header to mozilla/ subdir. r=dholbert 2016-11-30 11:14:29 +08:00
mathml Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron 2016-12-31 00:57:37 +11:00
media Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
painting Bug 1329091 - Keep mask style value to determine whether cached mask layer is corrupt. r=mstange 2017-01-06 17:53:30 +08:00
printing Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
reftests Bug 1328095 - Reftest (also covers bug 1232194). 2017-01-04 21:35:19 +01:00
style Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
svg Bug 1311244 Part 4 - Extract the computation of circle radius as ComputeCircleRadius(). r=dbaron 2017-01-06 16:36:05 +08:00
tables Bug 1320014 Part 2 - Rename Corner to LogicalCorner, and move it to nsStyleCoord.h. r=mats 2017-01-04 16:52:12 +08:00
tools Backed out changeset 193d05c4b3fc (bug 1325148) 2016-12-27 15:14:18 +01:00
xul Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
moz.build Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow 2016-11-21 20:01:15 -05:00