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

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: And more and more... Created 6 years, 5 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
« no previous file with comments | « Source/core/rendering/RenderTable.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten t(boxShadow()); } 817 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten t(boxShadow()); }
818 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const { getShadowHorizontalExtent(boxShadow(), left, right); } 818 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const { getShadowHorizontalExtent(boxShadow(), left, right); }
819 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const { getShadowVerticalExtent(boxShadow(), top, bottom); } 819 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const { getShadowVerticalExtent(boxShadow(), top, bottom); }
820 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit& logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical Right); } 820 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit& logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical Right); }
821 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot tom); } 821 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot tom); }
822 822
823 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); } 823 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); }
824 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); } 824 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); }
825 bool reflectionDataEquivalent(const RenderStyle* otherStyle) const { return rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedData ); } 825 bool reflectionDataEquivalent(const RenderStyle* otherStyle) const { return rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedData ); }
826 826
827 // FIXME: reflections should belong to this helper function but they are cur rently handled
828 // through their self-painting layers. So the rendering code doesn't account for them.
829 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma geOutsets() || hasOutline(); }
830
827 EBoxSizing boxSizing() const { return m_box->boxSizing(); } 831 EBoxSizing boxSizing() const { return m_box->boxSizing(); }
828 const Length& marqueeIncrement() const { return rareNonInheritedData->m_marq uee->increment; } 832 const Length& marqueeIncrement() const { return rareNonInheritedData->m_marq uee->increment; }
829 int marqueeSpeed() const { return rareNonInheritedData->m_marquee->speed; } 833 int marqueeSpeed() const { return rareNonInheritedData->m_marquee->speed; }
830 int marqueeLoopCount() const { return rareNonInheritedData->m_marquee->loops ; } 834 int marqueeLoopCount() const { return rareNonInheritedData->m_marquee->loops ; }
831 EMarqueeBehavior marqueeBehavior() const { return static_cast<EMarqueeBehavi or>(rareNonInheritedData->m_marquee->behavior); } 835 EMarqueeBehavior marqueeBehavior() const { return static_cast<EMarqueeBehavi or>(rareNonInheritedData->m_marquee->behavior); }
832 EMarqueeDirection marqueeDirection() const { return static_cast<EMarqueeDire ction>(rareNonInheritedData->m_marquee->direction); } 836 EMarqueeDirection marqueeDirection() const { return static_cast<EMarqueeDire ction>(rareNonInheritedData->m_marquee->direction); }
833 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); } 837 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); }
834 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); } 838 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); }
835 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); } 839 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); }
836 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); } 840 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); }
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 inline bool RenderStyle::hasPseudoElementStyle() const 1919 inline bool RenderStyle::hasPseudoElementStyle() const
1916 { 1920 {
1917 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1921 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1918 } 1922 }
1919 1923
1920 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1924 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1921 1925
1922 } // namespace WebCore 1926 } // namespace WebCore
1923 1927
1924 #endif // RenderStyle_h 1928 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698