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

Unified Diff: Source/core/rendering/style/ShapeValue.h

Issue 220023003: Rename LayoutBox to CSSBoxType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/style/RenderStyleConstants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/ShapeValue.h
diff --git a/Source/core/rendering/style/ShapeValue.h b/Source/core/rendering/style/ShapeValue.h
index a8db549f95830d2f622a973ac003899372a92023..8590fc244758c43aae640034e1b91b1ef53727ad 100644
--- a/Source/core/rendering/style/ShapeValue.h
+++ b/Source/core/rendering/style/ShapeValue.h
@@ -48,9 +48,9 @@ public:
Image
};
- static PassRefPtr<ShapeValue> createShapeValue(PassRefPtr<BasicShape> shape, LayoutBox layoutBox)
+ static PassRefPtr<ShapeValue> createShapeValue(PassRefPtr<BasicShape> shape, CSSBoxType cssBox)
{
- return adoptRef(new ShapeValue(shape, layoutBox));
+ return adoptRef(new ShapeValue(shape, cssBox));
}
static PassRefPtr<ShapeValue> createOutsideValue()
@@ -58,9 +58,9 @@ public:
return adoptRef(new ShapeValue(Outside));
}
- static PassRefPtr<ShapeValue> createLayoutBoxValue(LayoutBox layoutBox)
+ static PassRefPtr<ShapeValue> createBoxShapeValue(CSSBoxType cssBox)
{
- return adoptRef(new ShapeValue(layoutBox));
+ return adoptRef(new ShapeValue(cssBox));
}
static PassRefPtr<ShapeValue> createImageValue(PassRefPtr<StyleImage> image)
@@ -79,32 +79,31 @@ public:
if (m_image != image)
m_image = image;
}
- LayoutBox layoutBox() const { return m_layoutBox; }
- void setLayoutBox(LayoutBox layoutBox) { m_layoutBox = layoutBox; }
+ CSSBoxType cssBox() const { return m_cssBox; }
bool operator==(const ShapeValue& other) const;
private:
- ShapeValue(PassRefPtr<BasicShape> shape, LayoutBox layoutBox)
+ ShapeValue(PassRefPtr<BasicShape> shape, CSSBoxType cssBox)
: m_type(Shape)
, m_shape(shape)
- , m_layoutBox(layoutBox)
+ , m_cssBox(cssBox)
{
}
ShapeValue(ShapeValueType type)
: m_type(type)
- , m_layoutBox(BoxMissing)
+ , m_cssBox(BoxMissing)
{
}
ShapeValue(PassRefPtr<StyleImage> image)
: m_type(Image)
, m_image(image)
- , m_layoutBox(ContentBox)
+ , m_cssBox(ContentBox)
{
}
- ShapeValue(LayoutBox layoutBox)
+ ShapeValue(CSSBoxType cssBox)
: m_type(Box)
- , m_layoutBox(layoutBox)
+ , m_cssBox(cssBox)
{
}
@@ -112,7 +111,7 @@ private:
ShapeValueType m_type;
RefPtr<BasicShape> m_shape;
RefPtr<StyleImage> m_image;
- LayoutBox m_layoutBox;
+ CSSBoxType m_cssBox;
};
inline bool ShapeValue::operator==(const ShapeValue& other) const
@@ -122,9 +121,9 @@ inline bool ShapeValue::operator==(const ShapeValue& other) const
switch (type()) {
case Shape:
- return shape() == other.shape() && layoutBox() == other.layoutBox();
+ return shape() == other.shape() && cssBox() == other.cssBox();
case Box:
- return layoutBox() == other.layoutBox();
+ return cssBox() == other.cssBox();
case Outside:
return true;
case Image:
« no previous file with comments | « Source/core/rendering/style/RenderStyleConstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698