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, 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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 // -webkit-box-reflect | 823 // -webkit-box-reflect |
824 static StyleReflection* initialBoxReflect() { return 0; } | 824 static StyleReflection* initialBoxReflect() { return 0; } |
825 StyleReflection* boxReflect() const { return m_rareNonInheritedData->m_boxRe
flect.get(); } | 825 StyleReflection* boxReflect() const { return m_rareNonInheritedData->m_boxRe
flect.get(); } |
826 void setBoxReflect(PassRefPtr<StyleReflection> reflect) | 826 void setBoxReflect(PassRefPtr<StyleReflection> reflect) |
827 { | 827 { |
828 if (m_rareNonInheritedData->m_boxReflect != reflect) | 828 if (m_rareNonInheritedData->m_boxReflect != reflect) |
829 m_rareNonInheritedData.access()->m_boxReflect = reflect; | 829 m_rareNonInheritedData.access()->m_boxReflect = reflect; |
830 } | 830 } |
831 | 831 |
832 // float | 832 // float |
833 static EFloat initialFloating() { return EFloat::NoFloat; } | 833 static EFloat initialFloating() { return EFloat::None; } |
834 EFloat floating() const { return static_cast<EFloat>(m_nonInheritedData.m_fl
oating); } | 834 EFloat floating() const { return static_cast<EFloat>(m_nonInheritedData.m_fl
oating); } |
835 void setFloating(EFloat v) { m_nonInheritedData.m_floating = static_cast<uns
igned>(v); } | 835 void setFloating(EFloat v) { m_nonInheritedData.m_floating = static_cast<uns
igned>(v); } |
836 | 836 |
837 // Grid properties. | 837 // Grid properties. |
838 static Vector<GridTrackSize> initialGridAutoRepeatTracks() { return Vector<G
ridTrackSize>(); /* none */ } | 838 static Vector<GridTrackSize> initialGridAutoRepeatTracks() { return Vector<G
ridTrackSize>(); /* none */ } |
839 static size_t initialGridAutoRepeatInsertionPoint() { return 0; } | 839 static size_t initialGridAutoRepeatInsertionPoint() { return 0; } |
840 static AutoRepeatType initialGridAutoRepeatType() { return NoAutoRepeat; } | 840 static AutoRepeatType initialGridAutoRepeatType() { return NoAutoRepeat; } |
841 static NamedGridLinesMap initialNamedGridColumnLines() { return NamedGridLin
esMap(); } | 841 static NamedGridLinesMap initialNamedGridColumnLines() { return NamedGridLin
esMap(); } |
842 static NamedGridLinesMap initialNamedGridRowLines() { return NamedGridLinesM
ap(); } | 842 static NamedGridLinesMap initialNamedGridRowLines() { return NamedGridLinesM
ap(); } |
843 static OrderedNamedGridLines initialOrderedNamedGridColumnLines() { return O
rderedNamedGridLines(); } | 843 static OrderedNamedGridLines initialOrderedNamedGridColumnLines() { return O
rderedNamedGridLines(); } |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2126 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(),
Fixed))); | 2126 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(),
Fixed))); |
2127 } | 2127 } |
2128 | 2128 |
2129 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl
udeLogicalLeftEdge = true, | 2129 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl
udeLogicalLeftEdge = true, |
2130 bool includeLogicalRightEdge = true) const; | 2130 bool includeLogicalRightEdge = true) const; |
2131 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool
includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; | 2131 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool
includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; |
2132 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, | 2132 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, |
2133 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ
eLogicalRightEdge) const; | 2133 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ
eLogicalRightEdge) const; |
2134 | 2134 |
2135 // Float utility functions. | 2135 // Float utility functions. |
2136 bool isFloating() const { return floating() != EFloat::NoFloat; } | 2136 bool isFloating() const { return floating() != EFloat::None; } |
2137 | 2137 |
2138 // Mix-blend-mode utility functions. | 2138 // Mix-blend-mode utility functions. |
2139 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } | 2139 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } |
2140 | 2140 |
2141 // Motion utility functions. | 2141 // Motion utility functions. |
2142 bool hasOffsetPath() const { return offsetPath(); } | 2142 bool hasOffsetPath() const { return offsetPath(); } |
2143 | 2143 |
2144 // Direction utility functions. | 2144 // Direction utility functions. |
2145 bool isLeftToRightDirection() const { return direction() == LTR; } | 2145 bool isLeftToRightDirection() const { return direction() == LTR; } |
2146 | 2146 |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2620 } | 2620 } |
2621 | 2621 |
2622 inline bool ComputedStyle::hasPseudoElementStyle() const | 2622 inline bool ComputedStyle::hasPseudoElementStyle() const |
2623 { | 2623 { |
2624 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 2624 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
2625 } | 2625 } |
2626 | 2626 |
2627 } // namespace blink | 2627 } // namespace blink |
2628 | 2628 |
2629 #endif // ComputedStyle_h | 2629 #endif // ComputedStyle_h |
OLD | NEW |