| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 3618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3629 DCHECK(isStyledElement()); | 3629 DCHECK(isStyledElement()); |
| 3630 style->setProperty(propertyID, CSSPrimitiveValue::create(value, unit)); | 3630 style->setProperty(propertyID, CSSPrimitiveValue::create(value, unit)); |
| 3631 } | 3631 } |
| 3632 | 3632 |
| 3633 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s
tyle, CSSPropertyID propertyID, const String& value) | 3633 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s
tyle, CSSPropertyID propertyID, const String& value) |
| 3634 { | 3634 { |
| 3635 DCHECK(isStyledElement()); | 3635 DCHECK(isStyledElement()); |
| 3636 style->setProperty(propertyID, value, false); | 3636 style->setProperty(propertyID, value, false); |
| 3637 } | 3637 } |
| 3638 | 3638 |
| 3639 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet*
style, CSSPropertyID propertyID, CSSValue* value) | 3639 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s
tyle, CSSPropertyID propertyID, const CSSValue* value) |
| 3640 { | 3640 { |
| 3641 DCHECK(isStyledElement()); | 3641 DCHECK(isStyledElement()); |
| 3642 style->setProperty(propertyID, value); | 3642 style->setProperty(propertyID, value); |
| 3643 } | 3643 } |
| 3644 | 3644 |
| 3645 bool Element::supportsStyleSharing() const | 3645 bool Element::supportsStyleSharing() const |
| 3646 { | 3646 { |
| 3647 if (!isStyledElement() || !parentOrShadowHostElement()) | 3647 if (!isStyledElement() || !parentOrShadowHostElement()) |
| 3648 return false; | 3648 return false; |
| 3649 // If the element has inline style it is probably unique. | 3649 // If the element has inline style it is probably unique. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3743 | 3743 |
| 3744 DEFINE_TRACE_WRAPPERS(Element) | 3744 DEFINE_TRACE_WRAPPERS(Element) |
| 3745 { | 3745 { |
| 3746 if (hasRareData()) { | 3746 if (hasRareData()) { |
| 3747 visitor->traceWrappers(elementRareData()); | 3747 visitor->traceWrappers(elementRareData()); |
| 3748 } | 3748 } |
| 3749 ContainerNode::traceWrappers(visitor); | 3749 ContainerNode::traceWrappers(visitor); |
| 3750 } | 3750 } |
| 3751 | 3751 |
| 3752 } // namespace blink | 3752 } // namespace blink |
| OLD | NEW |