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, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 DOMSUBTREEMODIFIED_LISTENER = 1, | 347 DOMSUBTREEMODIFIED_LISTENER = 1, |
348 DOMNODEINSERTED_LISTENER = 1 << 1, | 348 DOMNODEINSERTED_LISTENER = 1 << 1, |
349 DOMNODEREMOVED_LISTENER = 1 << 2, | 349 DOMNODEREMOVED_LISTENER = 1 << 2, |
350 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, | 350 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, |
351 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, | 351 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, |
352 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, | 352 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, |
353 ANIMATIONEND_LISTENER = 1 << 6, | 353 ANIMATIONEND_LISTENER = 1 << 6, |
354 ANIMATIONSTART_LISTENER = 1 << 7, | 354 ANIMATIONSTART_LISTENER = 1 << 7, |
355 ANIMATIONITERATION_LISTENER = 1 << 8, | 355 ANIMATIONITERATION_LISTENER = 1 << 8, |
356 TRANSITIONEND_LISTENER = 1 << 9, | 356 TRANSITIONEND_LISTENER = 1 << 9, |
357 SCROLL_LISTENER = 1 << 10, | |
358 }; | 357 }; |
359 | 358 |
360 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } | 359 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } |
361 void addListenerTypeIfNeeded(const AtomicString& eventType); | 360 void addListenerTypeIfNeeded(const AtomicString& eventType); |
362 | 361 |
363 bool hasMutationObserversOfType(MutationObserver::MutationType type) const | 362 bool hasMutationObserversOfType(MutationObserver::MutationType type) const |
364 { | 363 { |
365 return m_mutationObserverTypes & type; | 364 return m_mutationObserverTypes & type; |
366 } | 365 } |
367 bool hasMutationObservers() const { return m_mutationObserverTypes; } | 366 bool hasMutationObservers() const { return m_mutationObserverTypes; } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } | 426 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } |
428 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } | 427 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } |
429 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres
s; } | 428 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres
s; } |
430 | 429 |
431 virtual bool isContextThread() const override final; | 430 virtual bool isContextThread() const override final; |
432 | 431 |
433 bool containsValidityStyleRules() const { return m_containsValidityStyleRule
s; } | 432 bool containsValidityStyleRules() const { return m_containsValidityStyleRule
s; } |
434 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true;
} | 433 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true;
} |
435 | 434 |
436 void enqueueResizeEvent(); | 435 void enqueueResizeEvent(); |
437 void enqueueScrollEventForNode(Node*); | |
438 void enqueueAnimationFrameEvent(PassRefPtr<Event>); | 436 void enqueueAnimationFrameEvent(PassRefPtr<Event>); |
439 // Only one event for a target/event type combination will be dispatched per
frame. | 437 // Only one event for a target/event type combination will be dispatched per
frame. |
440 void enqueueUniqueAnimationFrameEvent(PassRefPtr<Event>); | 438 void enqueueUniqueAnimationFrameEvent(PassRefPtr<Event>); |
441 void enqueueMediaQueryChangeListeners(Vector<RefPtr<MediaQueryListListener>
>&); | 439 void enqueueMediaQueryChangeListeners(Vector<RefPtr<MediaQueryListListener>
>&); |
442 | 440 |
443 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. | 441 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. |
444 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 442 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
445 void decrementLoadEventDelayCount(); | 443 void decrementLoadEventDelayCount(); |
446 void checkLoadEventSoon(); | 444 void checkLoadEventSoon(); |
447 bool isDelayingLoadEvent(); | 445 bool isDelayingLoadEvent(); |
(...skipping 14 matching lines...) Expand all Loading... |
462 | 460 |
463 void setImportsController(HTMLImportsController*); | 461 void setImportsController(HTMLImportsController*); |
464 HTMLImportsController* importsController() const { return m_importsControlle
r; } | 462 HTMLImportsController* importsController() const { return m_importsControlle
r; } |
465 HTMLImportsController& ensureImportsController(); | 463 HTMLImportsController& ensureImportsController(); |
466 HTMLImportLoader* importLoader() const; | 464 HTMLImportLoader* importLoader() const; |
467 HTMLImport* import() const; | 465 HTMLImport* import() const; |
468 | 466 |
469 bool haveImportsLoaded() const; | 467 bool haveImportsLoaded() const; |
470 void didLoadAllImports(); | 468 void didLoadAllImports(); |
471 | 469 |
472 void adjustFloatQuadsForScroll(Vector<FloatQuad>&); | |
473 void adjustFloatRectForScroll(FloatRect&); | |
474 | |
475 unsigned activeParserCount() { return m_activeParserCount; } | 470 unsigned activeParserCount() { return m_activeParserCount; } |
476 void incrementActiveParserCount() { ++m_activeParserCount; } | 471 void incrementActiveParserCount() { ++m_activeParserCount; } |
477 void decrementActiveParserCount(); | 472 void decrementActiveParserCount(); |
478 | 473 |
479 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } | 474 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } |
480 | 475 |
481 void didLoadAllParserBlockingResources(); | 476 void didLoadAllParserBlockingResources(); |
482 | 477 |
483 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } | 478 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } |
484 | 479 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 Node* eventTargetNodeForDocument(Document*); | 734 Node* eventTargetNodeForDocument(Document*); |
740 | 735 |
741 } // namespace blink | 736 } // namespace blink |
742 | 737 |
743 #ifndef NDEBUG | 738 #ifndef NDEBUG |
744 // Outside the WebCore namespace for ease of invocation from gdb. | 739 // Outside the WebCore namespace for ease of invocation from gdb. |
745 void showLiveDocumentInstances(); | 740 void showLiveDocumentInstances(); |
746 #endif | 741 #endif |
747 | 742 |
748 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 743 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
OLD | NEW |