| 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 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2925 } | 2925 } |
| 2926 | 2926 |
| 2927 if (oldValue != newValue) { | 2927 if (oldValue != newValue) { |
| 2928 if (inActiveDocument() && hasSelectorForAttribute(&document(), name.loca
lName())) | 2928 if (inActiveDocument() && hasSelectorForAttribute(&document(), name.loca
lName())) |
| 2929 setNeedsStyleRecalc(); | 2929 setNeedsStyleRecalc(); |
| 2930 | 2930 |
| 2931 if (isUpgradedCustomElement()) | 2931 if (isUpgradedCustomElement()) |
| 2932 CustomElement::attributeDidChange(this, name.localName(), oldValue,
newValue); | 2932 CustomElement::attributeDidChange(this, name.localName(), oldValue,
newValue); |
| 2933 } | 2933 } |
| 2934 | 2934 |
| 2935 if (OwnPtr<MutationObserverInterestGroup> recipients = MutationObserverInter
estGroup::createForAttributesMutation(this, name)) | 2935 if (OwnPtr<MutationObserverInterestGroup> recipients = MutationObserverInter
estGroup::createForAttributesMutation(*this, name)) |
| 2936 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this,
name, oldValue)); | 2936 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this,
name, oldValue)); |
| 2937 | 2937 |
| 2938 InspectorInstrumentation::willModifyDOMAttr(this, oldValue, newValue); | 2938 InspectorInstrumentation::willModifyDOMAttr(this, oldValue, newValue); |
| 2939 } | 2939 } |
| 2940 | 2940 |
| 2941 void Element::didAddAttribute(const QualifiedName& name, const AtomicString& val
ue) | 2941 void Element::didAddAttribute(const QualifiedName& name, const AtomicString& val
ue) |
| 2942 { | 2942 { |
| 2943 attributeChanged(name, value); | 2943 attributeChanged(name, value); |
| 2944 InspectorInstrumentation::didModifyDOMAttr(this, name.localName(), value); | 2944 InspectorInstrumentation::didModifyDOMAttr(this, name.localName(), value); |
| 2945 dispatchSubtreeModifiedEvent(); | 2945 dispatchSubtreeModifiedEvent(); |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3425 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3425 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3426 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3426 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3427 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3427 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3428 return false; | 3428 return false; |
| 3429 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3429 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3430 return false; | 3430 return false; |
| 3431 return true; | 3431 return true; |
| 3432 } | 3432 } |
| 3433 | 3433 |
| 3434 } // namespace WebCore | 3434 } // namespace WebCore |
| OLD | NEW |