OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 } | 1004 } |
1005 | 1005 |
1006 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } | 1006 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } |
1007 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } | 1007 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } |
1008 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } | 1008 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } |
1009 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } | 1009 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } |
1010 | 1010 |
1011 DraggableRegionMode getDraggableRegionMode() const { return rareNonInherited
Data->m_draggableRegionMode; } | 1011 DraggableRegionMode getDraggableRegionMode() const { return rareNonInherited
Data->m_draggableRegionMode; } |
1012 void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(rareNonInherite
dData, m_draggableRegionMode, v); } | 1012 void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(rareNonInherite
dData, m_draggableRegionMode, v); } |
1013 | 1013 |
1014 void resetBorder() { resetBorderImage(); resetBorderTop(); resetBorderRight(
); resetBorderBottom(); resetBorderLeft(); resetBorderRadius(); } | 1014 void resetBorder() |
| 1015 { |
| 1016 resetBorderImage(); |
| 1017 resetBorderTop(); |
| 1018 resetBorderRight(); |
| 1019 resetBorderBottom(); |
| 1020 resetBorderLeft(); |
| 1021 resetBorderTopLeftRadius(); |
| 1022 resetBorderTopRightRadius(); |
| 1023 resetBorderBottomLeftRadius(); |
| 1024 resetBorderBottomRightRadius(); |
| 1025 } |
1015 void resetBorderTop() { SET_VAR(surround, border.m_top, BorderValue()); } | 1026 void resetBorderTop() { SET_VAR(surround, border.m_top, BorderValue()); } |
1016 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} | 1027 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} |
1017 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } | 1028 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } |
1018 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } | 1029 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } |
1019 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } | 1030 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } |
1020 void resetBorderRadius() { resetBorderTopLeftRadius(); resetBorderTopRightRa
dius(); resetBorderBottomLeftRadius(); resetBorderBottomRightRadius(); } | |
1021 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } | 1031 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } |
1022 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } | 1032 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } |
1023 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } | 1033 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } |
1024 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } | 1034 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } |
1025 | 1035 |
1026 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } | 1036 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } |
1027 | 1037 |
1028 void setBackgroundXPosition(const Length& length) { SET_VAR(m_background, m_
background.m_xPosition, length); } | 1038 void setBackgroundXPosition(const Length& length) { SET_VAR(m_background, m_
background.m_xPosition, length); } |
1029 void setBackgroundYPosition(const Length& length) { SET_VAR(m_background, m_
background.m_yPosition, length); } | 1039 void setBackgroundYPosition(const Length& length) { SET_VAR(m_background, m_
background.m_yPosition, length); } |
1030 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } | 1040 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1181 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } | 1191 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } |
1182 | 1192 |
1183 void setHasAspectRatio(bool b) { SET_VAR(rareNonInheritedData, m_hasAspectRa
tio, b); } | 1193 void setHasAspectRatio(bool b) { SET_VAR(rareNonInheritedData, m_hasAspectRa
tio, b); } |
1184 void setAspectRatioDenominator(float v) { SET_VAR(rareNonInheritedData, m_as
pectRatioDenominator, v); } | 1194 void setAspectRatioDenominator(float v) { SET_VAR(rareNonInheritedData, m_as
pectRatioDenominator, v); } |
1185 void setAspectRatioNumerator(float v) { SET_VAR(rareNonInheritedData, m_aspe
ctRatioNumerator, v); } | 1195 void setAspectRatioNumerator(float v) { SET_VAR(rareNonInheritedData, m_aspe
ctRatioNumerator, v); } |
1186 | 1196 |
1187 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type =
v; } | 1197 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type =
v; } |
1188 void setListStyleImage(PassRefPtr<StyleImage>); | 1198 void setListStyleImage(PassRefPtr<StyleImage>); |
1189 void setListStylePosition(EListStylePosition v) { inherited_flags._list_styl
e_position = v; } | 1199 void setListStylePosition(EListStylePosition v) { inherited_flags._list_styl
e_position = v; } |
1190 | 1200 |
1191 void resetMargin() { SET_VAR(surround, margin, LengthBox(Fixed)); } | |
1192 void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); } | 1201 void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); } |
1193 void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v
); } | 1202 void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v
); } |
1194 void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); } | 1203 void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); } |
1195 void setMarginRight(const Length& v) { SET_VAR(surround, margin.m_right, v);
} | 1204 void setMarginRight(const Length& v) { SET_VAR(surround, margin.m_right, v);
} |
1196 void setMarginStart(const Length&); | 1205 void setMarginStart(const Length&); |
1197 void setMarginEnd(const Length&); | 1206 void setMarginEnd(const Length&); |
1198 | 1207 |
1199 void resetPadding() { SET_VAR(surround, padding, LengthBox(Auto)); } | 1208 void resetPadding() { SET_VAR(surround, padding, LengthBox(Auto)); } |
1200 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); } | 1209 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); } |
1201 void setPaddingTop(const Length& v) { SET_VAR(surround, padding.m_top, v); } | 1210 void setPaddingTop(const Length& v) { SET_VAR(surround, padding.m_top, v); } |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 inline bool RenderStyle::hasPseudoElementStyle() const | 1891 inline bool RenderStyle::hasPseudoElementStyle() const |
1883 { | 1892 { |
1884 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1893 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1885 } | 1894 } |
1886 | 1895 |
1887 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1896 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1888 | 1897 |
1889 } // namespace WebCore | 1898 } // namespace WebCore |
1890 | 1899 |
1891 #endif // RenderStyle_h | 1900 #endif // RenderStyle_h |
OLD | NEW |