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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 const BorderValue& borderBottom() const { return surround->border.bottom();
} | 473 const BorderValue& borderBottom() const { return surround->border.bottom();
} |
474 | 474 |
475 const BorderValue& borderBefore() const; | 475 const BorderValue& borderBefore() const; |
476 const BorderValue& borderAfter() const; | 476 const BorderValue& borderAfter() const; |
477 const BorderValue& borderStart() const; | 477 const BorderValue& borderStart() const; |
478 const BorderValue& borderEnd() const; | 478 const BorderValue& borderEnd() const; |
479 | 479 |
480 const NinePieceImage& borderImage() const { return surround->border.image();
} | 480 const NinePieceImage& borderImage() const { return surround->border.image();
} |
481 StyleImage* borderImageSource() const { return surround->border.image().imag
e(); } | 481 StyleImage* borderImageSource() const { return surround->border.image().imag
e(); } |
482 LengthBox borderImageSlices() const { return surround->border.image().imageS
lices(); } | 482 LengthBox borderImageSlices() const { return surround->border.image().imageS
lices(); } |
483 LengthBox borderImageWidth() const { return surround->border.image().borderS
lices().deprecatedLengthBox(); } | 483 const BorderImageLengthBox& borderImageWidth() const { return surround->bord
er.image().borderSlices(); } |
484 LengthBox borderImageOutset() const { return surround->border.image().outset
().deprecatedLengthBox(); } | 484 const BorderImageLengthBox& borderImageOutset() const { return surround->bor
der.image().outset(); } |
485 | 485 |
486 LengthSize borderTopLeftRadius() const { return surround->border.topLeft();
} | 486 LengthSize borderTopLeftRadius() const { return surround->border.topLeft();
} |
487 LengthSize borderTopRightRadius() const { return surround->border.topRight()
; } | 487 LengthSize borderTopRightRadius() const { return surround->border.topRight()
; } |
488 LengthSize borderBottomLeftRadius() const { return surround->border.bottomLe
ft(); } | 488 LengthSize borderBottomLeftRadius() const { return surround->border.bottomLe
ft(); } |
489 LengthSize borderBottomRightRadius() const { return surround->border.bottomR
ight(); } | 489 LengthSize borderBottomRightRadius() const { return surround->border.bottomR
ight(); } |
490 bool hasBorderRadius() const { return surround->border.hasBorderRadius(); } | 490 bool hasBorderRadius() const { return surround->border.hasBorderRadius(); } |
491 | 491 |
492 unsigned borderLeftWidth() const { return surround->border.borderLeftWidth()
; } | 492 unsigned borderLeftWidth() const { return surround->border.borderLeftWidth()
; } |
493 EBorderStyle borderLeftStyle() const { return surround->border.left().style(
); } | 493 EBorderStyle borderLeftStyle() const { return surround->border.left().style(
); } |
494 bool borderLeftIsTransparent() const { return surround->border.left().isTran
sparent(); } | 494 bool borderLeftIsTransparent() const { return surround->border.left().isTran
sparent(); } |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 Length maskYPosition() const { return rareNonInheritedData->m_mask.yPosition
(); } | 648 Length maskYPosition() const { return rareNonInheritedData->m_mask.yPosition
(); } |
649 EFillSizeType maskSizeType() const { return rareNonInheritedData->m_mask.siz
eType(); } | 649 EFillSizeType maskSizeType() const { return rareNonInheritedData->m_mask.siz
eType(); } |
650 LengthSize maskSizeLength() const { return rareNonInheritedData->m_mask.size
Length(); } | 650 LengthSize maskSizeLength() const { return rareNonInheritedData->m_mask.size
Length(); } |
651 FillLayer* accessMaskLayers() { return &(rareNonInheritedData.access()->m_ma
sk); } | 651 FillLayer* accessMaskLayers() { return &(rareNonInheritedData.access()->m_ma
sk); } |
652 const FillLayer* maskLayers() const { return &(rareNonInheritedData->m_mask)
; } | 652 const FillLayer* maskLayers() const { return &(rareNonInheritedData->m_mask)
; } |
653 | 653 |
654 const NinePieceImage& maskBoxImage() const { return rareNonInheritedData->m_
maskBoxImage; } | 654 const NinePieceImage& maskBoxImage() const { return rareNonInheritedData->m_
maskBoxImage; } |
655 StyleImage* maskBoxImageSource() const { return rareNonInheritedData->m_mask
BoxImage.image(); } | 655 StyleImage* maskBoxImageSource() const { return rareNonInheritedData->m_mask
BoxImage.image(); } |
656 LengthBox maskBoxImageSlices() const { return rareNonInheritedData->m_maskBo
xImage.imageSlices(); } | 656 LengthBox maskBoxImageSlices() const { return rareNonInheritedData->m_maskBo
xImage.imageSlices(); } |
657 bool maskBoxImageSlicesFill() const { return rareNonInheritedData->m_maskBox
Image.fill(); } | 657 bool maskBoxImageSlicesFill() const { return rareNonInheritedData->m_maskBox
Image.fill(); } |
658 LengthBox maskBoxImageWidth() const { return rareNonInheritedData->m_maskBox
Image.borderSlices().deprecatedLengthBox(); } | 658 const BorderImageLengthBox& maskBoxImageWidth() const { return rareNonInheri
tedData->m_maskBoxImage.borderSlices(); } |
659 LengthBox maskBoxImageOutset() const { return rareNonInheritedData->m_maskBo
xImage.outset().deprecatedLengthBox(); } | 659 const BorderImageLengthBox& maskBoxImageOutset() const { return rareNonInher
itedData->m_maskBoxImage.outset(); } |
660 | 660 |
661 EBorderCollapse borderCollapse() const { return static_cast<EBorderCollapse>
(inherited_flags._border_collapse); } | 661 EBorderCollapse borderCollapse() const { return static_cast<EBorderCollapse>
(inherited_flags._border_collapse); } |
662 short horizontalBorderSpacing() const; | 662 short horizontalBorderSpacing() const; |
663 short verticalBorderSpacing() const; | 663 short verticalBorderSpacing() const; |
664 EEmptyCell emptyCells() const { return static_cast<EEmptyCell>(inherited_fla
gs._empty_cells); } | 664 EEmptyCell emptyCells() const { return static_cast<EEmptyCell>(inherited_fla
gs._empty_cells); } |
665 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_flags._caption_side); } | 665 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_flags._caption_side); } |
666 | 666 |
667 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_flags._list_style_type); } | 667 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_flags._list_style_type); } |
668 StyleImage* listStyleImage() const; | 668 StyleImage* listStyleImage() const; |
669 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_flags._list_style_position); } | 669 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_flags._list_style_position); } |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 void setBackgroundColor(const Color& v) { SET_VAR(m_background, m_color, v);
} | 986 void setBackgroundColor(const Color& v) { SET_VAR(m_background, m_color, v);
} |
987 | 987 |
988 void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_xPosition, length); } | 988 void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_xPosition, length); } |
989 void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_yPosition, length); } | 989 void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_yPosition, length); } |
990 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } | 990 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } |
991 void setBackgroundSizeLength(LengthSize s) { SET_VAR(m_background, m_backgro
und.m_sizeLength, s); } | 991 void setBackgroundSizeLength(LengthSize s) { SET_VAR(m_background, m_backgro
und.m_sizeLength, s); } |
992 | 992 |
993 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } | 993 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } |
994 void setBorderImageSource(PassRefPtr<StyleImage>); | 994 void setBorderImageSource(PassRefPtr<StyleImage>); |
995 void setBorderImageSlices(LengthBox); | 995 void setBorderImageSlices(LengthBox); |
996 void setBorderImageWidth(LengthBox); | 996 void setBorderImageWidth(const BorderImageLengthBox&); |
997 void setBorderImageOutset(LengthBox); | 997 void setBorderImageOutset(const BorderImageLengthBox&); |
998 | 998 |
999 void setBorderTopLeftRadius(LengthSize s) { SET_VAR(surround, border.m_topLe
ft, s); } | 999 void setBorderTopLeftRadius(LengthSize s) { SET_VAR(surround, border.m_topLe
ft, s); } |
1000 void setBorderTopRightRadius(LengthSize s) { SET_VAR(surround, border.m_topR
ight, s); } | 1000 void setBorderTopRightRadius(LengthSize s) { SET_VAR(surround, border.m_topR
ight, s); } |
1001 void setBorderBottomLeftRadius(LengthSize s) { SET_VAR(surround, border.m_bo
ttomLeft, s); } | 1001 void setBorderBottomLeftRadius(LengthSize s) { SET_VAR(surround, border.m_bo
ttomLeft, s); } |
1002 void setBorderBottomRightRadius(LengthSize s) { SET_VAR(surround, border.m_b
ottomRight, s); } | 1002 void setBorderBottomRightRadius(LengthSize s) { SET_VAR(surround, border.m_b
ottomRight, s); } |
1003 | 1003 |
1004 void setBorderRadius(LengthSize s) | 1004 void setBorderRadius(LengthSize s) |
1005 { | 1005 { |
1006 setBorderTopLeftRadius(s); | 1006 setBorderTopLeftRadius(s); |
1007 setBorderTopRightRadius(s); | 1007 setBorderTopRightRadius(s); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData
, m_maskBoxImage, b); } | 1118 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData
, m_maskBoxImage, b); } |
1119 void setMaskBoxImageSource(PassRefPtr<StyleImage> v) { rareNonInheritedData.
access()->m_maskBoxImage.setImage(v); } | 1119 void setMaskBoxImageSource(PassRefPtr<StyleImage> v) { rareNonInheritedData.
access()->m_maskBoxImage.setImage(v); } |
1120 void setMaskBoxImageSlices(LengthBox slices) | 1120 void setMaskBoxImageSlices(LengthBox slices) |
1121 { | 1121 { |
1122 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); | 1122 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); |
1123 } | 1123 } |
1124 void setMaskBoxImageSlicesFill(bool fill) | 1124 void setMaskBoxImageSlicesFill(bool fill) |
1125 { | 1125 { |
1126 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); | 1126 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); |
1127 } | 1127 } |
1128 void setMaskBoxImageWidth(LengthBox slices) | 1128 void setMaskBoxImageWidth(const BorderImageLengthBox& slices) |
1129 { | 1129 { |
1130 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(BorderImag
eLengthBox(slices)); | 1130 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); |
1131 } | 1131 } |
1132 void setMaskBoxImageOutset(LengthBox outset) | 1132 void setMaskBoxImageOutset(const BorderImageLengthBox& outset) |
1133 { | 1133 { |
1134 rareNonInheritedData.access()->m_maskBoxImage.setOutset(BorderImageLengt
hBox(outset)); | 1134 rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); |
1135 } | 1135 } |
1136 void setMaskXPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.
m_xPosition, length); } | 1136 void setMaskXPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.
m_xPosition, length); } |
1137 void setMaskYPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.
m_yPosition, length); } | 1137 void setMaskYPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.
m_yPosition, length); } |
1138 void setMaskSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_mask.m_size
Length, s); } | 1138 void setMaskSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_mask.m_size
Length, s); } |
1139 | 1139 |
1140 void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_c
ollapse = collapse; } | 1140 void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_c
ollapse = collapse; } |
1141 void setHorizontalBorderSpacing(short); | 1141 void setHorizontalBorderSpacing(short); |
1142 void setVerticalBorderSpacing(short); | 1142 void setVerticalBorderSpacing(short); |
1143 void setEmptyCells(EEmptyCell v) { inherited_flags._empty_cells = v; } | 1143 void setEmptyCells(EEmptyCell v) { inherited_flags._empty_cells = v; } |
1144 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } | 1144 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1848 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) | 1848 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) |
1849 { | 1849 { |
1850 ASSERT(pseudo > NOPSEUDO); | 1850 ASSERT(pseudo > NOPSEUDO); |
1851 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); | 1851 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); |
1852 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); | 1852 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); |
1853 } | 1853 } |
1854 | 1854 |
1855 } // namespace WebCore | 1855 } // namespace WebCore |
1856 | 1856 |
1857 #endif // RenderStyle_h | 1857 #endif // RenderStyle_h |
OLD | NEW |