| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 ImageDocumentClass = 1 << 2, | 196 ImageDocumentClass = 1 << 2, |
| 197 PluginDocumentClass = 1 << 3, | 197 PluginDocumentClass = 1 << 3, |
| 198 MediaDocumentClass = 1 << 4, | 198 MediaDocumentClass = 1 << 4, |
| 199 SVGDocumentClass = 1 << 5, | 199 SVGDocumentClass = 1 << 5, |
| 200 XMLDocumentClass = 1 << 6, | 200 XMLDocumentClass = 1 << 6, |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 using DocumentClassFlags = unsigned char; | 203 using DocumentClassFlags = unsigned char; |
| 204 | 204 |
| 205 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu
rityContext, public ExecutionContext | 205 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu
rityContext, public ExecutionContext |
| 206 , public WillBeHeapSupplementable<Document>, public DocumentLifecycleNotifie
r { | 206 , public WillBeHeapSupplementable<Document>, public DocumentLifecycleNotifie
r, public DocumentTiming::Observer { |
| 207 DEFINE_WRAPPERTYPEINFO(); | 207 DEFINE_WRAPPERTYPEINFO(); |
| 208 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); | 208 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); |
| 209 public: | 209 public: |
| 210 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ
er = DocumentInit()) | 210 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ
er = DocumentInit()) |
| 211 { | 211 { |
| 212 return adoptRefWillBeNoop(new Document(initializer)); | 212 return adoptRefWillBeNoop(new Document(initializer)); |
| 213 } | 213 } |
| 214 ~Document() override; | 214 ~Document() override; |
| 215 | 215 |
| 216 MediaQueryMatcher& mediaQueryMatcher(); | 216 MediaQueryMatcher& mediaQueryMatcher(); |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 911 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
| 912 void decrementLoadEventDelayCount(); | 912 void decrementLoadEventDelayCount(); |
| 913 void checkLoadEventSoon(); | 913 void checkLoadEventSoon(); |
| 914 bool isDelayingLoadEvent(); | 914 bool isDelayingLoadEvent(); |
| 915 void loadPluginsSoon(); | 915 void loadPluginsSoon(); |
| 916 | 916 |
| 917 PassRefPtrWillBeRawPtr<Touch> createTouch(DOMWindow*, EventTarget*, int iden
tifier, double pageX, double pageY, double screenX, double screenY, double radiu
sX, double radiusY, float rotationAngle, float force) const; | 917 PassRefPtrWillBeRawPtr<Touch> createTouch(DOMWindow*, EventTarget*, int iden
tifier, double pageX, double pageY, double screenX, double screenY, double radiu
sX, double radiusY, float rotationAngle, float force) const; |
| 918 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil
lBeMember<Touch>>&) const; | 918 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil
lBeMember<Touch>>&) const; |
| 919 | 919 |
| 920 const DocumentTiming& timing() const { return m_documentTiming; } | 920 const DocumentTiming& timing() const { return m_documentTiming; } |
| 921 void onDocumentTimingChanged() const; |
| 921 | 922 |
| 922 int requestAnimationFrame(FrameRequestCallback*); | 923 int requestAnimationFrame(FrameRequestCallback*); |
| 923 void cancelAnimationFrame(int id); | 924 void cancelAnimationFrame(int id); |
| 924 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 925 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
| 925 | 926 |
| 926 EventTarget* errorEventTarget() final; | 927 EventTarget* errorEventTarget() final; |
| 927 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) final; | 928 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) final; |
| 928 | 929 |
| 929 void initDNSPrefetch(); | 930 void initDNSPrefetch(); |
| 930 | 931 |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1440 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1440 | 1441 |
| 1441 } // namespace blink | 1442 } // namespace blink |
| 1442 | 1443 |
| 1443 #ifndef NDEBUG | 1444 #ifndef NDEBUG |
| 1444 // Outside the WebCore namespace for ease of invocation from gdb. | 1445 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1445 CORE_EXPORT void showLiveDocumentInstances(); | 1446 CORE_EXPORT void showLiveDocumentInstances(); |
| 1446 #endif | 1447 #endif |
| 1447 | 1448 |
| 1448 #endif // Document_h | 1449 #endif // Document_h |
| OLD | NEW |