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 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3739 ensureScriptedAnimationController().enqueuePerFrameEvent(scrollEvent.release
()); | 3739 ensureScriptedAnimationController().enqueuePerFrameEvent(scrollEvent.release
()); |
3740 } | 3740 } |
3741 | 3741 |
3742 void Document::enqueueResizeEvent() | 3742 void Document::enqueueResizeEvent() |
3743 { | 3743 { |
3744 RefPtr<Event> event = Event::create(EventTypeNames::resize); | 3744 RefPtr<Event> event = Event::create(EventTypeNames::resize); |
3745 event->setTarget(domWindow()); | 3745 event->setTarget(domWindow()); |
3746 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release()); | 3746 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release()); |
3747 } | 3747 } |
3748 | 3748 |
3749 PassRefPtr<Event> Document::createEvent(const String& eventType, ExceptionState&
exceptionState) | 3749 PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc
eptionState& exceptionState) |
3750 { | 3750 { |
3751 RefPtr<Event> event = EventFactory::create(eventType); | 3751 RefPtrWillBeRawPtr<Event> event = EventFactory::create(eventType); |
3752 if (event) | 3752 if (event) |
3753 return event.release(); | 3753 return event.release(); |
3754 | 3754 |
3755 exceptionState.throwDOMException(NotSupportedError, "The provided event type
('" + eventType + "') is invalid."); | 3755 exceptionState.throwDOMException(NotSupportedError, "The provided event type
('" + eventType + "') is invalid."); |
3756 return nullptr; | 3756 return nullptr; |
3757 } | 3757 } |
3758 | 3758 |
3759 PassRefPtr<Event> Document::createEvent(ExceptionState& exceptionState) | 3759 PassRefPtrWillBeRawPtr<Event> Document::createEvent(ExceptionState& exceptionSta
te) |
3760 { | 3760 { |
3761 if (!isSVGDocument()) { | 3761 if (!isSVGDocument()) { |
3762 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0
)); | 3762 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0
)); |
3763 return nullptr; | 3763 return nullptr; |
3764 } | 3764 } |
3765 | 3765 |
3766 UseCounter::count(this, UseCounter::DocumentCreateEventOptionalArgument); | 3766 UseCounter::count(this, UseCounter::DocumentCreateEventOptionalArgument); |
3767 // Legacy SVGDocument behavior. | 3767 // Legacy SVGDocument behavior. |
3768 return createEvent("undefined", exceptionState); | 3768 return createEvent("undefined", exceptionState); |
3769 } | 3769 } |
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5491 } | 5491 } |
5492 | 5492 |
5493 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5493 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5494 { | 5494 { |
5495 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5495 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5496 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5496 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5497 (*it)->invalidateCache(attrName); | 5497 (*it)->invalidateCache(attrName); |
5498 } | 5498 } |
5499 | 5499 |
5500 } // namespace WebCore | 5500 } // namespace WebCore |
OLD | NEW |