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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow,
ExceptionState&); | 466 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow,
ExceptionState&); |
467 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow,
PassRefPtr<NodeFilter>, ExceptionState&); | 467 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow,
PassRefPtr<NodeFilter>, ExceptionState&); |
468 | 468 |
469 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&); | 469 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&); |
470 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc
eptionState&); | 470 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc
eptionState&); |
471 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas
sRefPtr<NodeFilter>, ExceptionState&); | 471 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas
sRefPtr<NodeFilter>, ExceptionState&); |
472 | 472 |
473 // Special support for editing | 473 // Special support for editing |
474 PassRefPtr<Text> createEditingTextNode(const String&); | 474 PassRefPtr<Text> createEditingTextNode(const String&); |
475 | 475 |
476 void setStyleDependentState(RenderStyle* documentStyle); | 476 void setupFontBuilder(RenderStyle* documentStyle); |
477 | 477 |
478 void updateStyleIfNeeded(); | 478 void updateStyleIfNeeded(); |
479 void updateStyleForNodeIfNeeded(Node*); | 479 void updateStyleForNodeIfNeeded(Node*); |
480 void updateLayout(); | 480 void updateLayout(); |
481 enum RunPostLayoutTasks { | 481 enum RunPostLayoutTasks { |
482 RunPostLayoutTasksAsyhnchronously, | 482 RunPostLayoutTasksAsyhnchronously, |
483 RunPostLayoutTasksSynchronously, | 483 RunPostLayoutTasksSynchronously, |
484 }; | 484 }; |
485 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout
TasksAsyhnchronously); | 485 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout
TasksAsyhnchronously); |
486 void partialUpdateLayoutIgnorePendingStylesheets(Node*); | 486 void partialUpdateLayoutIgnorePendingStylesheets(Node*); |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 | 774 |
775 // Checks to make sure prefix and namespace do not conflict (per DOM Core 3) | 775 // Checks to make sure prefix and namespace do not conflict (per DOM Core 3) |
776 static bool hasValidNamespaceForElements(const QualifiedName&); | 776 static bool hasValidNamespaceForElements(const QualifiedName&); |
777 static bool hasValidNamespaceForAttributes(const QualifiedName&); | 777 static bool hasValidNamespaceForAttributes(const QualifiedName&); |
778 | 778 |
779 HTMLElement* body() const; | 779 HTMLElement* body() const; |
780 void setBody(PassRefPtr<HTMLElement>, ExceptionState&); | 780 void setBody(PassRefPtr<HTMLElement>, ExceptionState&); |
781 | 781 |
782 HTMLHeadElement* head(); | 782 HTMLHeadElement* head(); |
783 | 783 |
| 784 // Decide which element is to define the viewport's overflow policy. If |roo
tStyle| is set, use |
| 785 // that as the style for the root element, rather than obtaining it on our o
wn. The reason for |
| 786 // this is that style may not have been associated with the elements yet - i
n which case it may |
| 787 // have been calculated on the fly (without associating it with the actual e
lement) somewhere. |
| 788 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const; |
| 789 |
784 DocumentMarkerController* markers() const { return m_markers.get(); } | 790 DocumentMarkerController* markers() const { return m_markers.get(); } |
785 | 791 |
786 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument
Element; } | 792 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument
Element; } |
787 bool writingModeSetOnDocumentElement() const { return m_writingModeSetOnDocu
mentElement; } | 793 bool writingModeSetOnDocumentElement() const { return m_writingModeSetOnDocu
mentElement; } |
788 void setDirectionSetOnDocumentElement(bool b) { m_directionSetOnDocumentElem
ent = b; } | 794 void setDirectionSetOnDocumentElement(bool b) { m_directionSetOnDocumentElem
ent = b; } |
789 void setWritingModeSetOnDocumentElement(bool b) { m_writingModeSetOnDocument
Element = b; } | 795 void setWritingModeSetOnDocumentElement(bool b) { m_writingModeSetOnDocument
Element = b; } |
790 | 796 |
791 bool execCommand(const String& command, bool userInterface = false, const St
ring& value = String()); | 797 bool execCommand(const String& command, bool userInterface = false, const St
ring& value = String()); |
792 bool queryCommandEnabled(const String& command); | 798 bool queryCommandEnabled(const String& command); |
793 bool queryCommandIndeterm(const String& command); | 799 bool queryCommandIndeterm(const String& command); |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 inline bool Node::isDocumentNode() const | 1397 inline bool Node::isDocumentNode() const |
1392 { | 1398 { |
1393 return this == document(); | 1399 return this == document(); |
1394 } | 1400 } |
1395 | 1401 |
1396 Node* eventTargetNodeForDocument(Document*); | 1402 Node* eventTargetNodeForDocument(Document*); |
1397 | 1403 |
1398 } // namespace WebCore | 1404 } // namespace WebCore |
1399 | 1405 |
1400 #endif // Document_h | 1406 #endif // Document_h |
OLD | NEW |