Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Side by Side Diff: third_party/WebKit/WebCore/rendering/style/RenderStyle.h

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/bidi.cpp ('k') | third_party/WebKit/WebCore/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698