| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 | 824 |
| 825 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } | 825 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } |
| 826 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } | 826 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } |
| 827 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } | 827 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } |
| 828 bool isRunningAnimationOnCompositor() { return isRunningOpacityAnimationOnCo
mpositor() || isRunningTransformAnimationOnCompositor() || isRunningFilterAnimat
ionOnCompositor(); } | 828 bool isRunningAnimationOnCompositor() { return isRunningOpacityAnimationOnCo
mpositor() || isRunningTransformAnimationOnCompositor() || isRunningFilterAnimat
ionOnCompositor(); } |
| 829 | 829 |
| 830 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } | 830 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } |
| 831 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 831 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } |
| 832 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 832 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
| 833 | 833 |
| 834 // FIXME(sky): Remove these. | |
| 835 bool isHorizontalWritingMode() const { return true; } | |
| 836 bool isFlippedLinesWritingMode() const { return false; } | |
| 837 bool isFlippedBlocksWritingMode() const { return false; } | |
| 838 | |
| 839 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 834 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } |
| 840 | 835 |
| 841 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} | 836 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} |
| 842 | 837 |
| 843 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } | 838 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } |
| 844 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } | 839 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } |
| 845 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } | 840 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } |
| 846 | 841 |
| 847 WebBlendMode blendMode() const; | 842 WebBlendMode blendMode() const; |
| 848 void setBlendMode(WebBlendMode v); | 843 void setBlendMode(WebBlendMode v); |
| 849 bool hasBlendMode() const; | 844 bool hasBlendMode() const; |
| 850 | 845 |
| 851 EIsolation isolation() const; | 846 EIsolation isolation() const; |
| 852 void setIsolation(EIsolation v); | 847 void setIsolation(EIsolation v); |
| 853 bool hasIsolation() const; | 848 bool hasIsolation() const; |
| 854 | 849 |
| 855 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 850 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection(); } |
| 856 | 851 |
| 857 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 852 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
| 858 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } | 853 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } |
| 859 | 854 |
| 860 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } | 855 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r
areNonInheritedData->m_scrollBehavior); } |
| 861 | 856 |
| 862 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 857 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } |
| 863 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 858 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } |
| 864 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 859 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
| 865 bool hasWillChangeCompositingHint() const; | 860 bool hasWillChangeCompositingHint() const; |
| 866 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } | 861 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } |
| 867 | 862 |
| 868 // attribute setter methods | 863 // attribute setter methods |
| 869 | 864 |
| 870 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } | 865 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } |
| 871 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } | 866 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } |
| 872 void setPosition(EPosition v) { noninherited_flags.position = v; } | 867 void setPosition(EPosition v) { noninherited_flags.position = v; } |
| 873 void setFloating(EFloat v) { noninherited_flags.floating = v; } | 868 void setFloating(EFloat v) { noninherited_flags.floating = v; } |
| 874 | 869 |
| 875 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } | 870 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } |
| 876 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } | 871 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } |
| 877 void setTop(const Length& v) { SET_VAR(surround, offset.m_top, v); } | 872 void setTop(const Length& v) { SET_VAR(surround, offset.m_top, v); } |
| 878 void setBottom(const Length& v) { SET_VAR(surround, offset.m_bottom, v); } | 873 void setBottom(const Length& v) { SET_VAR(surround, offset.m_bottom, v); } |
| 879 | 874 |
| 880 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } | 875 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } |
| 881 void setHeight(const Length& v) { SET_VAR(m_box, m_height, v); } | 876 void setHeight(const Length& v) { SET_VAR(m_box, m_height, v); } |
| 882 | 877 |
| 883 void setLogicalWidth(const Length& v) | 878 void setLogicalWidth(const Length& v) |
| 884 { | 879 { |
| 885 if (isHorizontalWritingMode()) { | 880 // FIXME(sky): Remove |
| 886 SET_VAR(m_box, m_width, v); | 881 SET_VAR(m_box, m_width, v); |
| 887 } else { | |
| 888 SET_VAR(m_box, m_height, v); | |
| 889 } | |
| 890 } | 882 } |
| 891 | 883 |
| 892 void setLogicalHeight(const Length& v) | 884 void setLogicalHeight(const Length& v) |
| 893 { | 885 { |
| 894 if (isHorizontalWritingMode()) { | 886 // FIXME(sky): Remove |
| 895 SET_VAR(m_box, m_height, v); | 887 SET_VAR(m_box, m_height, v); |
| 896 } else { | |
| 897 SET_VAR(m_box, m_width, v); | |
| 898 } | |
| 899 } | 888 } |
| 900 | 889 |
| 901 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } | 890 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } |
| 902 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } | 891 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } |
| 903 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } | 892 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } |
| 904 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } | 893 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } |
| 905 | 894 |
| 906 void resetBorder() | 895 void resetBorder() |
| 907 { | 896 { |
| 908 resetBorderImage(); | 897 resetBorderImage(); |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 | 1638 |
| 1650 rareInheritedData.access()->m_textOrientation = textOrientation; | 1639 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1651 return true; | 1640 return true; |
| 1652 } | 1641 } |
| 1653 | 1642 |
| 1654 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1643 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1655 | 1644 |
| 1656 } // namespace blink | 1645 } // namespace blink |
| 1657 | 1646 |
| 1658 #endif // RenderStyle_h | 1647 #endif // RenderStyle_h |
| OLD | NEW |