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 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 3784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3795 { | 3795 { |
3796 for (Range* range : m_ranges) | 3796 for (Range* range : m_ranges) |
3797 range->didSplitTextNode(oldNode); | 3797 range->didSplitTextNode(oldNode); |
3798 | 3798 |
3799 if (m_frame) | 3799 if (m_frame) |
3800 m_frame->selection().didSplitTextNode(oldNode); | 3800 m_frame->selection().didSplitTextNode(oldNode); |
3801 | 3801 |
3802 // FIXME: This should update markers for spelling and grammar checking. | 3802 // FIXME: This should update markers for spelling and grammar checking. |
3803 } | 3803 } |
3804 | 3804 |
3805 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa
ssRefPtr<EventListener> listener) | 3805 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa
ssRefPtrWillBeRawPtr<EventListener> listener) |
3806 { | 3806 { |
3807 LocalDOMWindow* domWindow = this->domWindow(); | 3807 LocalDOMWindow* domWindow = this->domWindow(); |
3808 if (!domWindow) | 3808 if (!domWindow) |
3809 return; | 3809 return; |
3810 domWindow->setAttributeEventListener(eventType, listener); | 3810 domWindow->setAttributeEventListener(eventType, listener); |
3811 } | 3811 } |
3812 | 3812 |
3813 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve
ntType) | 3813 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve
ntType) |
3814 { | 3814 { |
3815 LocalDOMWindow* domWindow = this->domWindow(); | 3815 LocalDOMWindow* domWindow = this->domWindow(); |
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5788 #ifndef NDEBUG | 5788 #ifndef NDEBUG |
5789 using namespace blink; | 5789 using namespace blink; |
5790 void showLiveDocumentInstances() | 5790 void showLiveDocumentInstances() |
5791 { | 5791 { |
5792 WeakDocumentSet& set = liveDocumentSet(); | 5792 WeakDocumentSet& set = liveDocumentSet(); |
5793 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5793 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5794 for (Document* document : set) | 5794 for (Document* document : set) |
5795 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5795 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5796 } | 5796 } |
5797 #endif | 5797 #endif |
OLD | NEW |