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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 479 |
480 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e
ffectiveDisplay); } | 480 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e
ffectiveDisplay); } |
481 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags.originalDisplay); } | 481 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags.originalDisplay); } |
482 | 482 |
483 const Length& left() const { return surround->offset.left(); } | 483 const Length& left() const { return surround->offset.left(); } |
484 const Length& right() const { return surround->offset.right(); } | 484 const Length& right() const { return surround->offset.right(); } |
485 const Length& top() const { return surround->offset.top(); } | 485 const Length& top() const { return surround->offset.top(); } |
486 const Length& bottom() const { return surround->offset.bottom(); } | 486 const Length& bottom() const { return surround->offset.bottom(); } |
487 | 487 |
488 // Accessors for positioned object edges that take into account writing mode
. | 488 // Accessors for positioned object edges that take into account writing mode
. |
489 const Length& logicalLeft() const { return surround->offset.logicalLeft(writ
ingMode()); } | 489 const Length& logicalLeft() const { return surround->offset.logicalLeft(getW
ritingMode()); } |
490 const Length& logicalRight() const { return surround->offset.logicalRight(wr
itingMode()); } | 490 const Length& logicalRight() const { return surround->offset.logicalRight(ge
tWritingMode()); } |
491 const Length& logicalTop() const { return surround->offset.before(writingMod
e()); } | 491 const Length& logicalTop() const { return surround->offset.before(getWriting
Mode()); } |
492 const Length& logicalBottom() const { return surround->offset.after(writingM
ode()); } | 492 const Length& logicalBottom() const { return surround->offset.after(getWriti
ngMode()); } |
493 | 493 |
494 // Whether or not a positioned element requires normal flow x/y to be comput
ed | 494 // Whether or not a positioned element requires normal flow x/y to be comput
ed |
495 // to determine its position. | 495 // to determine its position. |
496 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } | 496 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } |
497 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } | 497 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } |
498 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } | 498 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } |
499 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } | 499 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } |
500 | 500 |
501 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } | 501 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } |
502 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } | 502 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 float computedFontSize() const; | 599 float computedFontSize() const; |
600 int fontSize() const; | 600 int fontSize() const; |
601 float fontSizeAdjust() const; | 601 float fontSizeAdjust() const; |
602 bool hasFontSizeAdjust() const; | 602 bool hasFontSizeAdjust() const; |
603 FontWeight fontWeight() const; | 603 FontWeight fontWeight() const; |
604 FontStretch fontStretch() const; | 604 FontStretch fontStretch() const; |
605 | 605 |
606 float textAutosizingMultiplier() const { return inherited->textAutosizingMul
tiplier; } | 606 float textAutosizingMultiplier() const { return inherited->textAutosizingMul
tiplier; } |
607 | 607 |
608 const Length& textIndent() const { return rareInheritedData->indent; } | 608 const Length& textIndent() const { return rareInheritedData->indent; } |
609 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r
areInheritedData->m_textIndentLine); } | 609 TextIndentLine getTextIndentLine() const { return static_cast<TextIndentLine
>(rareInheritedData->m_textIndentLine); } |
610 TextIndentType textIndentType() const { return static_cast<TextIndentType>(r
areInheritedData->m_textIndentType); } | 610 TextIndentType getTextIndentType() const { return static_cast<TextIndentType
>(rareInheritedData->m_textIndentType); } |
611 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag
s._text_align); } | 611 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag
s._text_align); } |
612 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare
InheritedData->m_textAlignLast); } | 612 TextAlignLast getTextAlignLast() const { return static_cast<TextAlignLast>(r
areInheritedData->m_textAlignLast); } |
613 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri
tedData->m_textJustify); } | 613 TextJustify getTextJustify() const { return static_cast<TextJustify>(rareInh
eritedData->m_textJustify); } |
614 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_flags._text_transform); } | 614 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_flags._text_transform); } |
615 TextDecoration textDecorationsInEffect() const; | 615 TextDecoration textDecorationsInEffect() const; |
616 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; | 616 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; |
617 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v
isual->textDecoration); } | 617 TextDecoration getTextDecoration() const { return static_cast<TextDecoration
>(visual->textDecoration); } |
618 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex
tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } | 618 TextUnderlinePosition getTextUnderlinePosition() const { return static_cast<
TextUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } |
619 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec
orationStyle>(rareNonInheritedData->m_textDecorationStyle); } | 619 TextDecorationStyle getTextDecorationStyle() const { return static_cast<Text
DecorationStyle>(rareNonInheritedData->m_textDecorationStyle); } |
620 float wordSpacing() const; | 620 float wordSpacing() const; |
621 float letterSpacing() const; | 621 float letterSpacing() const; |
622 StyleVariableData* variables() const; | 622 StyleVariableData* variables() const; |
623 | 623 |
624 void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>); | 624 void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>); |
625 void removeVariable(const AtomicString&); | 625 void removeVariable(const AtomicString&); |
626 | 626 |
627 float zoom() const { return visual->m_zoom; } | 627 float zoom() const { return visual->m_zoom; } |
628 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; } | 628 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; } |
629 | 629 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 case '\t': | 676 case '\t': |
677 return collapseWhiteSpace(); | 677 return collapseWhiteSpace(); |
678 case '\n': | 678 case '\n': |
679 return !preserveNewline(); | 679 return !preserveNewline(); |
680 } | 680 } |
681 return false; | 681 return false; |
682 } | 682 } |
683 | 683 |
684 bool breakOnlyAfterWhiteSpace() const | 684 bool breakOnlyAfterWhiteSpace() const |
685 { | 685 { |
686 return whiteSpace() == PRE_WRAP || lineBreak() == LineBreakAfterWhiteSpa
ce; | 686 return whiteSpace() == PRE_WRAP || getLineBreak() == LineBreakAfterWhite
Space; |
687 } | 687 } |
688 | 688 |
689 bool breakWords() const | 689 bool breakWords() const |
690 { | 690 { |
691 return (wordBreak() == BreakWordBreak || overflowWrap() == BreakOverflow
Wrap) | 691 return (wordBreak() == BreakWordBreak || overflowWrap() == BreakOverflow
Wrap) |
692 && whiteSpace() != PRE && whiteSpace() != NOWRAP; | 692 && whiteSpace() != PRE && whiteSpace() != NOWRAP; |
693 } | 693 } |
694 | 694 |
695 EFillBox backgroundClip() const { return static_cast<EFillBox>(m_background-
>background().clip()); } | 695 EFillBox backgroundClip() const { return static_cast<EFillBox>(m_background-
>background().clip()); } |
696 FillLayer& accessBackgroundLayers() { return m_background.access()->m_backgr
ound; } | 696 FillLayer& accessBackgroundLayers() { return m_background.access()->m_backgr
ound; } |
(...skipping 17 matching lines...) Expand all Loading... |
714 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_flags._caption_side); } | 714 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_flags._caption_side); } |
715 | 715 |
716 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_flags._list_style_type); } | 716 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_flags._list_style_type); } |
717 StyleImage* listStyleImage() const; | 717 StyleImage* listStyleImage() const; |
718 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_flags._list_style_position); } | 718 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_flags._list_style_position); } |
719 | 719 |
720 const Length& marginTop() const { return surround->margin.top(); } | 720 const Length& marginTop() const { return surround->margin.top(); } |
721 const Length& marginBottom() const { return surround->margin.bottom(); } | 721 const Length& marginBottom() const { return surround->margin.bottom(); } |
722 const Length& marginLeft() const { return surround->margin.left(); } | 722 const Length& marginLeft() const { return surround->margin.left(); } |
723 const Length& marginRight() const { return surround->margin.right(); } | 723 const Length& marginRight() const { return surround->margin.right(); } |
724 const Length& marginBefore() const { return surround->margin.before(writingM
ode()); } | 724 const Length& marginBefore() const { return surround->margin.before(getWriti
ngMode()); } |
725 const Length& marginAfter() const { return surround->margin.after(writingMod
e()); } | 725 const Length& marginAfter() const { return surround->margin.after(getWriting
Mode()); } |
726 const Length& marginStart() const { return surround->margin.start(writingMod
e(), direction()); } | 726 const Length& marginStart() const { return surround->margin.start(getWriting
Mode(), direction()); } |
727 const Length& marginEnd() const { return surround->margin.end(writingMode(),
direction()); } | 727 const Length& marginEnd() const { return surround->margin.end(getWritingMode
(), direction()); } |
728 const Length& marginOver() const { return surround->margin.over(writingMode(
)); } | 728 const Length& marginOver() const { return surround->margin.over(getWritingMo
de()); } |
729 const Length& marginUnder() const { return surround->margin.under(writingMod
e()); } | 729 const Length& marginUnder() const { return surround->margin.under(getWriting
Mode()); } |
730 const Length& marginStartUsing(const ComputedStyle* otherStyle) const { retu
rn surround->margin.start(otherStyle->writingMode(), otherStyle->direction()); } | 730 const Length& marginStartUsing(const ComputedStyle* otherStyle) const { retu
rn surround->margin.start(otherStyle->getWritingMode(), otherStyle->direction())
; } |
731 const Length& marginEndUsing(const ComputedStyle* otherStyle) const { return
surround->margin.end(otherStyle->writingMode(), otherStyle->direction()); } | 731 const Length& marginEndUsing(const ComputedStyle* otherStyle) const { return
surround->margin.end(otherStyle->getWritingMode(), otherStyle->direction()); } |
732 const Length& marginBeforeUsing(const ComputedStyle* otherStyle) const { ret
urn surround->margin.before(otherStyle->writingMode()); } | 732 const Length& marginBeforeUsing(const ComputedStyle* otherStyle) const { ret
urn surround->margin.before(otherStyle->getWritingMode()); } |
733 const Length& marginAfterUsing(const ComputedStyle* otherStyle) const { retu
rn surround->margin.after(otherStyle->writingMode()); } | 733 const Length& marginAfterUsing(const ComputedStyle* otherStyle) const { retu
rn surround->margin.after(otherStyle->getWritingMode()); } |
734 | 734 |
735 const LengthBox& paddingBox() const { return surround->padding; } | 735 const LengthBox& paddingBox() const { return surround->padding; } |
736 const Length& paddingTop() const { return surround->padding.top(); } | 736 const Length& paddingTop() const { return surround->padding.top(); } |
737 const Length& paddingBottom() const { return surround->padding.bottom(); } | 737 const Length& paddingBottom() const { return surround->padding.bottom(); } |
738 const Length& paddingLeft() const { return surround->padding.left(); } | 738 const Length& paddingLeft() const { return surround->padding.left(); } |
739 const Length& paddingRight() const { return surround->padding.right(); } | 739 const Length& paddingRight() const { return surround->padding.right(); } |
740 const Length& paddingBefore() const { return surround->padding.before(writin
gMode()); } | 740 const Length& paddingBefore() const { return surround->padding.before(getWri
tingMode()); } |
741 const Length& paddingAfter() const { return surround->padding.after(writingM
ode()); } | 741 const Length& paddingAfter() const { return surround->padding.after(getWriti
ngMode()); } |
742 const Length& paddingStart() const { return surround->padding.start(writingM
ode(), direction()); } | 742 const Length& paddingStart() const { return surround->padding.start(getWriti
ngMode(), direction()); } |
743 const Length& paddingEnd() const { return surround->padding.end(writingMode(
), direction()); } | 743 const Length& paddingEnd() const { return surround->padding.end(getWritingMo
de(), direction()); } |
744 const Length& paddingOver() const { return surround->padding.over(writingMod
e()); } | 744 const Length& paddingOver() const { return surround->padding.over(getWriting
Mode()); } |
745 const Length& paddingUnder() const { return surround->padding.under(writingM
ode()); } | 745 const Length& paddingUnder() const { return surround->padding.under(getWriti
ngMode()); } |
746 | 746 |
747 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } | 747 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } |
748 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } | 748 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } |
749 | 749 |
750 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f
lags._insideLink); } | 750 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f
lags._insideLink); } |
751 bool isLink() const { return noninherited_flags.isLink; } | 751 bool isLink() const { return noninherited_flags.isLink; } |
752 | 752 |
753 short widows() const { return rareInheritedData->widows; } | 753 short widows() const { return rareInheritedData->widows; } |
754 short orphans() const { return rareInheritedData->orphans; } | 754 short orphans() const { return rareInheritedData->orphans; } |
755 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } | 755 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 | 815 |
816 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh
eritedData->m_grid->m_gridTemplateColumns; } | 816 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh
eritedData->m_grid->m_gridTemplateColumns; } |
817 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri
tedData->m_grid->m_gridTemplateRows; } | 817 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri
tedData->m_grid->m_gridTemplateRows; } |
818 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri
tedData->m_grid->m_namedGridColumnLines; } | 818 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri
tedData->m_grid->m_namedGridColumnLines; } |
819 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited
Data->m_grid->m_namedGridRowLines; } | 819 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited
Data->m_grid->m_namedGridRowLines; } |
820 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return ra
reNonInheritedData->m_grid->m_orderedNamedGridColumnLines; } | 820 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return ra
reNonInheritedData->m_grid->m_orderedNamedGridColumnLines; } |
821 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return rareN
onInheritedData->m_grid->m_orderedNamedGridRowLines; } | 821 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return rareN
onInheritedData->m_grid->m_orderedNamedGridRowLines; } |
822 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData-
>m_grid->m_namedGridArea; } | 822 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData-
>m_grid->m_namedGridArea; } |
823 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid->
m_namedGridAreaRowCount; } | 823 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid->
m_namedGridAreaRowCount; } |
824 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri
d->m_namedGridAreaColumnCount; } | 824 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri
d->m_namedGridAreaColumnCount; } |
825 GridAutoFlow gridAutoFlow() const { return static_cast<GridAutoFlow>(rareNon
InheritedData->m_grid->m_gridAutoFlow); } | 825 GridAutoFlow getGridAutoFlow() const { return static_cast<GridAutoFlow>(rare
NonInheritedData->m_grid->m_gridAutoFlow); } |
826 bool isGridAutoFlowDirectionRow() const { return (rareNonInheritedData->m_gr
id->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectionR
ow; } | 826 bool isGridAutoFlowDirectionRow() const { return (rareNonInheritedData->m_gr
id->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectionR
ow; } |
827 bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDire
ctionColumn; } | 827 bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDire
ctionColumn; } |
828 bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAlgo
rithmSparse; } | 828 bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAlgo
rithmSparse; } |
829 bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData->m_
grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgori
thmDense; } | 829 bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData->m_
grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgori
thmDense; } |
830 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData->
m_grid->m_gridAutoColumns; } | 830 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData->
m_grid->m_gridAutoColumns; } |
831 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g
rid->m_gridAutoRows; } | 831 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g
rid->m_gridAutoRows; } |
832 const Length& gridColumnGap() const { return rareNonInheritedData->m_grid->m
_gridColumnGap; } | 832 const Length& gridColumnGap() const { return rareNonInheritedData->m_grid->m
_gridColumnGap; } |
833 const Length& gridRowGap() const { return rareNonInheritedData->m_grid->m_gr
idRowGap; } | 833 const Length& gridRowGap() const { return rareNonInheritedData->m_grid->m_gr
idRowGap; } |
834 | 834 |
835 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m
_gridItem->m_gridColumnStart; } | 835 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m
_gridItem->m_gridColumnStart; } |
(...skipping 12 matching lines...) Expand all Loading... |
848 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma
geOutsets() || hasOutline(); } | 848 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma
geOutsets() || hasOutline(); } |
849 | 849 |
850 Containment contain() const { return static_cast<Containment>(rareNonInherit
edData->m_contain); } | 850 Containment contain() const { return static_cast<Containment>(rareNonInherit
edData->m_contain); } |
851 bool containsPaint() const { return rareNonInheritedData->m_contain & Contai
nsPaint; } | 851 bool containsPaint() const { return rareNonInheritedData->m_contain & Contai
nsPaint; } |
852 bool containsStyle() const { return rareNonInheritedData->m_contain & Contai
nsStyle; } | 852 bool containsStyle() const { return rareNonInheritedData->m_contain & Contai
nsStyle; } |
853 | 853 |
854 EBoxSizing boxSizing() const { return m_box->boxSizing(); } | 854 EBoxSizing boxSizing() const { return m_box->boxSizing(); } |
855 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit
edData->userModify); } | 855 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit
edData->userModify); } |
856 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD
ata->userDrag); } | 856 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD
ata->userDrag); } |
857 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit
edData->userSelect); } | 857 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit
edData->userSelect); } |
858 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon
InheritedData->textOverflow); } | 858 TextOverflow getTextOverflow() const { return static_cast<TextOverflow>(rare
NonInheritedData->textOverflow); } |
859 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol
lapse>(rareNonInheritedData->marginBeforeCollapse); } | 859 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol
lapse>(rareNonInheritedData->marginBeforeCollapse); } |
860 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl
apse>(rareNonInheritedData->marginAfterCollapse); } | 860 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl
apse>(rareNonInheritedData->marginAfterCollapse); } |
861 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD
ata->wordBreak); } | 861 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD
ata->wordBreak); } |
862 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI
nheritedData->overflowWrap); } | 862 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI
nheritedData->overflowWrap); } |
863 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat
a->lineBreak); } | 863 LineBreak getLineBreak() const { return static_cast<LineBreak>(rareInherited
Data->lineBreak); } |
864 const AtomicString& highlight() const { return rareInheritedData->highlight;
} | 864 const AtomicString& highlight() const { return rareInheritedData->highlight;
} |
865 const AtomicString& hyphenationString() const { return rareInheritedData->hy
phenationString; } | 865 const AtomicString& hyphenationString() const { return rareInheritedData->hy
phenationString; } |
866 const AtomicString& locale() const { return fontDescription().locale(false);
} | 866 const AtomicString& locale() const { return fontDescription().locale(false);
} |
867 EResize resize() const { return static_cast<EResize>(rareNonInheritedData->m
_resize); } | 867 EResize resize() const { return static_cast<EResize>(rareNonInheritedData->m
_resize); } |
868 bool hasInlinePaginationAxis() const | 868 bool hasInlinePaginationAxis() const |
869 { | 869 { |
870 // If the pagination axis is parallel with the writing mode inline axis,
columns may be laid | 870 // If the pagination axis is parallel with the writing mode inline axis,
columns may be laid |
871 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out | 871 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out |
872 // along the block axis. | 872 // along the block axis. |
873 if (isOverflowPaged()) | 873 if (isOverflowPaged()) |
874 return (overflowY() == OPAGEDX) == isHorizontalWritingMode(); | 874 return (overflowY() == OPAGEDX) == isHorizontalWritingMode(); |
875 return false; | 875 return false; |
876 } | 876 } |
877 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width
; } | 877 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width
; } |
878 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m
_autoWidth; } | 878 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m
_autoWidth; } |
879 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol
->m_count; } | 879 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol
->m_count; } |
880 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } | 880 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } |
881 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } | 881 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } |
882 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } | 882 ColumnFill getColumnFill() const { return static_cast<ColumnFill>(rareNonInh
eritedData->m_multiCol->m_fill); } |
883 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } | 883 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } |
884 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } | 884 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } |
885 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } | 885 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } |
886 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } | 886 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } |
887 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } | 887 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } |
888 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; | 888 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; |
889 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } | 889 ColumnSpan getColumnSpan() const { return static_cast<ColumnSpan>(rareNonInh
eritedData->m_multiCol->m_columnSpan); } |
890 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } | 890 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } |
891 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } | 891 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } |
892 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } | 892 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } |
893 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } | 893 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } |
894 const Length& transformOriginX() const { return transformOrigin().x(); } | 894 const Length& transformOriginX() const { return transformOrigin().x(); } |
895 const Length& transformOriginY() const { return transformOrigin().y(); } | 895 const Length& transformOriginY() const { return transformOrigin().y(); } |
896 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } | 896 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } |
897 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } | 897 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } |
898 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } | 898 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } |
899 float transformOriginZ() const { return transformOrigin().z(); } | 899 float transformOriginZ() const { return transformOrigin().z(); } |
900 bool has3DTransform() const { return rareNonInheritedData->m_transform->has3
DTransform(); } | 900 bool has3DTransform() const { return rareNonInheritedData->m_transform->has3
DTransform(); } |
901 bool hasTransform() const { return hasTransformOperations() || hasMotionPath
() || hasCurrentTransformAnimation() || translate() || rotate() || scale(); } | 901 bool hasTransform() const { return hasTransformOperations() || hasMotionPath
() || hasCurrentTransformAnimation() || translate() || rotate() || scale(); } |
902 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf
orm->m_operations.operations().isEmpty(); } | 902 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf
orm->m_operations.operations().isEmpty(); } |
903 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return
rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo
rm; } | 903 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return
rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo
rm; } |
904 | 904 |
905 StylePath* motionPath() const { return rareNonInheritedData->m_transform->m_
motion.m_path.get(); } | 905 StylePath* motionPath() const { return rareNonInheritedData->m_transform->m_
motion.m_path.get(); } |
906 bool hasMotionPath() const { return rareNonInheritedData->m_transform->m_mot
ion.m_path; } | 906 bool hasMotionPath() const { return rareNonInheritedData->m_transform->m_mot
ion.m_path; } |
907 const Length& motionOffset() const { return rareNonInheritedData->m_transfor
m->m_motion.m_offset; } | 907 const Length& motionOffset() const { return rareNonInheritedData->m_transfor
m->m_motion.m_offset; } |
908 const StyleMotionRotation& motionRotation() const { return rareNonInheritedD
ata->m_transform->m_motion.m_rotation; } | 908 const StyleMotionRotation& motionRotation() const { return rareNonInheritedD
ata->m_transform->m_motion.m_rotation; } |
909 | 909 |
910 TextEmphasisFill textEmphasisFill() const { return static_cast<TextEmphasisF
ill>(rareInheritedData->textEmphasisFill); } | 910 TextEmphasisFill getTextEmphasisFill() const { return static_cast<TextEmphas
isFill>(rareInheritedData->textEmphasisFill); } |
911 TextEmphasisMark textEmphasisMark() const; | 911 TextEmphasisMark getTextEmphasisMark() const; |
912 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat
a->textEmphasisCustomMark; } | 912 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat
a->textEmphasisCustomMark; } |
913 TextEmphasisPosition textEmphasisPosition() const { return static_cast<TextE
mphasisPosition>(rareInheritedData->textEmphasisPosition); } | 913 TextEmphasisPosition getTextEmphasisPosition() const { return static_cast<Te
xtEmphasisPosition>(rareInheritedData->textEmphasisPosition); } |
914 const AtomicString& textEmphasisMarkString() const; | 914 const AtomicString& textEmphasisMarkString() const; |
915 | 915 |
916 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh
eritedData->m_rubyPosition); } | 916 RubyPosition getRubyPosition() const { return static_cast<RubyPosition>(rare
InheritedData->m_rubyPosition); } |
917 | 917 |
918 TextOrientation textOrientation() const { return static_cast<TextOrientation
>(rareInheritedData->m_textOrientation); } | 918 TextOrientation getTextOrientation() const { return static_cast<TextOrientat
ion>(rareInheritedData->m_textOrientation); } |
919 | 919 |
920 ObjectFit objectFit() const { return static_cast<ObjectFit>(rareNonInherited
Data->m_objectFit); } | 920 ObjectFit getObjectFit() const { return static_cast<ObjectFit>(rareNonInheri
tedData->m_objectFit); } |
921 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo
sition; } | 921 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo
sition; } |
922 | 922 |
923 // Return true if any transform related property (currently transform/motion
Path, transformStyle3D, perspective, | 923 // Return true if any transform related property (currently transform/motion
Path, transformStyle3D, perspective, |
924 // or will-change:transform) indicates that we are transforming. will-change
:transform should result in | 924 // or will-change:transform) indicates that we are transforming. will-change
:transform should result in |
925 // the same rendering behavior as having a transform, including the creation
of a containing block | 925 // the same rendering behavior as having a transform, including the creation
of a containing block |
926 // for fixed position descendants. | 926 // for fixed position descendants. |
927 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective() || hasWillChangeTransformHint(); } | 927 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective() || hasWillChangeTransformHint(); } |
928 | 928 |
929 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; | 929 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; |
930 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; | 930 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; |
931 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper
ties , ExcludeIndependentTransformProperties }; | 931 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper
ties , ExcludeIndependentTransformProperties }; |
932 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons
t; | 932 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons
t; |
933 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; | 933 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; |
934 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } | 934 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } |
935 | 935 |
936 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri
tedData->m_textCombine); } | 936 TextCombine getTextCombine() const { return static_cast<TextCombine>(rareInh
eritedData->m_textCombine); } |
937 bool hasTextCombine() const { return textCombine() != TextCombineNone; } | 937 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; } |
938 | 938 |
939 uint8_t snapHeightPosition() const { return rareInheritedData->m_snapHeightP
osition; } | 939 uint8_t snapHeightPosition() const { return rareInheritedData->m_snapHeightP
osition; } |
940 uint8_t snapHeightUnit() const { return rareInheritedData->m_snapHeightUnit;
} | 940 uint8_t snapHeightUnit() const { return rareInheritedData->m_snapHeightUnit;
} |
941 | 941 |
942 TabSize tabSize() const { return rareInheritedData->m_tabSize; } | 942 TabSize getTabSize() const { return rareInheritedData->m_tabSize; } |
943 | 943 |
944 RespectImageOrientationEnum respectImageOrientation() const { return static_
cast<RespectImageOrientationEnum>(rareInheritedData->m_respectImageOrientation);
} | 944 RespectImageOrientationEnum respectImageOrientation() const { return static_
cast<RespectImageOrientationEnum>(rareInheritedData->m_respectImageOrientation);
} |
945 | 945 |
946 // End CSS3 Getters | 946 // End CSS3 Getters |
947 | 947 |
948 // Apple-specific property getter methods | 948 // Apple-specific property getter methods |
949 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } | 949 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } |
950 const CSSAnimationData* animations() const { return rareNonInheritedData->m_
animations.get(); } | 950 const CSSAnimationData* animations() const { return rareNonInheritedData->m_
animations.get(); } |
951 const CSSTransitionData* transitions() const { return rareNonInheritedData->
m_transitions.get(); } | 951 const CSSTransitionData* transitions() const { return rareNonInheritedData->
m_transitions.get(); } |
952 | 952 |
953 CSSAnimationData& accessAnimations(); | 953 CSSAnimationData& accessAnimations(); |
954 CSSTransitionData& accessTransitions(); | 954 CSSTransitionData& accessTransitions(); |
955 | 955 |
956 ETransformStyle3D transformStyle3D() const { return static_cast<ETransformSt
yle3D>(rareNonInheritedData->m_transformStyle3D); } | 956 ETransformStyle3D transformStyle3D() const { return static_cast<ETransformSt
yle3D>(rareNonInheritedData->m_transformStyle3D); } |
957 bool preserves3D() const { return rareNonInheritedData->m_transformStyle3D =
= TransformStyle3DPreserve3D; } | 957 bool preserves3D() const { return rareNonInheritedData->m_transformStyle3D =
= TransformStyle3DPreserve3D; } |
958 | 958 |
959 EBackfaceVisibility backfaceVisibility() const { return static_cast<EBackfac
eVisibility>(rareNonInheritedData->m_backfaceVisibility); } | 959 EBackfaceVisibility backfaceVisibility() const { return static_cast<EBackfac
eVisibility>(rareNonInheritedData->m_backfaceVisibility); } |
960 float perspective() const { return rareNonInheritedData->m_perspective; } | 960 float perspective() const { return rareNonInheritedData->m_perspective; } |
961 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0
; } | 961 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0
; } |
962 const LengthPoint& perspectiveOrigin() const { return rareNonInheritedData->
m_perspectiveOrigin; } | 962 const LengthPoint& perspectiveOrigin() const { return rareNonInheritedData->
m_perspectiveOrigin; } |
963 const Length& perspectiveOriginX() const { return perspectiveOrigin().x(); } | 963 const Length& perspectiveOriginX() const { return perspectiveOrigin().x(); } |
964 const Length& perspectiveOriginY() const { return perspectiveOrigin().y(); } | 964 const Length& perspectiveOriginY() const { return perspectiveOrigin().y(); } |
965 const FloatSize& pageSize() const { return rareNonInheritedData->m_pageSize;
} | 965 const FloatSize& pageSize() const { return rareNonInheritedData->m_pageSize;
} |
966 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } | 966 PageSizeType getPageSizeType() const { return static_cast<PageSizeType>(rare
NonInheritedData->m_pageSizeType); } |
967 | 967 |
968 bool hasCurrentOpacityAnimation() const { return rareNonInheritedData->m_has
CurrentOpacityAnimation; } | 968 bool hasCurrentOpacityAnimation() const { return rareNonInheritedData->m_has
CurrentOpacityAnimation; } |
969 bool hasCurrentTransformAnimation() const { return rareNonInheritedData->m_h
asCurrentTransformAnimation; } | 969 bool hasCurrentTransformAnimation() const { return rareNonInheritedData->m_h
asCurrentTransformAnimation; } |
970 bool hasCurrentFilterAnimation() const { return rareNonInheritedData->m_hasC
urrentFilterAnimation; } | 970 bool hasCurrentFilterAnimation() const { return rareNonInheritedData->m_hasC
urrentFilterAnimation; } |
971 bool hasCurrentBackdropFilterAnimation() const { return rareNonInheritedData
->m_hasCurrentBackdropFilterAnimation; } | 971 bool hasCurrentBackdropFilterAnimation() const { return rareNonInheritedData
->m_hasCurrentBackdropFilterAnimation; } |
972 bool shouldCompositeForCurrentAnimations() const { return hasCurrentOpacityA
nimation() || hasCurrentTransformAnimation() || hasCurrentFilterAnimation() || h
asCurrentBackdropFilterAnimation(); } | 972 bool shouldCompositeForCurrentAnimations() const { return hasCurrentOpacityA
nimation() || hasCurrentTransformAnimation() || hasCurrentFilterAnimation() || h
asCurrentBackdropFilterAnimation(); } |
973 | 973 |
974 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } | 974 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } |
975 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } | 975 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } |
976 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } | 976 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } |
977 bool isRunningBackdropFilterAnimationOnCompositor() const { return rareNonIn
heritedData->m_runningBackdropFilterAnimationOnCompositor; } | 977 bool isRunningBackdropFilterAnimationOnCompositor() const { return rareNonIn
heritedData->m_runningBackdropFilterAnimationOnCompositor; } |
978 bool isRunningAnimationOnCompositor() const { return isRunningOpacityAnimati
onOnCompositor() || isRunningTransformAnimationOnCompositor() || isRunningFilter
AnimationOnCompositor() || isRunningBackdropFilterAnimationOnCompositor(); } | 978 bool isRunningAnimationOnCompositor() const { return isRunningOpacityAnimati
onOnCompositor() || isRunningTransformAnimationOnCompositor() || isRunningFilter
AnimationOnCompositor() || isRunningBackdropFilterAnimationOnCompositor(); } |
979 | 979 |
980 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 980 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } |
981 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 981 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
982 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } | 982 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } |
983 | 983 |
984 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } | 984 WritingMode getWritingMode() const { return static_cast<WritingMode>(inherit
ed_flags.m_writingMode); } |
985 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(writingMode()); } | 985 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(getWritingMode()); } |
986 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(writingMode()); } | 986 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(getWritingMode()); } |
987 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(writingMode()); } | 987 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(getWritingMode()); } |
988 | 988 |
989 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 989 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } |
990 | 990 |
991 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} | 991 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} |
992 | 992 |
993 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } | 993 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } |
994 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } | 994 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } |
995 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } | 995 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } |
996 | 996 |
997 FilterOperations& mutableBackdropFilter() { return rareNonInheritedData.acce
ss()->m_backdropFilter.access()->m_operations; } | 997 FilterOperations& mutableBackdropFilter() { return rareNonInheritedData.acce
ss()->m_backdropFilter.access()->m_operations; } |
998 const FilterOperations& backdropFilter() const { return rareNonInheritedData
->m_backdropFilter->m_operations; } | 998 const FilterOperations& backdropFilter() const { return rareNonInheritedData
->m_backdropFilter->m_operations; } |
999 bool hasBackdropFilter() const { return !rareNonInheritedData->m_backdropFil
ter->m_operations.operations().isEmpty(); } | 999 bool hasBackdropFilter() const { return !rareNonInheritedData->m_backdropFil
ter->m_operations.operations().isEmpty(); } |
1000 | 1000 |
1001 WebBlendMode blendMode() const { return static_cast<WebBlendMode>(rareNonInh
eritedData->m_effectiveBlendMode); } | 1001 WebBlendMode blendMode() const { return static_cast<WebBlendMode>(rareNonInh
eritedData->m_effectiveBlendMode); } |
1002 void setBlendMode(WebBlendMode v) { rareNonInheritedData.access()->m_effecti
veBlendMode = v; } | 1002 void setBlendMode(WebBlendMode v) { rareNonInheritedData.access()->m_effecti
veBlendMode = v; } |
1003 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } | 1003 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } |
1004 | 1004 |
1005 EIsolation isolation() const { return static_cast<EIsolation>(rareNonInherit
edData->m_isolation); } | 1005 EIsolation isolation() const { return static_cast<EIsolation>(rareNonInherit
edData->m_isolation); } |
1006 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation
= v; } | 1006 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation
= v; } |
1007 bool hasIsolation() const { return isolation() != IsolationAuto; } | 1007 bool hasIsolation() const { return isolation() != IsolationAuto; } |
1008 | 1008 |
1009 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 1009 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } |
1010 | 1010 |
1011 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 1011 TouchAction getTouchAction() const { return static_cast<TouchAction>(rareNon
InheritedData->m_touchAction); } |
1012 | 1012 |
1013 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } | 1013 ScrollBehavior getScrollBehavior() const { return static_cast<ScrollBehavior
>(rareNonInheritedData->m_scrollBehavior); } |
1014 | 1014 |
1015 ScrollSnapType scrollSnapType() const { return static_cast<ScrollSnapType>(r
areNonInheritedData->m_scrollSnapType); } | 1015 ScrollSnapType getScrollSnapType() const { return static_cast<ScrollSnapType
>(rareNonInheritedData->m_scrollSnapType); } |
1016 ScrollSnapPoints scrollSnapPointsX() const { return rareNonInheritedData->m_
scrollSnap->m_xPoints; } | 1016 ScrollSnapPoints scrollSnapPointsX() const { return rareNonInheritedData->m_
scrollSnap->m_xPoints; } |
1017 ScrollSnapPoints scrollSnapPointsY() const { return rareNonInheritedData->m_
scrollSnap->m_yPoints; } | 1017 ScrollSnapPoints scrollSnapPointsY() const { return rareNonInheritedData->m_
scrollSnap->m_yPoints; } |
1018 Vector<LengthPoint> scrollSnapCoordinate() const { return rareNonInheritedDa
ta->m_scrollSnap->m_coordinates; } | 1018 Vector<LengthPoint> scrollSnapCoordinate() const { return rareNonInheritedDa
ta->m_scrollSnap->m_coordinates; } |
1019 LengthPoint scrollSnapDestination() const { return rareNonInheritedData->m_s
crollSnap->m_destination; } | 1019 LengthPoint scrollSnapDestination() const { return rareNonInheritedData->m_s
crollSnap->m_destination; } |
1020 | 1020 |
1021 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 1021 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } |
1022 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 1022 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } |
1023 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 1023 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
1024 bool hasWillChangeCompositingHint() const; | 1024 bool hasWillChangeCompositingHint() const; |
1025 bool hasWillChangeTransformHint() const; | 1025 bool hasWillChangeTransformHint() const; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v
); } | 1258 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v
); } |
1259 | 1259 |
1260 void setCursor(ECursor c) { inherited_flags._cursor_style = c; } | 1260 void setCursor(ECursor c) { inherited_flags._cursor_style = c; } |
1261 void addCursor(PassRefPtrWillBeRawPtr<StyleImage>, bool hotSpotSpecified, co
nst IntPoint& hotSpot = IntPoint()); | 1261 void addCursor(PassRefPtrWillBeRawPtr<StyleImage>, bool hotSpotSpecified, co
nst IntPoint& hotSpot = IntPoint()); |
1262 void setCursorList(PassRefPtrWillBeRawPtr<CursorList>); | 1262 void setCursorList(PassRefPtrWillBeRawPtr<CursorList>); |
1263 void clearCursorList(); | 1263 void clearCursorList(); |
1264 | 1264 |
1265 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i
nsideLink; } | 1265 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i
nsideLink; } |
1266 void setIsLink(bool b) { noninherited_flags.isLink = b; } | 1266 void setIsLink(bool b) { noninherited_flags.isLink = b; } |
1267 | 1267 |
1268 PrintColorAdjust printColorAdjust() const { return static_cast<PrintColorAdj
ust>(inherited_flags.m_printColorAdjust); } | 1268 PrintColorAdjust getPrintColorAdjust() const { return static_cast<PrintColor
Adjust>(inherited_flags.m_printColorAdjust); } |
1269 void setPrintColorAdjust(PrintColorAdjust value) { inherited_flags.m_printCo
lorAdjust = value; } | 1269 void setPrintColorAdjust(PrintColorAdjust value) { inherited_flags.m_printCo
lorAdjust = value; } |
1270 | 1270 |
1271 // A stacking context is painted atomically and defines a stacking order, wh
ereas | 1271 // A stacking context is painted atomically and defines a stacking order, wh
ereas |
1272 // a containing stacking context defines in which order the stacking context
s | 1272 // a containing stacking context defines in which order the stacking context
s |
1273 // below are painted. In Blink, a stacking context is defined by non-auto | 1273 // below are painted. In Blink, a stacking context is defined by non-auto |
1274 // z-index'. This invariant is enforced by the logic in StyleAdjuster | 1274 // z-index'. This invariant is enforced by the logic in StyleAdjuster |
1275 // See CSS 2.1, Appendix E for more details. | 1275 // See CSS 2.1, Appendix E for more details. |
1276 bool isStackingContext() const { return !hasAutoZIndex(); } | 1276 bool isStackingContext() const { return !hasAutoZIndex(); } |
1277 | 1277 |
1278 // Some elements are "treated as if they create a new stacking context" for | 1278 // Some elements are "treated as if they create a new stacking context" for |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 | 1600 |
1601 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } | 1601 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } |
1602 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } | 1602 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } |
1603 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } | 1603 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } |
1604 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } | 1604 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } |
1605 bool isDisplayFlexibleBox() const { return isDisplayFlexibleBox(display());
} | 1605 bool isDisplayFlexibleBox() const { return isDisplayFlexibleBox(display());
} |
1606 | 1606 |
1607 | 1607 |
1608 bool setWritingMode(WritingMode v) | 1608 bool setWritingMode(WritingMode v) |
1609 { | 1609 { |
1610 if (v == writingMode()) | 1610 if (v == getWritingMode()) |
1611 return false; | 1611 return false; |
1612 | 1612 |
1613 inherited_flags.m_writingMode = v; | 1613 inherited_flags.m_writingMode = v; |
1614 return true; | 1614 return true; |
1615 } | 1615 } |
1616 | 1616 |
1617 // A unique style is one that has matches something that makes it impossible
to share. | 1617 // A unique style is one that has matches something that makes it impossible
to share. |
1618 bool unique() const { return noninherited_flags.unique; } | 1618 bool unique() const { return noninherited_flags.unique; } |
1619 void setUnique() { noninherited_flags.unique = true; } | 1619 void setUnique() { noninherited_flags.unique = true; } |
1620 | 1620 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2027 } | 2027 } |
2028 | 2028 |
2029 inline bool ComputedStyle::hasPseudoElementStyle() const | 2029 inline bool ComputedStyle::hasPseudoElementStyle() const |
2030 { | 2030 { |
2031 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 2031 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
2032 } | 2032 } |
2033 | 2033 |
2034 } // namespace blink | 2034 } // namespace blink |
2035 | 2035 |
2036 #endif // ComputedStyle_h | 2036 #endif // ComputedStyle_h |
OLD | NEW |