Bug 1336905 - Part 2. Remove StyleShapeOutsideShapeBox. r=TYLin draft
authorcku <cku@mozilla.com>
Mon, 06 Feb 2017 15:56:03 +0800
changeset 487376 2c2744f3fdc4a2b6936f1135ea2cb62d76cd0399
parent 487375 c043e4790bc2c84e4f3735a95c8ef0d9aa268986
child 546461 5bfe609bcbae7ff65eab2aa0bd6575d666290c77
push id46226
push userbmo:cku@mozilla.com
push dateTue, 21 Feb 2017 16:02:57 +0000
reviewersTYLin
bugs1336905
milestone54.0a1
Bug 1336905 - Part 2. Remove StyleShapeOutsideShapeBox. r=TYLin MozReview-Commit-ID: L7vlIGwCOzi
layout/style/nsCSSProps.cpp
layout/style/nsStyleConsts.h
--- a/layout/style/nsCSSProps.cpp
+++ b/layout/style/nsCSSProps.cpp
@@ -2337,20 +2337,20 @@ const KTableEntry nsCSSProps::kImageRend
 
 const KTableEntry nsCSSProps::kMaskTypeKTable[] = {
   { eCSSKeyword_luminance, NS_STYLE_MASK_TYPE_LUMINANCE },
   { eCSSKeyword_alpha, NS_STYLE_MASK_TYPE_ALPHA },
   { eCSSKeyword_UNKNOWN, -1 }
 };
 
 const KTableEntry nsCSSProps::kShapeOutsideShapeBoxKTable[] = {
-  { eCSSKeyword_content_box, StyleShapeOutsideShapeBox::Content },
-  { eCSSKeyword_padding_box, StyleShapeOutsideShapeBox::Padding },
-  { eCSSKeyword_border_box, StyleShapeOutsideShapeBox::Border },
-  { eCSSKeyword_margin_box, StyleShapeOutsideShapeBox::Margin },
+  { eCSSKeyword_content_box, StyleGeometryBox::Content },
+  { eCSSKeyword_padding_box, StyleGeometryBox::Padding },
+  { eCSSKeyword_border_box, StyleGeometryBox::Border },
+  { eCSSKeyword_margin_box, StyleGeometryBox::Margin },
   { eCSSKeyword_UNKNOWN, -1 }
 };
 
 const KTableEntry nsCSSProps::kShapeRenderingKTable[] = {
   { eCSSKeyword_auto, NS_STYLE_SHAPE_RENDERING_AUTO },
   { eCSSKeyword_optimizespeed, NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED },
   { eCSSKeyword_crispedges, NS_STYLE_SHAPE_RENDERING_CRISPEDGES },
   { eCSSKeyword_geometricprecision, NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION },
--- a/layout/style/nsStyleConsts.h
+++ b/layout/style/nsStyleConsts.h
@@ -139,25 +139,16 @@ enum class StyleFloatEdge : uint8_t {
 
 // Hyphens
 enum class StyleHyphens : uint8_t {
   None,
   Manual,
   Auto,
 };
 
-// shape-box for shape-outside
-enum class StyleShapeOutsideShapeBox : uint8_t {
-  NoBox,
-  Content,
-  Padding,
-  Border,
-  Margin
-};
-
 // <shape-radius> for <basic-shape>
 enum class StyleShapeRadius : uint8_t {
   ClosestSide,
   FarthestSide,
 };
 
 // Shape source type
 enum class StyleShapeSourceType : uint8_t {