Changeset 215486 in webkit for trunk/Source/WebCore/dom/Document.cpp
- Timestamp:
- Apr 18, 2017, 4:27:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/dom/Document.cpp
r215465 r215486 3994 3994 } 3995 3995 3996 void Document::setAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& attributeValue )3997 { 3998 setAttributeEventListener(eventType, JSLazyEventListener::create(*this, attributeName, attributeValue) );3999 } 4000 4001 void Document::setWindowAttributeEventListener(const AtomicString& eventType, RefPtr<EventListener>&& listener )3996 void Document::setAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& attributeValue, DOMWrapperWorld& isolatedWorld) 3997 { 3998 setAttributeEventListener(eventType, JSLazyEventListener::create(*this, attributeName, attributeValue), isolatedWorld); 3999 } 4000 4001 void Document::setWindowAttributeEventListener(const AtomicString& eventType, RefPtr<EventListener>&& listener, DOMWrapperWorld& isolatedWorld) 4002 4002 { 4003 4003 if (!m_domWindow) 4004 4004 return; 4005 m_domWindow->setAttributeEventListener(eventType, WTFMove(listener) );4006 } 4007 4008 void Document::setWindowAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& attributeValue )4005 m_domWindow->setAttributeEventListener(eventType, WTFMove(listener), isolatedWorld); 4006 } 4007 4008 void Document::setWindowAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& attributeValue, DOMWrapperWorld& isolatedWorld) 4009 4009 { 4010 4010 if (!m_domWindow) 4011 4011 return; 4012 setWindowAttributeEventListener(eventType, JSLazyEventListener::create(*m_domWindow, attributeName, attributeValue) );4013 } 4014 4015 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eventType )4012 setWindowAttributeEventListener(eventType, JSLazyEventListener::create(*m_domWindow, attributeName, attributeValue), isolatedWorld); 4013 } 4014 4015 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eventType, DOMWrapperWorld& isolatedWorld) 4016 4016 { 4017 4017 if (!m_domWindow) 4018 4018 return nullptr; 4019 return m_domWindow->attributeEventListener(eventType );4019 return m_domWindow->attributeEventListener(eventType, isolatedWorld); 4020 4020 } 4021 4021
Note:
See TracChangeset
for help on using the changeset viewer.