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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 const FontDescription& fontDescription() const; | 568 const FontDescription& fontDescription() const; |
569 float specifiedFontSize() const; | 569 float specifiedFontSize() const; |
570 float computedFontSize() const; | 570 float computedFontSize() const; |
571 int fontSize() const; | 571 int fontSize() const; |
572 FontWeight fontWeight() const; | 572 FontWeight fontWeight() const; |
573 | 573 |
574 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult
iplier; } | 574 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult
iplier; } |
575 | 575 |
576 const Length& textIndent() const { return rareInheritedData->indent; } | 576 const Length& textIndent() const { return rareInheritedData->indent; } |
577 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r
areInheritedData->m_textIndentLine); } | 577 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r
areInheritedData->m_textIndentLine); } |
| 578 TextIndentType textIndentType() const { return static_cast<TextIndentType>(r
areInheritedData->m_textIndentType); } |
578 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag
s._text_align); } | 579 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag
s._text_align); } |
579 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare
InheritedData->m_textAlignLast); } | 580 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare
InheritedData->m_textAlignLast); } |
580 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri
tedData->m_textJustify); } | 581 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri
tedData->m_textJustify); } |
581 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_flags._text_transform); } | 582 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_flags._text_transform); } |
582 TextDecoration textDecorationsInEffect() const { return static_cast<TextDeco
ration>(inherited_flags._text_decorations); } | 583 TextDecoration textDecorationsInEffect() const { return static_cast<TextDeco
ration>(inherited_flags._text_decorations); } |
583 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v
isual->textDecoration); } | 584 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v
isual->textDecoration); } |
584 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex
tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } | 585 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex
tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } |
585 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec
orationStyle>(rareNonInheritedData->m_textDecorationStyle); } | 586 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec
orationStyle>(rareNonInheritedData->m_textDecorationStyle); } |
586 float wordSpacing() const; | 587 float wordSpacing() const; |
587 float letterSpacing() const; | 588 float letterSpacing() const; |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 | 1097 |
1097 void setTextAutosizingMultiplier(float v) | 1098 void setTextAutosizingMultiplier(float v) |
1098 { | 1099 { |
1099 SET_VAR(visual, m_textAutosizingMultiplier, v); | 1100 SET_VAR(visual, m_textAutosizingMultiplier, v); |
1100 setFontSize(fontDescription().specifiedSize()); | 1101 setFontSize(fontDescription().specifiedSize()); |
1101 } | 1102 } |
1102 | 1103 |
1103 void setColor(const Color&); | 1104 void setColor(const Color&); |
1104 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } | 1105 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } |
1105 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } | 1106 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } |
| 1107 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } |
1106 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } | 1108 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } |
1107 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } | 1109 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } |
1108 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } | 1110 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } |
1109 void setTextTransform(ETextTransform v) { inherited_flags._text_transform =
v; } | 1111 void setTextTransform(ETextTransform v) { inherited_flags._text_transform =
v; } |
1110 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_
decorations |= v; } | 1112 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_
decorations |= v; } |
1111 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de
corations = v; } | 1113 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de
corations = v; } |
1112 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } | 1114 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } |
1113 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } | 1115 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } |
1114 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite
dData, m_textDecorationStyle, v); } | 1116 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite
dData, m_textDecorationStyle, v); } |
1115 void setDirection(TextDirection v) { inherited_flags._direction = v; } | 1117 void setDirection(TextDirection v) { inherited_flags._direction = v; } |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1551 static unsigned short initialOutlineWidth() { return 3; } | 1553 static unsigned short initialOutlineWidth() { return 3; } |
1552 static float initialLetterWordSpacing() { return 0.0f; } | 1554 static float initialLetterWordSpacing() { return 0.0f; } |
1553 static Length initialSize() { return Length(); } | 1555 static Length initialSize() { return Length(); } |
1554 static Length initialMinSize() { return Length(Fixed); } | 1556 static Length initialMinSize() { return Length(Fixed); } |
1555 static Length initialMaxSize() { return Length(Undefined); } | 1557 static Length initialMaxSize() { return Length(Undefined); } |
1556 static Length initialOffset() { return Length(); } | 1558 static Length initialOffset() { return Length(); } |
1557 static Length initialMargin() { return Length(Fixed); } | 1559 static Length initialMargin() { return Length(Fixed); } |
1558 static Length initialPadding() { return Length(Fixed); } | 1560 static Length initialPadding() { return Length(Fixed); } |
1559 static Length initialTextIndent() { return Length(Fixed); } | 1561 static Length initialTextIndent() { return Length(Fixed); } |
1560 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine;
} | 1562 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine;
} |
| 1563 static TextIndentType initialTextIndentType() { return TextIndentNormal; } |
1561 static EVerticalAlign initialVerticalAlign() { return BASELINE; } | 1564 static EVerticalAlign initialVerticalAlign() { return BASELINE; } |
1562 static short initialWidows() { return 2; } | 1565 static short initialWidows() { return 2; } |
1563 static short initialOrphans() { return 2; } | 1566 static short initialOrphans() { return 2; } |
1564 static Length initialLineHeight() { return Length(-100.0, Percent); } | 1567 static Length initialLineHeight() { return Length(-100.0, Percent); } |
1565 static ETextAlign initialTextAlign() { return TASTART; } | 1568 static ETextAlign initialTextAlign() { return TASTART; } |
1566 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; } | 1569 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; } |
1567 static TextJustify initialTextJustify() { return TextJustifyAuto; } | 1570 static TextJustify initialTextJustify() { return TextJustifyAuto; } |
1568 static TextDecoration initialTextDecoration() { return TextDecorationNone; } | 1571 static TextDecoration initialTextDecoration() { return TextDecorationNone; } |
1569 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd
erlinePositionAuto; } | 1572 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd
erlinePositionAuto; } |
1570 static TextDecorationStyle initialTextDecorationStyle() { return TextDecorat
ionStyleSolid; } | 1573 static TextDecorationStyle initialTextDecorationStyle() { return TextDecorat
ionStyleSolid; } |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1858 inline bool RenderStyle::hasPseudoElementStyle() const | 1861 inline bool RenderStyle::hasPseudoElementStyle() const |
1859 { | 1862 { |
1860 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1863 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1861 } | 1864 } |
1862 | 1865 |
1863 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1866 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1864 | 1867 |
1865 } // namespace WebCore | 1868 } // namespace WebCore |
1866 | 1869 |
1867 #endif // RenderStyle_h | 1870 #endif // RenderStyle_h |
OLD | NEW |