| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 HTMLDocumentClass = 1, | 200 HTMLDocumentClass = 1, |
| 201 XHTMLDocumentClass = 1 << 1, | 201 XHTMLDocumentClass = 1 << 1, |
| 202 ImageDocumentClass = 1 << 2, | 202 ImageDocumentClass = 1 << 2, |
| 203 PluginDocumentClass = 1 << 3, | 203 PluginDocumentClass = 1 << 3, |
| 204 MediaDocumentClass = 1 << 4, | 204 MediaDocumentClass = 1 << 4, |
| 205 SVGDocumentClass = 1 << 5, | 205 SVGDocumentClass = 1 << 5, |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 typedef unsigned char DocumentClassFlags; | 208 typedef unsigned char DocumentClassFlags; |
| 209 | 209 |
| 210 class Document : public ContainerNode, public TreeScope, public ExecutionContext
, public DocumentSupplementable { | 210 class Document : public ContainerNode, public TreeScope, public ExecutionContext
, public ExecutionContextClient, public DocumentSupplementable { |
| 211 public: | 211 public: |
| 212 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen
tInit()) | 212 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen
tInit()) |
| 213 { | 213 { |
| 214 return adoptRef(new Document(initializer)); | 214 return adoptRef(new Document(initializer)); |
| 215 } | 215 } |
| 216 static PassRefPtr<Document> createXHTML(const DocumentInit& initializer = Do
cumentInit()) | 216 static PassRefPtr<Document> createXHTML(const DocumentInit& initializer = Do
cumentInit()) |
| 217 { | 217 { |
| 218 return adoptRef(new Document(initializer, XHTMLDocumentClass)); | 218 return adoptRef(new Document(initializer, XHTMLDocumentClass)); |
| 219 } | 219 } |
| 220 virtual ~Document(); | 220 virtual ~Document(); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 void setBaseURLOverride(const KURL&); | 570 void setBaseURLOverride(const KURL&); |
| 571 const KURL& baseURLOverride() const { return m_baseURLOverride; } | 571 const KURL& baseURLOverride() const { return m_baseURLOverride; } |
| 572 const KURL& baseElementURL() const { return m_baseElementURL; } | 572 const KURL& baseElementURL() const { return m_baseElementURL; } |
| 573 const String& baseTarget() const { return m_baseTarget; } | 573 const String& baseTarget() const { return m_baseTarget; } |
| 574 void processBaseElement(); | 574 void processBaseElement(); |
| 575 | 575 |
| 576 KURL completeURL(const String&) const; | 576 KURL completeURL(const String&) const; |
| 577 KURL completeURL(const String&, const KURL& baseURLOverride) const; | 577 KURL completeURL(const String&, const KURL& baseURLOverride) const; |
| 578 | 578 |
| 579 virtual String userAgent(const KURL&) const; | 579 virtual String userAgent(const KURL&) const; |
| 580 | |
| 581 virtual void disableEval(const String& errorMessage); | 580 virtual void disableEval(const String& errorMessage); |
| 582 | 581 |
| 583 bool canNavigate(Frame* targetFrame); | 582 bool canNavigate(Frame* targetFrame); |
| 584 Frame* findUnsafeParentScrollPropagationBoundary(); | 583 Frame* findUnsafeParentScrollPropagationBoundary(); |
| 585 | 584 |
| 586 CSSStyleSheet* elementSheet(); | 585 CSSStyleSheet* elementSheet(); |
| 587 | 586 |
| 588 virtual PassRefPtr<DocumentParser> createParser(); | 587 virtual PassRefPtr<DocumentParser> createParser(); |
| 589 DocumentParser* parser() const { return m_parser.get(); } | 588 DocumentParser* parser() const { return m_parser.get(); } |
| 590 ScriptableDocumentParser* scriptableDocumentParser() const; | 589 ScriptableDocumentParser* scriptableDocumentParser() const; |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 inline bool Node::isDocumentNode() const | 1410 inline bool Node::isDocumentNode() const |
| 1412 { | 1411 { |
| 1413 return this == documentInternal(); | 1412 return this == documentInternal(); |
| 1414 } | 1413 } |
| 1415 | 1414 |
| 1416 Node* eventTargetNodeForDocument(Document*); | 1415 Node* eventTargetNodeForDocument(Document*); |
| 1417 | 1416 |
| 1418 } // namespace WebCore | 1417 } // namespace WebCore |
| 1419 | 1418 |
| 1420 #endif // Document_h | 1419 #endif // Document_h |
| OLD | NEW |