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 3515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3526 ASSERT(isStyledElement()); | 3526 ASSERT(isStyledElement()); |
3527 style->setProperty(propertyID, cssValuePool().createValue(value, unit)); | 3527 style->setProperty(propertyID, cssValuePool().createValue(value, unit)); |
3528 } | 3528 } |
3529 | 3529 |
3530 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s
tyle, CSSPropertyID propertyID, const String& value) | 3530 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet* s
tyle, CSSPropertyID propertyID, const String& value) |
3531 { | 3531 { |
3532 ASSERT(isStyledElement()); | 3532 ASSERT(isStyledElement()); |
3533 style->setProperty(propertyID, value, false); | 3533 style->setProperty(propertyID, value, false); |
3534 } | 3534 } |
3535 | 3535 |
| 3536 void Element::addPropertyToPresentationAttributeStyle(MutableStylePropertySet*
style, CSSPropertyID propertyID, PassRefPtrWillBeRawPtr<CSSValue> value) |
| 3537 { |
| 3538 ASSERT(isStyledElement()); |
| 3539 style->setProperty(propertyID, value); |
| 3540 } |
| 3541 |
3536 bool Element::supportsStyleSharing() const | 3542 bool Element::supportsStyleSharing() const |
3537 { | 3543 { |
3538 if (!isStyledElement() || !parentOrShadowHostElement()) | 3544 if (!isStyledElement() || !parentOrShadowHostElement()) |
3539 return false; | 3545 return false; |
3540 // If the element has inline style it is probably unique. | 3546 // If the element has inline style it is probably unique. |
3541 if (inlineStyle()) | 3547 if (inlineStyle()) |
3542 return false; | 3548 return false; |
3543 if (isSVGElement() && toSVGElement(this)->animatedSMILStyleProperties()) | 3549 if (isSVGElement() && toSVGElement(this)->animatedSMILStyleProperties()) |
3544 return false; | 3550 return false; |
3545 // Ids stop style sharing if they show up in the stylesheets. | 3551 // Ids stop style sharing if they show up in the stylesheets. |
(...skipping 21 matching lines...) Expand all Loading... |
3567 { | 3573 { |
3568 #if ENABLE(OILPAN) | 3574 #if ENABLE(OILPAN) |
3569 if (hasRareData()) | 3575 if (hasRareData()) |
3570 visitor->trace(elementRareData()); | 3576 visitor->trace(elementRareData()); |
3571 visitor->trace(m_elementData); | 3577 visitor->trace(m_elementData); |
3572 #endif | 3578 #endif |
3573 ContainerNode::trace(visitor); | 3579 ContainerNode::trace(visitor); |
3574 } | 3580 } |
3575 | 3581 |
3576 } // namespace blink | 3582 } // namespace blink |
OLD | NEW |