| 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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 { | 1636 { |
| 1637 ASSERT(path); | 1637 ASSERT(path); |
| 1638 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = path; | 1638 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = path; |
| 1639 } | 1639 } |
| 1640 | 1640 |
| 1641 void ComputedStyle::resetMotionPath() | 1641 void ComputedStyle::resetMotionPath() |
| 1642 { | 1642 { |
| 1643 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = nullp
tr; | 1643 rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = nullp
tr; |
| 1644 } | 1644 } |
| 1645 | 1645 |
| 1646 int ComputedStyle::outlineOutset() const | 1646 int ComputedStyle::outlineOutsetExtent() const |
| 1647 { | 1647 { |
| 1648 if (!hasOutline()) | 1648 if (!hasOutline()) |
| 1649 return 0; | 1649 return 0; |
| 1650 if (outlineStyleIsAuto()) | 1650 if (outlineStyleIsAuto()) |
| 1651 return GraphicsContext::focusRingOutsetExtent(outlineOffset(), outlineWi
dth()); | 1651 return GraphicsContext::focusRingOutsetExtent(outlineOffset(), outlineWi
dth()); |
| 1652 return outlineSize(); | 1652 return std::max(0, outlineWidth() + outlineOffset()); |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 bool ComputedStyle::columnRuleEquivalent(const ComputedStyle* otherStyle) const | 1655 bool ComputedStyle::columnRuleEquivalent(const ComputedStyle* otherStyle) const |
| 1656 { | 1656 { |
| 1657 return columnRuleStyle() == otherStyle->columnRuleStyle() | 1657 return columnRuleStyle() == otherStyle->columnRuleStyle() |
| 1658 && columnRuleWidth() == otherStyle->columnRuleWidth() | 1658 && columnRuleWidth() == otherStyle->columnRuleWidth() |
| 1659 && visitedDependentColor(CSSPropertyWebkitColumnRuleColor) == otherStyle
->visitedDependentColor(CSSPropertyWebkitColumnRuleColor); | 1659 && visitedDependentColor(CSSPropertyWebkitColumnRuleColor) == otherStyle
->visitedDependentColor(CSSPropertyWebkitColumnRuleColor); |
| 1660 } | 1660 } |
| 1661 | 1661 |
| 1662 TextEmphasisMark ComputedStyle::textEmphasisMark() const | 1662 TextEmphasisMark ComputedStyle::textEmphasisMark() const |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 } | 1775 } |
| 1776 | 1776 |
| 1777 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) | 1777 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) |
| 1778 { | 1778 { |
| 1779 setEmptyState(other.emptyState()); | 1779 setEmptyState(other.emptyState()); |
| 1780 if (other.hasExplicitlyInheritedProperties()) | 1780 if (other.hasExplicitlyInheritedProperties()) |
| 1781 setHasExplicitlyInheritedProperties(); | 1781 setHasExplicitlyInheritedProperties(); |
| 1782 } | 1782 } |
| 1783 | 1783 |
| 1784 } // namespace blink | 1784 } // namespace blink |
| OLD | NEW |