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 29 matching lines...) Expand all Loading... |
40 #include "core/rendering/style/SVGRenderStyle.h" | 40 #include "core/rendering/style/SVGRenderStyle.h" |
41 #include "core/rendering/style/ShapeValue.h" | 41 #include "core/rendering/style/ShapeValue.h" |
42 #include "core/rendering/style/StyleBackgroundData.h" | 42 #include "core/rendering/style/StyleBackgroundData.h" |
43 #include "core/rendering/style/StyleBoxData.h" | 43 #include "core/rendering/style/StyleBoxData.h" |
44 #include "core/rendering/style/StyleDeprecatedFlexibleBoxData.h" | 44 #include "core/rendering/style/StyleDeprecatedFlexibleBoxData.h" |
45 #include "core/rendering/style/StyleDifference.h" | 45 #include "core/rendering/style/StyleDifference.h" |
46 #include "core/rendering/style/StyleFilterData.h" | 46 #include "core/rendering/style/StyleFilterData.h" |
47 #include "core/rendering/style/StyleFlexibleBoxData.h" | 47 #include "core/rendering/style/StyleFlexibleBoxData.h" |
48 #include "core/rendering/style/StyleGridData.h" | 48 #include "core/rendering/style/StyleGridData.h" |
49 #include "core/rendering/style/StyleGridItemData.h" | 49 #include "core/rendering/style/StyleGridItemData.h" |
| 50 #include "core/rendering/style/StyleInheritedData.h" |
50 #include "core/rendering/style/StyleMarqueeData.h" | 51 #include "core/rendering/style/StyleMarqueeData.h" |
51 #include "core/rendering/style/StyleMultiColData.h" | 52 #include "core/rendering/style/StyleMultiColData.h" |
52 #include "core/rendering/style/StyleRareInheritedData.h" | 53 #include "core/rendering/style/StyleRareInheritedData.h" |
53 #include "core/rendering/style/StyleRareNonInheritedData.h" | 54 #include "core/rendering/style/StyleRareNonInheritedData.h" |
54 #include "core/rendering/style/StyleReflection.h" | 55 #include "core/rendering/style/StyleReflection.h" |
55 #include "core/rendering/style/StyleSurroundData.h" | 56 #include "core/rendering/style/StyleSurroundData.h" |
56 #include "core/rendering/style/StyleTransformData.h" | 57 #include "core/rendering/style/StyleTransformData.h" |
57 #include "core/rendering/style/StyleVisualData.h" | 58 #include "core/rendering/style/StyleVisualData.h" |
58 #include "core/rendering/style/StyleWillChangeData.h" | 59 #include "core/rendering/style/StyleWillChangeData.h" |
59 #include "core/svg/SVGPaint.h" | 60 #include "core/svg/SVGPaint.h" |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 bool isFixedTableLayout() const { return tableLayout() == TFIXED && !logical
Width().isAuto(); } | 567 bool isFixedTableLayout() const { return tableLayout() == TFIXED && !logical
Width().isAuto(); } |
567 | 568 |
568 const Font& font() const; | 569 const Font& font() const; |
569 const FontMetrics& fontMetrics() const; | 570 const FontMetrics& fontMetrics() const; |
570 const FontDescription& fontDescription() const; | 571 const FontDescription& fontDescription() const; |
571 float specifiedFontSize() const; | 572 float specifiedFontSize() const; |
572 float computedFontSize() const; | 573 float computedFontSize() const; |
573 int fontSize() const; | 574 int fontSize() const; |
574 FontWeight fontWeight() const; | 575 FontWeight fontWeight() const; |
575 | 576 |
576 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult
iplier; } | 577 float textAutosizingMultiplier() const { return inherited->textAutosizingMul
tiplier; } |
577 | 578 |
578 const Length& textIndent() const { return rareInheritedData->indent; } | 579 const Length& textIndent() const { return rareInheritedData->indent; } |
579 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r
areInheritedData->m_textIndentLine); } | 580 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r
areInheritedData->m_textIndentLine); } |
580 TextIndentType textIndentType() const { return static_cast<TextIndentType>(r
areInheritedData->m_textIndentType); } | 581 TextIndentType textIndentType() const { return static_cast<TextIndentType>(r
areInheritedData->m_textIndentType); } |
581 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag
s._text_align); } | 582 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag
s._text_align); } |
582 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare
InheritedData->m_textAlignLast); } | 583 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare
InheritedData->m_textAlignLast); } |
583 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri
tedData->m_textJustify); } | 584 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri
tedData->m_textJustify); } |
584 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_flags._text_transform); } | 585 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_flags._text_transform); } |
585 TextDecoration textDecorationsInEffect() const; | 586 TextDecoration textDecorationsInEffect() const; |
586 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; | 587 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 void setClear(EClear v) { noninherited_flags._clear = v; } | 1096 void setClear(EClear v) { noninherited_flags._clear = v; } |
1096 void setTableLayout(ETableLayout v) { noninherited_flags._table_layout = v;
} | 1097 void setTableLayout(ETableLayout v) { noninherited_flags._table_layout = v;
} |
1097 | 1098 |
1098 bool setFontDescription(const FontDescription&); | 1099 bool setFontDescription(const FontDescription&); |
1099 // Only used for blending font sizes when animating and for text autosizing. | 1100 // Only used for blending font sizes when animating and for text autosizing. |
1100 void setFontSize(float); | 1101 void setFontSize(float); |
1101 void setFontWeight(FontWeight); | 1102 void setFontWeight(FontWeight); |
1102 | 1103 |
1103 void setTextAutosizingMultiplier(float v) | 1104 void setTextAutosizingMultiplier(float v) |
1104 { | 1105 { |
1105 SET_VAR(visual, m_textAutosizingMultiplier, v); | 1106 SET_VAR(inherited, textAutosizingMultiplier, v); |
1106 setFontSize(fontDescription().specifiedSize()); | 1107 setFontSize(fontDescription().specifiedSize()); |
1107 } | 1108 } |
1108 | 1109 |
1109 void setColor(const Color&); | 1110 void setColor(const Color&); |
1110 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v);
} | 1111 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v);
} |
1111 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } | 1112 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } |
1112 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } | 1113 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } |
1113 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } | 1114 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } |
1114 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } | 1115 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } |
1115 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } | 1116 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 inline bool RenderStyle::hasPseudoElementStyle() const | 1879 inline bool RenderStyle::hasPseudoElementStyle() const |
1879 { | 1880 { |
1880 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1881 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1881 } | 1882 } |
1882 | 1883 |
1883 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1884 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1884 | 1885 |
1885 } // namespace WebCore | 1886 } // namespace WebCore |
1886 | 1887 |
1887 #endif // RenderStyle_h | 1888 #endif // RenderStyle_h |
OLD | NEW |