| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 const Length& paddingBottom() const { return surround->padding.bottom(); } | 574 const Length& paddingBottom() const { return surround->padding.bottom(); } |
| 575 const Length& paddingLeft() const { return surround->padding.left(); } | 575 const Length& paddingLeft() const { return surround->padding.left(); } |
| 576 const Length& paddingRight() const { return surround->padding.right(); } | 576 const Length& paddingRight() const { return surround->padding.right(); } |
| 577 const Length& paddingBefore() const { return surround->padding.before(); } | 577 const Length& paddingBefore() const { return surround->padding.before(); } |
| 578 const Length& paddingAfter() const { return surround->padding.after(); } | 578 const Length& paddingAfter() const { return surround->padding.after(); } |
| 579 const Length& paddingStart() const { return surround->padding.start(directio
n()); } | 579 const Length& paddingStart() const { return surround->padding.start(directio
n()); } |
| 580 const Length& paddingEnd() const { return surround->padding.end(direction())
; } | 580 const Length& paddingEnd() const { return surround->padding.end(direction())
; } |
| 581 | 581 |
| 582 bool isLink() const { return noninherited_flags.isLink; } | 582 bool isLink() const { return noninherited_flags.isLink; } |
| 583 | 583 |
| 584 short widows() const { return rareInheritedData->widows; } | |
| 585 bool hasAutoWidows() const { return rareInheritedData->m_hasAutoWidows; } | |
| 586 EPageBreak pageBreakInside() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakInside); } | 584 EPageBreak pageBreakInside() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakInside); } |
| 587 EPageBreak pageBreakBefore() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakBefore); } | 585 EPageBreak pageBreakBefore() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakBefore); } |
| 588 EPageBreak pageBreakAfter() const { return static_cast<EPageBreak>(noninheri
ted_flags.pageBreakAfter); } | 586 EPageBreak pageBreakAfter() const { return static_cast<EPageBreak>(noninheri
ted_flags.pageBreakAfter); } |
| 589 | 587 |
| 590 // CSS3 Getter Methods | 588 // CSS3 Getter Methods |
| 591 | 589 |
| 592 int outlineOffset() const | 590 int outlineOffset() const |
| 593 { | 591 { |
| 594 if (m_background->outline().style() == BNONE) | 592 if (m_background->outline().style() == BNONE) |
| 595 return 0; | 593 return 0; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 void setPaddingLeft(const Length& v) { SET_VAR(surround, padding.m_left, v);
} | 903 void setPaddingLeft(const Length& v) { SET_VAR(surround, padding.m_left, v);
} |
| 906 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v
); } | 904 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v
); } |
| 907 | 905 |
| 908 void setIsLink(bool b) { noninherited_flags.isLink = b; } | 906 void setIsLink(bool b) { noninherited_flags.isLink = b; } |
| 909 | 907 |
| 910 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); } | 908 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); } |
| 911 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } | 909 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } |
| 912 unsigned zIndex() const { return m_box->zIndex(); } | 910 unsigned zIndex() const { return m_box->zIndex(); } |
| 913 void setZIndex(unsigned v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR
(m_box, m_zIndex, v); } | 911 void setZIndex(unsigned v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR
(m_box, m_zIndex, v); } |
| 914 | 912 |
| 915 void setHasAutoWidows() { SET_VAR(rareInheritedData, m_hasAutoWidows, true);
SET_VAR(rareInheritedData, widows, initialWidows()); } | |
| 916 void setWidows(short w) { SET_VAR(rareInheritedData, m_hasAutoWidows, false)
; SET_VAR(rareInheritedData, widows, w); } | |
| 917 | |
| 918 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props | 913 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props |
| 919 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags.pageBreakInside = b; } | 914 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags.pageBreakInside = b; } |
| 920 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore =
b; } | 915 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore =
b; } |
| 921 void setPageBreakAfter(EPageBreak b) { noninherited_flags.pageBreakAfter = b
; } | 916 void setPageBreakAfter(EPageBreak b) { noninherited_flags.pageBreakAfter = b
; } |
| 922 | 917 |
| 923 // CSS3 Setters | 918 // CSS3 Setters |
| 924 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} | 919 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} |
| 925 void setTextShadow(PassRefPtr<ShadowList>); | 920 void setTextShadow(PassRefPtr<ShadowList>); |
| 926 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } | 921 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } |
| 927 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } | 922 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 static Length initialSize() { return Length(); } | 1093 static Length initialSize() { return Length(); } |
| 1099 static Length initialMinSize() { return Length(Fixed); } | 1094 static Length initialMinSize() { return Length(Fixed); } |
| 1100 static Length initialMaxSize() { return Length(MaxSizeNone); } | 1095 static Length initialMaxSize() { return Length(MaxSizeNone); } |
| 1101 static Length initialOffset() { return Length(); } | 1096 static Length initialOffset() { return Length(); } |
| 1102 static Length initialMargin() { return Length(Fixed); } | 1097 static Length initialMargin() { return Length(Fixed); } |
| 1103 static Length initialPadding() { return Length(Fixed); } | 1098 static Length initialPadding() { return Length(Fixed); } |
| 1104 static Length initialTextIndent() { return Length(Fixed); } | 1099 static Length initialTextIndent() { return Length(Fixed); } |
| 1105 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine;
} | 1100 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine;
} |
| 1106 static TextIndentType initialTextIndentType() { return TextIndentNormal; } | 1101 static TextIndentType initialTextIndentType() { return TextIndentNormal; } |
| 1107 static EVerticalAlign initialVerticalAlign() { return BASELINE; } | 1102 static EVerticalAlign initialVerticalAlign() { return BASELINE; } |
| 1108 static short initialWidows() { return 2; } | |
| 1109 static Length initialLineHeight() { return Length(-100.0, Percent); } | 1103 static Length initialLineHeight() { return Length(-100.0, Percent); } |
| 1110 static ETextAlign initialTextAlign() { return TASTART; } | 1104 static ETextAlign initialTextAlign() { return TASTART; } |
| 1111 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; } | 1105 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; } |
| 1112 static TextJustify initialTextJustify() { return TextJustifyAuto; } | 1106 static TextJustify initialTextJustify() { return TextJustifyAuto; } |
| 1113 static TextDecoration initialTextDecoration() { return TextDecorationNone; } | 1107 static TextDecoration initialTextDecoration() { return TextDecorationNone; } |
| 1114 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd
erlinePositionAuto; } | 1108 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd
erlinePositionAuto; } |
| 1115 static TextDecorationStyle initialTextDecorationStyle() { return TextDecorat
ionStyleSolid; } | 1109 static TextDecorationStyle initialTextDecorationStyle() { return TextDecorat
ionStyleSolid; } |
| 1116 static int initialOutlineOffset() { return 0; } | 1110 static int initialOutlineOffset() { return 0; } |
| 1117 static float initialOpacity() { return 1.0f; } | 1111 static float initialOpacity() { return 1.0f; } |
| 1118 static EBoxAlignment initialBoxAlign() { return BSTRETCH; } | 1112 static EBoxAlignment initialBoxAlign() { return BSTRETCH; } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 | 1257 |
| 1264 rareInheritedData.access()->m_textOrientation = textOrientation; | 1258 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1265 return true; | 1259 return true; |
| 1266 } | 1260 } |
| 1267 | 1261 |
| 1268 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1262 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1269 | 1263 |
| 1270 } // namespace blink | 1264 } // namespace blink |
| 1271 | 1265 |
| 1272 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ | 1266 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ |
| OLD | NEW |