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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 const AnimationList* animations() const { return rareNonInheritedData->m_ani
mations.get(); } | 648 const AnimationList* animations() const { return rareNonInheritedData->m_ani
mations.get(); } |
649 const AnimationList* transitions() const { return rareNonInheritedData->m_tr
ansitions.get(); } | 649 const AnimationList* transitions() const { return rareNonInheritedData->m_tr
ansitions.get(); } |
650 | 650 |
651 AnimationList* accessAnimations(); | 651 AnimationList* accessAnimations(); |
652 AnimationList* accessTransitions(); | 652 AnimationList* accessTransitions(); |
653 | 653 |
654 bool hasAnimations() const { return rareNonInheritedData->m_animations && ra
reNonInheritedData->m_animations->size() > 0; } | 654 bool hasAnimations() const { return rareNonInheritedData->m_animations && ra
reNonInheritedData->m_animations->size() > 0; } |
655 bool hasTransitions() const { return rareNonInheritedData->m_transitions &&
rareNonInheritedData->m_transitions->size() > 0; } | 655 bool hasTransitions() const { return rareNonInheritedData->m_transitions &&
rareNonInheritedData->m_transitions->size() > 0; } |
656 | 656 |
657 // return the first found Animation (including 'all' transitions) | 657 // return the first found Animation (including 'all' transitions) |
658 const Animation* transitionForProperty(int property); | 658 const Animation* transitionForProperty(int property) const; |
659 | 659 |
660 int lineClamp() const { return rareNonInheritedData->lineClamp; } | 660 int lineClamp() const { return rareNonInheritedData->lineClamp; } |
661 bool textSizeAdjust() const { return rareInheritedData->textSizeAdjust; } | 661 bool textSizeAdjust() const { return rareInheritedData->textSizeAdjust; } |
662 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } | 662 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } |
663 | 663 |
664 // attribute setter methods | 664 // attribute setter methods |
665 | 665 |
666 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } | 666 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } |
667 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } | 667 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } |
668 void setPosition(EPosition v) { noninherited_flags._position = v; } | 668 void setPosition(EPosition v) { noninherited_flags._position = v; } |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } | 964 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } |
965 | 965 |
966 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } | 966 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } |
967 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } | 967 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } |
968 | 968 |
969 float floodOpacity() const { return svgStyle()->floodOpacity(); } | 969 float floodOpacity() const { return svgStyle()->floodOpacity(); } |
970 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); } | 970 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); } |
971 #endif | 971 #endif |
972 | 972 |
973 const ContentData* contentData() const { return rareNonInheritedData->m_cont
ent.get(); } | 973 const ContentData* contentData() const { return rareNonInheritedData->m_cont
ent.get(); } |
974 bool contentDataEquivalent(const RenderStyle* otherStyle) const; | 974 bool contentDataEquivalent(const RenderStyle* otherStyle) const { return con
st_cast<RenderStyle*>(this)->rareNonInheritedData->contentDataEquivalent(*const_
cast<RenderStyle*>(otherStyle)->rareNonInheritedData); } |
975 void clearContent(); | 975 void clearContent(); |
976 void setContent(StringImpl*, bool add = false); | 976 void setContent(StringImpl*, bool add = false); |
977 void setContent(PassRefPtr<StyleImage>, bool add = false); | 977 void setContent(PassRefPtr<StyleImage>, bool add = false); |
978 void setContent(CounterContent*, bool add = false); | 978 void setContent(CounterContent*, bool add = false); |
979 | 979 |
980 const CounterDirectiveMap* counterDirectives() const; | 980 const CounterDirectiveMap* counterDirectives() const; |
981 CounterDirectiveMap& accessCounterDirectives(); | 981 CounterDirectiveMap& accessCounterDirectives(); |
982 | 982 |
983 bool inheritedNotEqual(RenderStyle*) const; | 983 bool inheritedNotEqual(RenderStyle*) const; |
984 | 984 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 static const Vector<StyleDashboardRegion>& initialDashboardRegions(); | 1124 static const Vector<StyleDashboardRegion>& initialDashboardRegions(); |
1125 static const Vector<StyleDashboardRegion>& noneDashboardRegions(); | 1125 static const Vector<StyleDashboardRegion>& noneDashboardRegions(); |
1126 #endif | 1126 #endif |
1127 }; | 1127 }; |
1128 | 1128 |
1129 } // namespace WebCore | 1129 } // namespace WebCore |
1130 | 1130 |
1131 #endif // RenderStyle_h | 1131 #endif // RenderStyle_h |
1132 | 1132 |
1133 | 1133 |
OLD | NEW |