Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 149803005: Remove isolated world parameters from event listener attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/MessagePort.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 3686 matching lines...) Expand 10 before | Expand all | Expand 10 after
3697 for (HashSet<Range*>::const_iterator it = m_ranges.begin(); it != end; + +it) 3697 for (HashSet<Range*>::const_iterator it = m_ranges.begin(); it != end; + +it)
3698 (*it)->didSplitTextNode(oldNode); 3698 (*it)->didSplitTextNode(oldNode);
3699 } 3699 }
3700 3700
3701 if (m_frame) 3701 if (m_frame)
3702 m_frame->selection().didSplitTextNode(*oldNode); 3702 m_frame->selection().didSplitTextNode(*oldNode);
3703 3703
3704 // FIXME: This should update markers for spelling and grammar checking. 3704 // FIXME: This should update markers for spelling and grammar checking.
3705 } 3705 }
3706 3706
3707 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa ssRefPtr<EventListener> listener, DOMWrapperWorld* isolatedWorld) 3707 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa ssRefPtr<EventListener> listener)
3708 { 3708 {
3709 DOMWindow* domWindow = this->domWindow(); 3709 DOMWindow* domWindow = this->domWindow();
3710 if (!domWindow) 3710 if (!domWindow)
3711 return; 3711 return;
3712 domWindow->setAttributeEventListener(eventType, listener, isolatedWorld); 3712 domWindow->setAttributeEventListener(eventType, listener);
3713 } 3713 }
3714 3714
3715 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve ntType, DOMWrapperWorld* isolatedWorld) 3715 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve ntType)
3716 { 3716 {
3717 DOMWindow* domWindow = this->domWindow(); 3717 DOMWindow* domWindow = this->domWindow();
3718 if (!domWindow) 3718 if (!domWindow)
3719 return 0; 3719 return 0;
3720 return domWindow->getAttributeEventListener(eventType, isolatedWorld); 3720 return domWindow->getAttributeEventListener(eventType);
3721 } 3721 }
3722 3722
3723 EventQueue* Document::eventQueue() const 3723 EventQueue* Document::eventQueue() const
3724 { 3724 {
3725 if (!m_domWindow) 3725 if (!m_domWindow)
3726 return 0; 3726 return 0;
3727 return m_domWindow->eventQueue(); 3727 return m_domWindow->eventQueue();
3728 } 3728 }
3729 3729
3730 void Document::enqueueAnimationFrameEvent(PassRefPtr<Event> event) 3730 void Document::enqueueAnimationFrameEvent(PassRefPtr<Event> event)
(...skipping 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
5448 void Document::defaultEventHandler(Event* event) 5448 void Document::defaultEventHandler(Event* event)
5449 { 5449 {
5450 if (frame() && frame()->remotePlatformLayer()) { 5450 if (frame() && frame()->remotePlatformLayer()) {
5451 frame()->chromeClient().forwardInputEvent(this, event); 5451 frame()->chromeClient().forwardInputEvent(this, event);
5452 return; 5452 return;
5453 } 5453 }
5454 Node::defaultEventHandler(event); 5454 Node::defaultEventHandler(event);
5455 } 5455 }
5456 5456
5457 } // namespace WebCore 5457 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/MessagePort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698