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

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

Issue 187813004: Use outlineBox if we have an outline or shadow (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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri d->m_namedGridAreaColumnCount; } 785 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri d->m_namedGridAreaColumnCount; }
786 GridAutoFlow gridAutoFlow() const { return rareNonInheritedData->m_grid->m_g ridAutoFlow; } 786 GridAutoFlow gridAutoFlow() const { return rareNonInheritedData->m_grid->m_g ridAutoFlow; }
787 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData-> m_grid->m_gridAutoColumns; } 787 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData-> m_grid->m_gridAutoColumns; }
788 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g rid->m_gridAutoRows; } 788 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g rid->m_gridAutoRows; }
789 789
790 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m _gridItem->m_gridColumnStart; } 790 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m _gridItem->m_gridColumnStart; }
791 const GridPosition& gridColumnEnd() const { return rareNonInheritedData->m_g ridItem->m_gridColumnEnd; } 791 const GridPosition& gridColumnEnd() const { return rareNonInheritedData->m_g ridItem->m_gridColumnEnd; }
792 const GridPosition& gridRowStart() const { return rareNonInheritedData->m_gr idItem->m_gridRowStart; } 792 const GridPosition& gridRowStart() const { return rareNonInheritedData->m_gr idItem->m_gridRowStart; }
793 const GridPosition& gridRowEnd() const { return rareNonInheritedData->m_grid Item->m_gridRowEnd; } 793 const GridPosition& gridRowEnd() const { return rareNonInheritedData->m_grid Item->m_gridRowEnd; }
794 794
795 bool hasBoxShadow() const;
795 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get (); } 796 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get (); }
796 void getBoxShadowExtent(LayoutUnit& top, LayoutUnit& right, LayoutUnit& bott om, LayoutUnit& left) const { getShadowExtent(boxShadow(), top, right, bottom, l eft); } 797 void getBoxShadowExtent(LayoutUnit& top, LayoutUnit& right, LayoutUnit& bott om, LayoutUnit& left) const { getShadowExtent(boxShadow(), top, right, bottom, l eft); }
797 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten t(boxShadow()); } 798 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten t(boxShadow()); }
798 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const { getShadowHorizontalExtent(boxShadow(), left, right); } 799 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const { getShadowHorizontalExtent(boxShadow(), left, right); }
799 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const { getShadowVerticalExtent(boxShadow(), top, bottom); } 800 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const { getShadowVerticalExtent(boxShadow(), top, bottom); }
800 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit& logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical Right); } 801 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit& logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical Right); }
801 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); }
802 803
803 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); } 804 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); }
804 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); } 805 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); }
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 } 1882 }
1882 1883
1883 inline bool RenderStyle::hasPseudoElementStyle() const 1884 inline bool RenderStyle::hasPseudoElementStyle() const
1884 { 1885 {
1885 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1886 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1886 } 1887 }
1887 1888
1888 } // namespace WebCore 1889 } // namespace WebCore
1889 1890
1890 #endif // RenderStyle_h 1891 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698