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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 private: | 210 private: |
211 void registerObserver(Document&); | 211 void registerObserver(Document&); |
212 void unregisterObserver(); | 212 void unregisterObserver(); |
213 | 213 |
214 RawPtrWillBeMember<Document> m_document; | 214 RawPtrWillBeMember<Document> m_document; |
215 }; | 215 }; |
216 | 216 |
217 class Document : public ContainerNode, public TreeScope, public SecurityContext,
public ExecutionContext, public ExecutionContextClient | 217 class Document : public ContainerNode, public TreeScope, public SecurityContext,
public ExecutionContext, public ExecutionContextClient |
218 , public DocumentSupplementable, public LifecycleContext<Document> { | 218 , public DocumentSupplementable, public LifecycleContext<Document> { |
| 219 DEFINE_WRAPPERTYPEINFO(); |
219 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); | 220 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); |
220 public: | 221 public: |
221 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ
er = DocumentInit()) | 222 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ
er = DocumentInit()) |
222 { | 223 { |
223 return adoptRefWillBeNoop(new Document(initializer)); | 224 return adoptRefWillBeNoop(new Document(initializer)); |
224 } | 225 } |
225 virtual ~Document(); | 226 virtual ~Document(); |
226 | 227 |
227 MediaQueryMatcher& mediaQueryMatcher(); | 228 MediaQueryMatcher& mediaQueryMatcher(); |
228 | 229 |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 | 1034 |
1034 void updateStyleInvalidationIfNeeded(); | 1035 void updateStyleInvalidationIfNeeded(); |
1035 | 1036 |
1036 virtual void trace(Visitor*) OVERRIDE; | 1037 virtual void trace(Visitor*) OVERRIDE; |
1037 | 1038 |
1038 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } | 1039 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } |
1039 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } | 1040 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } |
1040 | 1041 |
1041 AtomicString convertLocalName(const AtomicString&); | 1042 AtomicString convertLocalName(const AtomicString&); |
1042 | 1043 |
| 1044 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) OVERRIDE; |
| 1045 |
1043 protected: | 1046 protected: |
1044 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1047 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1045 | 1048 |
1046 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; | 1049 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; |
1047 | 1050 |
1048 void clearXMLVersion() { m_xmlVersion = String(); } | 1051 void clearXMLVersion() { m_xmlVersion = String(); } |
1049 | 1052 |
1050 #if !ENABLE(OILPAN) | 1053 #if !ENABLE(OILPAN) |
1051 virtual void dispose() OVERRIDE; | 1054 virtual void dispose() OVERRIDE; |
1052 #endif | 1055 #endif |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 Node* eventTargetNodeForDocument(Document*); | 1413 Node* eventTargetNodeForDocument(Document*); |
1411 | 1414 |
1412 } // namespace blink | 1415 } // namespace blink |
1413 | 1416 |
1414 #ifndef NDEBUG | 1417 #ifndef NDEBUG |
1415 // Outside the WebCore namespace for ease of invocation from gdb. | 1418 // Outside the WebCore namespace for ease of invocation from gdb. |
1416 void showLiveDocumentInstances(); | 1419 void showLiveDocumentInstances(); |
1417 #endif | 1420 #endif |
1418 | 1421 |
1419 #endif // Document_h | 1422 #endif // Document_h |
OLD | NEW |