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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol
lapse>(rareNonInheritedData->marginBeforeCollapse); } | 822 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol
lapse>(rareNonInheritedData->marginBeforeCollapse); } |
823 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl
apse>(rareNonInheritedData->marginAfterCollapse); } | 823 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl
apse>(rareNonInheritedData->marginAfterCollapse); } |
824 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD
ata->wordBreak); } | 824 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD
ata->wordBreak); } |
825 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI
nheritedData->overflowWrap); } | 825 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI
nheritedData->overflowWrap); } |
826 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat
a->lineBreak); } | 826 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat
a->lineBreak); } |
827 const AtomicString& highlight() const { return rareInheritedData->highlight;
} | 827 const AtomicString& highlight() const { return rareInheritedData->highlight;
} |
828 const AtomicString& hyphenationString() const { return rareInheritedData->hy
phenationString; } | 828 const AtomicString& hyphenationString() const { return rareInheritedData->hy
phenationString; } |
829 const AtomicString& locale() const { return rareInheritedData->locale; } | 829 const AtomicString& locale() const { return rareInheritedData->locale; } |
830 EBorderFit borderFit() const { return static_cast<EBorderFit>(rareNonInherit
edData->m_borderFit); } | 830 EBorderFit borderFit() const { return static_cast<EBorderFit>(rareNonInherit
edData->m_borderFit); } |
831 EResize resize() const { return static_cast<EResize>(rareInheritedData->resi
ze); } | 831 EResize resize() const { return static_cast<EResize>(rareInheritedData->resi
ze); } |
832 ColumnAxis columnAxis() const { return static_cast<ColumnAxis>(rareNonInheri
tedData->m_multiCol->m_axis); } | |
833 bool hasInlineColumnAxis() const { | |
834 ColumnAxis axis = columnAxis(); | |
835 return axis == AutoColumnAxis || isHorizontalWritingMode() == (axis == H
orizontalColumnAxis); | |
836 } | |
837 bool hasInlinePaginationAxis() const | 832 bool hasInlinePaginationAxis() const |
838 { | 833 { |
839 // If the pagination axis is parallel with the writing mode inline axis,
columns may be laid | 834 // If the pagination axis is parallel with the writing mode inline axis,
columns may be laid |
840 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out | 835 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out |
841 // along the block axis. | 836 // along the block axis. |
842 if (isOverflowPaged()) | 837 if (isOverflowPaged()) |
843 return (overflowY() == OPAGEDX) == isHorizontalWritingMode(); | 838 return (overflowY() == OPAGEDX) == isHorizontalWritingMode(); |
844 return false; | 839 return false; |
845 } | 840 } |
846 ColumnProgression columnProgression() const { return static_cast<ColumnProgr
ession>(rareNonInheritedData->m_multiCol->m_progression); } | |
847 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width
; } | 841 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width
; } |
848 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m
_autoWidth; } | 842 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m
_autoWidth; } |
849 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol
->m_count; } | 843 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol
->m_count; } |
850 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } | 844 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } |
851 bool specifiesAutoColumns() const { return hasAutoColumnCount() && hasAutoCo
lumnWidth(); } | 845 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } |
852 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth() || !hasInlineColumnAxis(); } | |
853 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } | 846 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } |
854 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } | 847 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } |
855 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } | 848 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } |
856 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } | 849 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } |
857 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } | 850 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } |
858 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } | 851 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } |
859 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } | 852 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } |
860 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakBefore); } | 853 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakBefore); } |
861 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakInside); } | 854 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakInside); } |
862 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon
InheritedData->m_multiCol->m_breakAfter); } | 855 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon
InheritedData->m_multiCol->m_breakAfter); } |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } | 1292 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } |
1300 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b);
} | 1293 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b);
} |
1301 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW
rap, b); } | 1294 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW
rap, b); } |
1302 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } | 1295 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } |
1303 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli
ght, h); } | 1296 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli
ght, h); } |
1304 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); } | 1297 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); } |
1305 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData
, hyphenationString, h); } | 1298 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData
, hyphenationString, h); } |
1306 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca
le, locale); } | 1299 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca
le, locale); } |
1307 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit,
b); } | 1300 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit,
b); } |
1308 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } | 1301 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } |
1309 void setColumnAxis(ColumnAxis axis) { SET_VAR(rareNonInheritedData.access()-
>m_multiCol, m_axis, axis); } | |
1310 void setColumnProgression(ColumnProgression progression) { SET_VAR(rareNonIn
heritedData.access()->m_multiCol, m_progression, progression); } | |
1311 void setColumnWidth(float f) { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_
width, f); } | 1302 void setColumnWidth(float f) { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_
width, f); } |
1312 void setHasAutoColumnWidth() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_w
idth, 0); } | 1303 void setHasAutoColumnWidth() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_w
idth, 0); } |
1313 void setColumnCount(unsigned short c) { SET_VAR(rareNonInheritedData.access(
)->m_multiCol, m_autoCount, false); SET_VAR(rareNonInheritedData.access()->m_mul
tiCol, m_count, c); } | 1304 void setColumnCount(unsigned short c) { SET_VAR(rareNonInheritedData.access(
)->m_multiCol, m_autoCount, false); SET_VAR(rareNonInheritedData.access()->m_mul
tiCol, m_count, c); } |
1314 void setHasAutoColumnCount() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoCount, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_c
ount, 0); } | 1305 void setHasAutoColumnCount() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoCount, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_c
ount, 0); } |
1315 void setColumnFill(ColumnFill columnFill) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_fill, columnFill); } | 1306 void setColumnFill(ColumnFill columnFill) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_fill, columnFill); } |
1316 void setColumnGap(float f) { SET_VAR(rareNonInheritedData.access()->m_multiC
ol, m_normalGap, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ga
p, f); } | 1307 void setColumnGap(float f) { SET_VAR(rareNonInheritedData.access()->m_multiC
ol, m_normalGap, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ga
p, f); } |
1317 void setHasNormalColumnGap() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_normalGap, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_g
ap, 0); } | 1308 void setHasNormalColumnGap() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_normalGap, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_g
ap, 0); } |
1318 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } | 1309 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } |
1319 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_rule.m_style, b); } | 1310 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_rule.m_style, b); } |
1320 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_rule.m_width, w); } | 1311 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_rule.m_width, w); } |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1541 bool hasCurrentColor() const { return noninherited_flags.currentColor; } | 1532 bool hasCurrentColor() const { return noninherited_flags.currentColor; } |
1542 | 1533 |
1543 // Initial values for all the properties | 1534 // Initial values for all the properties |
1544 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } | 1535 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } |
1545 static EBorderStyle initialBorderStyle() { return BNONE; } | 1536 static EBorderStyle initialBorderStyle() { return BNONE; } |
1546 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } | 1537 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } |
1547 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1538 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
1548 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } | 1539 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } |
1549 static ECaptionSide initialCaptionSide() { return CAPTOP; } | 1540 static ECaptionSide initialCaptionSide() { return CAPTOP; } |
1550 static EClear initialClear() { return CNONE; } | 1541 static EClear initialClear() { return CNONE; } |
1551 static ColumnAxis initialColumnAxis() { return AutoColumnAxis; } | |
1552 static ColumnProgression initialColumnProgression() { return NormalColumnPro
gression; } | |
1553 static TextDirection initialDirection() { return LTR; } | 1542 static TextDirection initialDirection() { return LTR; } |
1554 static WritingMode initialWritingMode() { return TopToBottomWritingMode; } | 1543 static WritingMode initialWritingMode() { return TopToBottomWritingMode; } |
1555 static TextCombine initialTextCombine() { return TextCombineNone; } | 1544 static TextCombine initialTextCombine() { return TextCombineNone; } |
1556 static TextOrientation initialTextOrientation() { return TextOrientationVert
icalRight; } | 1545 static TextOrientation initialTextOrientation() { return TextOrientationVert
icalRight; } |
1557 static ObjectFit initialObjectFit() { return ObjectFitFill; } | 1546 static ObjectFit initialObjectFit() { return ObjectFitFill; } |
1558 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } | 1547 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } |
1559 static EDisplay initialDisplay() { return INLINE; } | 1548 static EDisplay initialDisplay() { return INLINE; } |
1560 static EEmptyCell initialEmptyCells() { return SHOW; } | 1549 static EEmptyCell initialEmptyCells() { return SHOW; } |
1561 static EFloat initialFloating() { return NoFloat; } | 1550 static EFloat initialFloating() { return NoFloat; } |
1562 static EListStylePosition initialListStylePosition() { return OUTSIDE; } | 1551 static EListStylePosition initialListStylePosition() { return OUTSIDE; } |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1887 inline bool RenderStyle::hasPseudoElementStyle() const | 1876 inline bool RenderStyle::hasPseudoElementStyle() const |
1888 { | 1877 { |
1889 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1878 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1890 } | 1879 } |
1891 | 1880 |
1892 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1881 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1893 | 1882 |
1894 } // namespace WebCore | 1883 } // namespace WebCore |
1895 | 1884 |
1896 #endif // RenderStyle_h | 1885 #endif // RenderStyle_h |
OLD | NEW |