| 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 |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
| 19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
| 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ | 25 #ifndef SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ |
| 26 #define SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ | 26 #define SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ |
| 27 | 27 |
| 28 #include "gen/sky/core/CSSPropertyNames.h" | 28 #include "gen/sky/core/CSSPropertyNames.h" |
| 29 #include "sky/engine/core/animation/css/CSSAnimationData.h" | |
| 30 #include "sky/engine/core/animation/css/CSSTransitionData.h" | |
| 31 #include "sky/engine/core/css/CSSLineBoxContainValue.h" | 29 #include "sky/engine/core/css/CSSLineBoxContainValue.h" |
| 32 #include "sky/engine/core/css/CSSPrimitiveValue.h" | 30 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 33 #include "sky/engine/core/rendering/style/BorderValue.h" | 31 #include "sky/engine/core/rendering/style/BorderValue.h" |
| 34 #include "sky/engine/core/rendering/style/CounterDirectives.h" | 32 #include "sky/engine/core/rendering/style/CounterDirectives.h" |
| 35 #include "sky/engine/core/rendering/style/DataRef.h" | 33 #include "sky/engine/core/rendering/style/DataRef.h" |
| 36 #include "sky/engine/core/rendering/style/NinePieceImage.h" | 34 #include "sky/engine/core/rendering/style/NinePieceImage.h" |
| 37 #include "sky/engine/core/rendering/style/OutlineValue.h" | 35 #include "sky/engine/core/rendering/style/OutlineValue.h" |
| 38 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" | 36 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 39 #include "sky/engine/core/rendering/style/ShapeValue.h" | 37 #include "sky/engine/core/rendering/style/ShapeValue.h" |
| 40 #include "sky/engine/core/rendering/style/StyleBackgroundData.h" | 38 #include "sky/engine/core/rendering/style/StyleBackgroundData.h" |
| 41 #include "sky/engine/core/rendering/style/StyleBoxData.h" | 39 #include "sky/engine/core/rendering/style/StyleBoxData.h" |
| 42 #include "sky/engine/core/rendering/style/StyleDifference.h" | 40 #include "sky/engine/core/rendering/style/StyleDifference.h" |
| 43 #include "sky/engine/core/rendering/style/StyleFilterData.h" | 41 #include "sky/engine/core/rendering/style/StyleFilterData.h" |
| 44 #include "sky/engine/core/rendering/style/StyleFlexibleBoxData.h" | 42 #include "sky/engine/core/rendering/style/StyleFlexibleBoxData.h" |
| 45 #include "sky/engine/core/rendering/style/StyleInheritedData.h" | 43 #include "sky/engine/core/rendering/style/StyleInheritedData.h" |
| 46 #include "sky/engine/core/rendering/style/StyleRareInheritedData.h" | 44 #include "sky/engine/core/rendering/style/StyleRareInheritedData.h" |
| 47 #include "sky/engine/core/rendering/style/StyleRareNonInheritedData.h" | 45 #include "sky/engine/core/rendering/style/StyleRareNonInheritedData.h" |
| 48 #include "sky/engine/core/rendering/style/StyleSurroundData.h" | 46 #include "sky/engine/core/rendering/style/StyleSurroundData.h" |
| 49 #include "sky/engine/core/rendering/style/StyleTransformData.h" | 47 #include "sky/engine/core/rendering/style/StyleTransformData.h" |
| 50 #include "sky/engine/core/rendering/style/StyleVisualData.h" | 48 #include "sky/engine/core/rendering/style/StyleVisualData.h" |
| 51 #include "sky/engine/core/rendering/style/StyleWillChangeData.h" | |
| 52 #include "sky/engine/platform/Length.h" | 49 #include "sky/engine/platform/Length.h" |
| 53 #include "sky/engine/platform/LengthBox.h" | 50 #include "sky/engine/platform/LengthBox.h" |
| 54 #include "sky/engine/platform/LengthSize.h" | 51 #include "sky/engine/platform/LengthSize.h" |
| 55 #include "sky/engine/platform/fonts/FontBaseline.h" | 52 #include "sky/engine/platform/fonts/FontBaseline.h" |
| 56 #include "sky/engine/platform/fonts/FontDescription.h" | 53 #include "sky/engine/platform/fonts/FontDescription.h" |
| 57 #include "sky/engine/platform/geometry/FloatRoundedRect.h" | 54 #include "sky/engine/platform/geometry/FloatRoundedRect.h" |
| 58 #include "sky/engine/platform/geometry/LayoutBoxExtent.h" | 55 #include "sky/engine/platform/geometry/LayoutBoxExtent.h" |
| 59 #include "sky/engine/platform/geometry/RoundedRect.h" | 56 #include "sky/engine/platform/geometry/RoundedRect.h" |
| 60 #include "sky/engine/platform/graphics/Color.h" | 57 #include "sky/engine/platform/graphics/Color.h" |
| 61 #include "sky/engine/platform/graphics/GraphicsTypes.h" | 58 #include "sky/engine/platform/graphics/GraphicsTypes.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 92 class BorderData; | 89 class BorderData; |
| 93 class Font; | 90 class Font; |
| 94 class FontMetrics; | 91 class FontMetrics; |
| 95 class ShadowList; | 92 class ShadowList; |
| 96 class StyleImage; | 93 class StyleImage; |
| 97 class StyleInheritedData; | 94 class StyleInheritedData; |
| 98 class StyleResolver; | 95 class StyleResolver; |
| 99 class TransformationMatrix; | 96 class TransformationMatrix; |
| 100 | 97 |
| 101 class RenderStyle: public RefCounted<RenderStyle> { | 98 class RenderStyle: public RefCounted<RenderStyle> { |
| 102 friend class AnimatedStyleBuilder; // Used by Web Animations CSS. Sets the c
olor styles | |
| 103 friend class CSSAnimatableValueFactory; // Used by Web Animations CSS. Gets
visited and unvisited colors separately. | |
| 104 friend class CSSPropertyEquality; // Used by CSS animations. We can't allow
them to animate based off visited colors. | |
| 105 friend class EditingStyle; // Editing has to only reveal unvisited info. | 99 friend class EditingStyle; // Editing has to only reveal unvisited info. |
| 106 friend class CSSComputedStyleDeclaration; // Ignores visited styles, so need
s to be able to see unvisited info. | 100 friend class CSSComputedStyleDeclaration; // Ignores visited styles, so need
s to be able to see unvisited info. |
| 107 friend class StyleBuilderFunctions; // Sets color styles | 101 friend class StyleBuilderFunctions; // Sets color styles |
| 108 | 102 |
| 109 // FIXME: When we stop resolving currentColor at style time, these can be re
moved. | 103 // FIXME: When we stop resolving currentColor at style time, these can be re
moved. |
| 110 friend class CSSToStyleMap; | 104 friend class CSSToStyleMap; |
| 111 friend class FilterOperationResolver; | 105 friend class FilterOperationResolver; |
| 112 friend class StyleBuilderConverter; | 106 friend class StyleBuilderConverter; |
| 113 friend class StyleResolverState; | 107 friend class StyleResolverState; |
| 114 friend class StyleResolver; | 108 friend class StyleResolver; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 | 648 |
| 655 unsigned tabSize() const { return rareInheritedData->m_tabSize; } | 649 unsigned tabSize() const { return rareInheritedData->m_tabSize; } |
| 656 | 650 |
| 657 // End CSS3 Getters | 651 // End CSS3 Getters |
| 658 | 652 |
| 659 WrapFlow wrapFlow() const { return static_cast<WrapFlow>(rareNonInheritedDat
a->m_wrapFlow); } | 653 WrapFlow wrapFlow() const { return static_cast<WrapFlow>(rareNonInheritedDat
a->m_wrapFlow); } |
| 660 WrapThrough wrapThrough() const { return static_cast<WrapThrough>(rareNonInh
eritedData->m_wrapThrough); } | 654 WrapThrough wrapThrough() const { return static_cast<WrapThrough>(rareNonInh
eritedData->m_wrapThrough); } |
| 661 | 655 |
| 662 // Apple-specific property getter methods | 656 // Apple-specific property getter methods |
| 663 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } | 657 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } |
| 664 const CSSAnimationData* animations() const { return rareNonInheritedData->m_
animations.get(); } | |
| 665 const CSSTransitionData* transitions() const { return rareNonInheritedData->
m_transitions.get(); } | |
| 666 | |
| 667 CSSAnimationData& accessAnimations(); | |
| 668 CSSTransitionData& accessTransitions(); | |
| 669 | 658 |
| 670 ETransformStyle3D transformStyle3D() const { return static_cast<ETransformSt
yle3D>(rareNonInheritedData->m_transformStyle3D); } | 659 ETransformStyle3D transformStyle3D() const { return static_cast<ETransformSt
yle3D>(rareNonInheritedData->m_transformStyle3D); } |
| 671 bool preserves3D() const { return rareNonInheritedData->m_transformStyle3D =
= TransformStyle3DPreserve3D; } | 660 bool preserves3D() const { return rareNonInheritedData->m_transformStyle3D =
= TransformStyle3DPreserve3D; } |
| 672 | 661 |
| 673 float perspective() const { return rareNonInheritedData->m_perspective; } | 662 float perspective() const { return rareNonInheritedData->m_perspective; } |
| 674 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0
; } | 663 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0
; } |
| 675 const Length& perspectiveOriginX() const { return rareNonInheritedData->m_pe
rspectiveOriginX; } | 664 const Length& perspectiveOriginX() const { return rareNonInheritedData->m_pe
rspectiveOriginX; } |
| 676 const Length& perspectiveOriginY() const { return rareNonInheritedData->m_pe
rspectiveOriginY; } | 665 const Length& perspectiveOriginY() const { return rareNonInheritedData->m_pe
rspectiveOriginY; } |
| 677 | 666 |
| 678 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } | 667 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } |
| 679 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 668 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
| 680 | 669 |
| 681 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 670 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } |
| 682 | 671 |
| 683 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } | 672 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } |
| 684 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } | 673 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } |
| 685 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } | 674 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } |
| 686 | 675 |
| 687 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } | 676 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh
eritedData->m_touchAction); } |
| 688 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } | 677 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe
lay>(rareInheritedData->m_touchActionDelay); } |
| 689 | 678 |
| 690 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | |
| 691 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | |
| 692 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } | |
| 693 | |
| 694 // attribute setter methods | 679 // attribute setter methods |
| 695 | 680 |
| 696 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } | 681 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } |
| 697 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } | 682 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } |
| 698 void setPosition(EPosition v) { noninherited_flags.position = v; } | 683 void setPosition(EPosition v) { noninherited_flags.position = v; } |
| 699 | 684 |
| 700 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } | 685 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } |
| 701 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } | 686 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } |
| 702 void setTop(const Length& v) { SET_VAR(surround, offset.m_top, v); } | 687 void setTop(const Length& v) { SET_VAR(surround, offset.m_top, v); } |
| 703 void setBottom(const Length& v) { SET_VAR(surround, offset.m_bottom, v); } | 688 void setBottom(const Length& v) { SET_VAR(surround, offset.m_bottom, v); } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 void setVisibility(EVisibility v) { inherited_flags._visibility = v; } | 788 void setVisibility(EVisibility v) { inherited_flags._visibility = v; } |
| 804 void setVerticalAlign(EVerticalAlign v) { noninherited_flags.verticalAlign =
v; } | 789 void setVerticalAlign(EVerticalAlign v) { noninherited_flags.verticalAlign =
v; } |
| 805 void setVerticalAlignLength(const Length& length) { setVerticalAlign(LENGTH)
; SET_VAR(m_box, m_verticalAlign, length); } | 790 void setVerticalAlignLength(const Length& length) { setVerticalAlign(LENGTH)
; SET_VAR(m_box, m_verticalAlign, length); } |
| 806 | 791 |
| 807 void setHasAutoClip() { SET_VAR(visual, hasAutoClip, true); SET_VAR(visual,
clip, RenderStyle::initialClip()); } | 792 void setHasAutoClip() { SET_VAR(visual, hasAutoClip, true); SET_VAR(visual,
clip, RenderStyle::initialClip()); } |
| 808 void setClip(const LengthBox& box) { SET_VAR(visual, hasAutoClip, false); SE
T_VAR(visual, clip, box); } | 793 void setClip(const LengthBox& box) { SET_VAR(visual, hasAutoClip, false); SE
T_VAR(visual, clip, box); } |
| 809 | 794 |
| 810 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags.unicodeBidi = b; } | 795 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags.unicodeBidi = b; } |
| 811 | 796 |
| 812 bool setFontDescription(const FontDescription&); | 797 bool setFontDescription(const FontDescription&); |
| 813 // Only used for blending font sizes when animating and for text autosizing. | 798 // Only used for text autosizing. |
| 814 void setFontSize(float); | 799 void setFontSize(float); |
| 815 void setFontStretch(FontStretch); | 800 void setFontStretch(FontStretch); |
| 816 void setFontWeight(FontWeight); | 801 void setFontWeight(FontWeight); |
| 817 | 802 |
| 818 void setColor(const Color&); | 803 void setColor(const Color&); |
| 819 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v);
} | 804 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v);
} |
| 820 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } | 805 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } |
| 821 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } | 806 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } |
| 822 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } | 807 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } |
| 823 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } | 808 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 void setTabSize(unsigned size) { SET_VAR(rareInheritedData, m_tabSize, size)
; } | 919 void setTabSize(unsigned size) { SET_VAR(rareInheritedData, m_tabSize, size)
; } |
| 935 | 920 |
| 936 // End CSS3 Setters | 921 // End CSS3 Setters |
| 937 | 922 |
| 938 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl
ow, wrapFlow); } | 923 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl
ow, wrapFlow); } |
| 939 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData,
m_wrapThrough, wrapThrough); } | 924 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData,
m_wrapThrough, wrapThrough); } |
| 940 | 925 |
| 941 // Apple-specific property setters | 926 // Apple-specific property setters |
| 942 void setPointerEvents(EPointerEvents p) { inherited_flags._pointerEvents = p
; } | 927 void setPointerEvents(EPointerEvents p) { inherited_flags._pointerEvents = p
; } |
| 943 | 928 |
| 944 void clearAnimations() | |
| 945 { | |
| 946 rareNonInheritedData.access()->m_animations.clear(); | |
| 947 } | |
| 948 | |
| 949 void clearTransitions() | |
| 950 { | |
| 951 rareNonInheritedData.access()->m_transitions.clear(); | |
| 952 } | |
| 953 | |
| 954 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData
, m_transformStyle3D, b); } | 929 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData
, m_transformStyle3D, b); } |
| 955 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective,
p); } | 930 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective,
p); } |
| 956 void setPerspectiveOriginX(const Length& l) { SET_VAR(rareNonInheritedData,
m_perspectiveOriginX, l); } | 931 void setPerspectiveOriginX(const Length& l) { SET_VAR(rareNonInheritedData,
m_perspectiveOriginX, l); } |
| 957 void setPerspectiveOriginY(const Length& l) { SET_VAR(rareNonInheritedData,
m_perspectiveOriginY, l); } | 932 void setPerspectiveOriginY(const Length& l) { SET_VAR(rareNonInheritedData,
m_perspectiveOriginY, l); } |
| 958 | 933 |
| 959 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 934 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
| 960 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 935 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
| 961 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 936 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
| 962 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_
touchActionDelay, t); } | 937 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_
touchActionDelay, t); } |
| 963 | 938 |
| 964 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } | |
| 965 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } | |
| 966 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } | |
| 967 | |
| 968 void setClipPath(PassRefPtr<ClipPathOperation> operation) | 939 void setClipPath(PassRefPtr<ClipPathOperation> operation) |
| 969 { | 940 { |
| 970 if (rareNonInheritedData->m_clipPath != operation) | 941 if (rareNonInheritedData->m_clipPath != operation) |
| 971 rareNonInheritedData.access()->m_clipPath = operation; | 942 rareNonInheritedData.access()->m_clipPath = operation; |
| 972 } | 943 } |
| 973 ClipPathOperation* clipPath() const { return rareNonInheritedData->m_clipPat
h.get(); } | 944 ClipPathOperation* clipPath() const { return rareNonInheritedData->m_clipPat
h.get(); } |
| 974 | 945 |
| 975 static ClipPathOperation* initialClipPath() { return 0; } | 946 static ClipPathOperation* initialClipPath() { return 0; } |
| 976 | 947 |
| 977 const CounterDirectiveMap* counterDirectives() const; | 948 const CounterDirectiveMap* counterDirectives() const; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 | 1171 |
| 1201 rareInheritedData.access()->m_textOrientation = textOrientation; | 1172 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1202 return true; | 1173 return true; |
| 1203 } | 1174 } |
| 1204 | 1175 |
| 1205 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1176 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1206 | 1177 |
| 1207 } // namespace blink | 1178 } // namespace blink |
| 1208 | 1179 |
| 1209 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ | 1180 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ |
| OLD | NEW |