Commit 18d0781c authored by pdr@chromium.org's avatar pdr@chromium.org

Remove some unused functions in RenderStyle

Trivial patch, found while investigating another issue. This patch
removes resetMargin and resetBorderRadius.

Review URL: https://codereview.chromium.org/337043002

git-svn-id: svn://svn.chromium.org/blink/trunk@176258 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 20e63b79
......@@ -1011,13 +1011,23 @@ public:
DraggableRegionMode getDraggableRegionMode() const { return rareNonInheritedData->m_draggableRegionMode; }
void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(rareNonInheritedData, m_draggableRegionMode, v); }
void resetBorder() { resetBorderImage(); resetBorderTop(); resetBorderRight(); resetBorderBottom(); resetBorderLeft(); resetBorderRadius(); }
void resetBorder()
{
resetBorderImage();
resetBorderTop();
resetBorderRight();
resetBorderBottom();
resetBorderLeft();
resetBorderTopLeftRadius();
resetBorderTopRightRadius();
resetBorderBottomLeftRadius();
resetBorderBottomRightRadius();
}
void resetBorderTop() { SET_VAR(surround, border.m_top, BorderValue()); }
void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue()); }
void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue()); }
void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); }
void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()); }
void resetBorderRadius() { resetBorderTopLeftRadius(); resetBorderTopRightRadius(); resetBorderBottomLeftRadius(); resetBorderBottomRightRadius(); }
void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initialBorderRadius()); }
void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, initialBorderRadius()); }
void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft, initialBorderRadius()); }
......@@ -1187,7 +1197,6 @@ public:
void setListStyleImage(PassRefPtr<StyleImage>);
void setListStylePosition(EListStylePosition v) { inherited_flags._list_style_position = v; }
void resetMargin() { SET_VAR(surround, margin, LengthBox(Fixed)); }
void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); }
void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v); }
void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment