| 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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2310 for (AttachedRangeSet::const_iterator it = m_ranges.begin(); it != end;
++it) | 2310 for (AttachedRangeSet::const_iterator it = m_ranges.begin(); it != end;
++it) |
| 2311 (*it)->didSplitTextNode(oldNode); | 2311 (*it)->didSplitTextNode(oldNode); |
| 2312 } | 2312 } |
| 2313 | 2313 |
| 2314 if (m_frame) | 2314 if (m_frame) |
| 2315 m_frame->selection().didSplitTextNode(oldNode); | 2315 m_frame->selection().didSplitTextNode(oldNode); |
| 2316 | 2316 |
| 2317 // FIXME: This should update markers for spelling and grammar checking. | 2317 // FIXME: This should update markers for spelling and grammar checking. |
| 2318 } | 2318 } |
| 2319 | 2319 |
| 2320 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa
ssRefPtr<EventListener> listener) | |
| 2321 { | |
| 2322 LocalDOMWindow* domWindow = this->domWindow(); | |
| 2323 if (!domWindow) | |
| 2324 return; | |
| 2325 domWindow->setAttributeEventListener(eventType, listener); | |
| 2326 } | |
| 2327 | |
| 2328 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve
ntType) | |
| 2329 { | |
| 2330 LocalDOMWindow* domWindow = this->domWindow(); | |
| 2331 if (!domWindow) | |
| 2332 return 0; | |
| 2333 return domWindow->getAttributeEventListener(eventType); | |
| 2334 } | |
| 2335 | |
| 2336 EventQueue* Document::eventQueue() const | 2320 EventQueue* Document::eventQueue() const |
| 2337 { | 2321 { |
| 2338 if (!m_domWindow) | 2322 if (!m_domWindow) |
| 2339 return 0; | 2323 return 0; |
| 2340 return m_domWindow->eventQueue(); | 2324 return m_domWindow->eventQueue(); |
| 2341 } | 2325 } |
| 2342 | 2326 |
| 2343 void Document::enqueueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event> event) | 2327 void Document::enqueueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event> event) |
| 2344 { | 2328 { |
| 2345 ensureScriptedAnimationController().enqueueEvent(event); | 2329 ensureScriptedAnimationController().enqueueEvent(event); |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3289 using namespace blink; | 3273 using namespace blink; |
| 3290 void showLiveDocumentInstances() | 3274 void showLiveDocumentInstances() |
| 3291 { | 3275 { |
| 3292 WeakDocumentSet& set = liveDocumentSet(); | 3276 WeakDocumentSet& set = liveDocumentSet(); |
| 3293 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3277 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 3294 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3278 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 3295 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3279 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 3296 } | 3280 } |
| 3297 } | 3281 } |
| 3298 #endif | 3282 #endif |
| OLD | NEW |