| 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 | 1028 |
| 1028 void updateStyleInvalidationIfNeeded(); | 1029 void updateStyleInvalidationIfNeeded(); |
| 1029 | 1030 |
| 1030 virtual void trace(Visitor*) OVERRIDE; | 1031 virtual void trace(Visitor*) OVERRIDE; |
| 1031 | 1032 |
| 1032 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } | 1033 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } |
| 1033 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } | 1034 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } |
| 1034 | 1035 |
| 1035 AtomicString convertLocalName(const AtomicString&); | 1036 AtomicString convertLocalName(const AtomicString&); |
| 1036 | 1037 |
| 1038 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) OVERRIDE; |
| 1039 |
| 1037 protected: | 1040 protected: |
| 1038 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1041 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1039 | 1042 |
| 1040 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; | 1043 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; |
| 1041 | 1044 |
| 1042 void clearXMLVersion() { m_xmlVersion = String(); } | 1045 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1043 | 1046 |
| 1044 #if !ENABLE(OILPAN) | 1047 #if !ENABLE(OILPAN) |
| 1045 virtual void dispose() OVERRIDE; | 1048 virtual void dispose() OVERRIDE; |
| 1046 #endif | 1049 #endif |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1404 Node* eventTargetNodeForDocument(Document*); | 1407 Node* eventTargetNodeForDocument(Document*); |
| 1405 | 1408 |
| 1406 } // namespace blink | 1409 } // namespace blink |
| 1407 | 1410 |
| 1408 #ifndef NDEBUG | 1411 #ifndef NDEBUG |
| 1409 // Outside the WebCore namespace for ease of invocation from gdb. | 1412 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1410 void showLiveDocumentInstances(); | 1413 void showLiveDocumentInstances(); |
| 1411 #endif | 1414 #endif |
| 1412 | 1415 |
| 1413 #endif // Document_h | 1416 #endif // Document_h |
| OLD | NEW |