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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 204843002: Reduce invalidation on children-needs-layout containers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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, 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten t(boxShadow()); } 798 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten t(boxShadow()); }
799 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const { getShadowHorizontalExtent(boxShadow(), left, right); } 799 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const { getShadowHorizontalExtent(boxShadow(), left, right); }
800 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const { getShadowVerticalExtent(boxShadow(), top, bottom); } 800 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const { getShadowVerticalExtent(boxShadow(), top, bottom); }
801 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit& logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical Right); } 801 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit& logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical Right); }
802 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot tom); } 802 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot tom); }
803 803
804 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); } 804 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); }
805 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); } 805 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); }
806 bool reflectionDataEquivalent(const RenderStyle* otherStyle) const { return rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedData ); } 806 bool reflectionDataEquivalent(const RenderStyle* otherStyle) const { return rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedData ); }
807 807
808 // FIXME: The outline should be part of this.
809 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma geOutsets(); }
810
808 EBoxSizing boxSizing() const { return m_box->boxSizing(); } 811 EBoxSizing boxSizing() const { return m_box->boxSizing(); }
809 const Length& marqueeIncrement() const { return rareNonInheritedData->m_marq uee->increment; } 812 const Length& marqueeIncrement() const { return rareNonInheritedData->m_marq uee->increment; }
810 int marqueeSpeed() const { return rareNonInheritedData->m_marquee->speed; } 813 int marqueeSpeed() const { return rareNonInheritedData->m_marquee->speed; }
811 int marqueeLoopCount() const { return rareNonInheritedData->m_marquee->loops ; } 814 int marqueeLoopCount() const { return rareNonInheritedData->m_marquee->loops ; }
812 EMarqueeBehavior marqueeBehavior() const { return static_cast<EMarqueeBehavi or>(rareNonInheritedData->m_marquee->behavior); } 815 EMarqueeBehavior marqueeBehavior() const { return static_cast<EMarqueeBehavi or>(rareNonInheritedData->m_marquee->behavior); }
813 EMarqueeDirection marqueeDirection() const { return static_cast<EMarqueeDire ction>(rareNonInheritedData->m_marquee->direction); } 816 EMarqueeDirection marqueeDirection() const { return static_cast<EMarqueeDire ction>(rareNonInheritedData->m_marquee->direction); }
814 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); } 817 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); }
815 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); } 818 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); }
816 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); } 819 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); }
817 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); } 820 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); }
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 inline bool RenderStyle::hasPseudoElementStyle() const 1888 inline bool RenderStyle::hasPseudoElementStyle() const
1886 { 1889 {
1887 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1890 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1888 } 1891 }
1889 1892
1890 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1893 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1891 1894
1892 } // namespace WebCore 1895 } // namespace WebCore
1893 1896
1894 #endif // RenderStyle_h 1897 #endif // RenderStyle_h
OLDNEW
« Source/core/rendering/LayoutRepainter.cpp ('K') | « Source/core/rendering/RenderObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698