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 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2794 updateId(oldValue, newValue); | 2794 updateId(oldValue, newValue); |
2795 } else if (name == HTMLNames::nameAttr) { | 2795 } else if (name == HTMLNames::nameAttr) { |
2796 updateName(oldValue, newValue); | 2796 updateName(oldValue, newValue); |
2797 } else if (name == HTMLNames::forAttr && isHTMLLabelElement(*this)) { | 2797 } else if (name == HTMLNames::forAttr && isHTMLLabelElement(*this)) { |
2798 TreeScope& scope = treeScope(); | 2798 TreeScope& scope = treeScope(); |
2799 if (scope.shouldCacheLabelsByForAttribute()) | 2799 if (scope.shouldCacheLabelsByForAttribute()) |
2800 updateLabel(scope, oldValue, newValue); | 2800 updateLabel(scope, oldValue, newValue); |
2801 } | 2801 } |
2802 | 2802 |
2803 if (oldValue != newValue) { | 2803 if (oldValue != newValue) { |
2804 if (inActiveDocument()) | 2804 if (inActiveDocument() && document().styleResolver() && styleChangeType( ) < SubtreeStyleChange) |
ojan
2014/05/08 19:14:56
We chatted about this in person. I'm not sure the
esprehn
2014/05/08 19:17:56
Yeah it doesn't seem like we do that anymore, want
| |
2805 document().ensureStyleResolver().ensureUpdatedRuleFeatureSet().sched uleStyleInvalidationForAttributeChange(name, *this); | 2805 document().ensureStyleResolver().ensureUpdatedRuleFeatureSet().sched uleStyleInvalidationForAttributeChange(name, *this); |
2806 | 2806 |
2807 if (isUpgradedCustomElement()) | 2807 if (isUpgradedCustomElement()) |
2808 CustomElement::attributeDidChange(this, name.localName(), oldValue, newValue); | 2808 CustomElement::attributeDidChange(this, name.localName(), oldValue, newValue); |
2809 } | 2809 } |
2810 | 2810 |
2811 if (OwnPtrWillBeRawPtr<MutationObserverInterestGroup> recipients = MutationO bserverInterestGroup::createForAttributesMutation(*this, name)) | 2811 if (OwnPtrWillBeRawPtr<MutationObserverInterestGroup> recipients = MutationO bserverInterestGroup::createForAttributesMutation(*this, name)) |
2812 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this, name, oldValue)); | 2812 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this, name, oldValue)); |
2813 | 2813 |
2814 InspectorInstrumentation::willModifyDOMAttr(this, oldValue, newValue); | 2814 InspectorInstrumentation::willModifyDOMAttr(this, oldValue, newValue); |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3298 void Element::trace(Visitor* visitor) | 3298 void Element::trace(Visitor* visitor) |
3299 { | 3299 { |
3300 // FIXME: Oilpan: Perform this tracing directly on the element | 3300 // FIXME: Oilpan: Perform this tracing directly on the element |
3301 // rare data once that is in the heap. | 3301 // rare data once that is in the heap. |
3302 if (hasRareData()) | 3302 if (hasRareData()) |
3303 elementRareData()->trace(visitor); | 3303 elementRareData()->trace(visitor); |
3304 ContainerNode::trace(visitor); | 3304 ContainerNode::trace(visitor); |
3305 } | 3305 } |
3306 | 3306 |
3307 } // namespace WebCore | 3307 } // namespace WebCore |
OLD | NEW |