OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 { | 1635 { |
1636 ASSERT(path); | 1636 ASSERT(path); |
1637 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = path; | 1637 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = path; |
1638 } | 1638 } |
1639 | 1639 |
1640 void ComputedStyle::resetMotionPath() | 1640 void ComputedStyle::resetMotionPath() |
1641 { | 1641 { |
1642 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = nullp
tr; | 1642 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = nullp
tr; |
1643 } | 1643 } |
1644 | 1644 |
1645 int ComputedStyle::outlineOutset() const | 1645 int ComputedStyle::outlineOutsetExtent() const |
1646 { | 1646 { |
1647 if (!hasOutline()) | 1647 if (!hasOutline()) |
1648 return 0; | 1648 return 0; |
1649 if (outlineStyleIsAuto()) | 1649 if (outlineStyleIsAuto()) |
1650 return GraphicsContext::focusRingOutsetExtent(outlineOffset(), outlineWi
dth()); | 1650 return GraphicsContext::focusRingOutsetExtent(outlineOffset(), outlineWi
dth()); |
1651 return outlineSize(); | 1651 return std::max(0, outlineWidth() + outlineOffset()); |
1652 } | 1652 } |
1653 | 1653 |
1654 bool ComputedStyle::columnRuleEquivalent(const ComputedStyle* otherStyle) const | 1654 bool ComputedStyle::columnRuleEquivalent(const ComputedStyle* otherStyle) const |
1655 { | 1655 { |
1656 return columnRuleStyle() == otherStyle->columnRuleStyle() | 1656 return columnRuleStyle() == otherStyle->columnRuleStyle() |
1657 && columnRuleWidth() == otherStyle->columnRuleWidth() | 1657 && columnRuleWidth() == otherStyle->columnRuleWidth() |
1658 && visitedDependentColor(CSSPropertyWebkitColumnRuleColor) == otherStyle
->visitedDependentColor(CSSPropertyWebkitColumnRuleColor); | 1658 && visitedDependentColor(CSSPropertyWebkitColumnRuleColor) == otherStyle
->visitedDependentColor(CSSPropertyWebkitColumnRuleColor); |
1659 } | 1659 } |
1660 | 1660 |
1661 TextEmphasisMark ComputedStyle::textEmphasisMark() const | 1661 TextEmphasisMark ComputedStyle::textEmphasisMark() const |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 } | 1774 } |
1775 | 1775 |
1776 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) | 1776 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) |
1777 { | 1777 { |
1778 setEmptyState(other.emptyState()); | 1778 setEmptyState(other.emptyState()); |
1779 if (other.hasExplicitlyInheritedProperties()) | 1779 if (other.hasExplicitlyInheritedProperties()) |
1780 setHasExplicitlyInheritedProperties(); | 1780 setHasExplicitlyInheritedProperties(); |
1781 } | 1781 } |
1782 | 1782 |
1783 } // namespace blink | 1783 } // namespace blink |
OLD | NEW |