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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
467 | 467 |
468 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&); | 468 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&); |
469 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionState&); | 469 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionState&); |
470 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas sRefPtr<NodeFilter>, ExceptionState&); | 470 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas sRefPtr<NodeFilter>, ExceptionState&); |
471 | 471 |
472 // Special support for editing | 472 // Special support for editing |
473 PassRefPtr<Text> createEditingTextNode(const String&); | 473 PassRefPtr<Text> createEditingTextNode(const String&); |
474 | 474 |
475 void setupFontBuilder(RenderStyle* documentStyle); | 475 void setupFontBuilder(RenderStyle* documentStyle); |
476 | 476 |
477 void updateStyleIfNeeded(); | 477 void updateStyleIfNeeded() { updateRenderTree(NoChange); } |
478 void updateStyleForNodeIfNeeded(Node*); | 478 void updateStyleForNodeIfNeeded(Node*); |
ojan
2014/03/25 23:39:11
Shouldn't these two also be renamed?
esprehn
2014/03/25 23:51:14
Sure, I didn't want to touch so many files, but I
| |
479 void updateLayout(); | 479 void updateLayout(); |
480 enum RunPostLayoutTasks { | 480 enum RunPostLayoutTasks { |
481 RunPostLayoutTasksAsyhnchronously, | 481 RunPostLayoutTasksAsyhnchronously, |
482 RunPostLayoutTasksSynchronously, | 482 RunPostLayoutTasksSynchronously, |
483 }; | 483 }; |
484 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout TasksAsyhnchronously); | 484 void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayout TasksAsyhnchronously); |
485 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); | 485 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); |
486 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 486 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
487 | 487 |
488 void updateDistributionForNodeIfNeeded(Node*); | 488 void updateDistributionForNodeIfNeeded(Node*); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
598 }; | 598 }; |
599 void setReadyState(ReadyState); | 599 void setReadyState(ReadyState); |
600 bool isLoadCompleted(); | 600 bool isLoadCompleted(); |
601 | 601 |
602 void setParsing(bool); | 602 void setParsing(bool); |
603 bool parsing() const { return m_isParsing; } | 603 bool parsing() const { return m_isParsing; } |
604 | 604 |
605 void setHistoryItemDocumentStateDirty(bool dirty) { m_historyItemDocumentSta teDirty = dirty; } | 605 void setHistoryItemDocumentStateDirty(bool dirty) { m_historyItemDocumentSta teDirty = dirty; } |
606 bool historyItemDocumentStateDirty() const { return m_historyItemDocumentSta teDirty; } | 606 bool historyItemDocumentStateDirty() const { return m_historyItemDocumentSta teDirty; } |
607 | 607 |
608 bool shouldScheduleLayout(); | 608 bool shouldScheduleLayout() const; |
609 bool shouldParserYieldAgressivelyBeforeScriptExecution(); | 609 bool shouldParserYieldAgressivelyBeforeScriptExecution(); |
610 int elapsedTime() const; | 610 int elapsedTime() const; |
611 | 611 |
612 TextLinkColors& textLinkColors() { return m_textLinkColors; } | 612 TextLinkColors& textLinkColors() { return m_textLinkColors; } |
613 VisitedLinkState& visitedLinkState() const { return *m_visitedLinkState; } | 613 VisitedLinkState& visitedLinkState() const { return *m_visitedLinkState; } |
614 | 614 |
615 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&); | 615 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&); |
616 | 616 |
617 /* Newly proposed CSS3 mechanism for selecting alternate | 617 /* Newly proposed CSS3 mechanism for selecting alternate |
618 stylesheets using the DOM. May be subject to change as | 618 stylesheets using the DOM. May be subject to change as |
(...skipping 20 matching lines...) Expand all Loading... | |
639 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); | 639 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); |
640 void hoveredNodeDetached(Node*); | 640 void hoveredNodeDetached(Node*); |
641 void activeChainNodeDetached(Node*); | 641 void activeChainNodeDetached(Node*); |
642 | 642 |
643 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0); | 643 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0); |
644 | 644 |
645 // Updates for :target (CSS3 selector). | 645 // Updates for :target (CSS3 selector). |
646 void setCSSTarget(Element*); | 646 void setCSSTarget(Element*); |
647 Element* cssTarget() const { return m_cssTarget; } | 647 Element* cssTarget() const { return m_cssTarget; } |
648 | 648 |
649 void scheduleStyleRecalc(); | 649 void scheduleRenderTreeUpdate(); |
650 bool hasPendingForcedStyleRecalc() const; | 650 bool hasPendingForcedStyleRecalc() const; |
651 | 651 |
652 void registerNodeList(LiveNodeListBase*); | 652 void registerNodeList(LiveNodeListBase*); |
653 void unregisterNodeList(LiveNodeListBase*); | 653 void unregisterNodeList(LiveNodeListBase*); |
654 void incrementNodeListWithIdNameCacheCount(); | 654 void incrementNodeListWithIdNameCacheCount(); |
655 void decrementNodeListWithIdNameCacheCount(); | 655 void decrementNodeListWithIdNameCacheCount(); |
656 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = 0) const ; | 656 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = 0) const ; |
657 void invalidateNodeListCaches(const QualifiedName* attrName); | 657 void invalidateNodeListCaches(const QualifiedName* attrName); |
658 | 658 |
659 void attachNodeIterator(NodeIterator*); | 659 void attachNodeIterator(NodeIterator*); |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1078 | 1078 |
1079 ScriptedAnimationController& ensureScriptedAnimationController(); | 1079 ScriptedAnimationController& ensureScriptedAnimationController(); |
1080 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } | 1080 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } |
1081 virtual EventQueue* eventQueue() const OVERRIDE FINAL; | 1081 virtual EventQueue* eventQueue() const OVERRIDE FINAL; |
1082 | 1082 |
1083 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); | 1083 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); |
1084 | 1084 |
1085 bool dirtyElementsForLayerUpdate(); | 1085 bool dirtyElementsForLayerUpdate(); |
1086 void updateDistributionIfNeeded(); | 1086 void updateDistributionIfNeeded(); |
1087 void updateUseShadowTreesIfNeeded(); | 1087 void updateUseShadowTreesIfNeeded(); |
1088 void evaluateMediaQueryListIfNeeded(); | |
1088 | 1089 |
1090 void updateRenderTree(StyleRecalcChange); | |
1089 void updateStyle(StyleRecalcChange); | 1091 void updateStyle(StyleRecalcChange); |
ojan
2014/03/25 23:39:11
Can this be private now?
esprehn
2014/03/25 23:51:14
It is private, this whole block is.
| |
1090 | 1092 |
1091 void detachParser(); | 1093 void detachParser(); |
1092 | 1094 |
1093 virtual bool isDocument() const OVERRIDE FINAL { return true; } | 1095 virtual bool isDocument() const OVERRIDE FINAL { return true; } |
1094 | 1096 |
1095 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 1097 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
1096 | 1098 |
1097 virtual String nodeName() const OVERRIDE FINAL; | 1099 virtual String nodeName() const OVERRIDE FINAL; |
1098 virtual NodeType nodeType() const OVERRIDE FINAL; | 1100 virtual NodeType nodeType() const OVERRIDE FINAL; |
1099 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; | 1101 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1143 void clearFocusedElementTimerFired(Timer<Document>*); | 1145 void clearFocusedElementTimerFired(Timer<Document>*); |
1144 | 1146 |
1145 void processHttpEquivDefaultStyle(const AtomicString& content); | 1147 void processHttpEquivDefaultStyle(const AtomicString& content); |
1146 void processHttpEquivRefresh(const AtomicString& content); | 1148 void processHttpEquivRefresh(const AtomicString& content); |
1147 void processHttpEquivSetCookie(const AtomicString& content); | 1149 void processHttpEquivSetCookie(const AtomicString& content); |
1148 void processHttpEquivXFrameOptions(const AtomicString& content); | 1150 void processHttpEquivXFrameOptions(const AtomicString& content); |
1149 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content); | 1151 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content); |
1150 | 1152 |
1151 void didRemoveTouchEventHandler(Node*, bool clearAll); | 1153 void didRemoveTouchEventHandler(Node*, bool clearAll); |
1152 | 1154 |
1153 // Returns true if Document::recalcStyle() needs to be run. | 1155 bool needsRenderTreeUpdate() const; |
1154 bool shouldCallRecalcStyleForDocument(); | 1156 bool shouldScheduleRenderTreeUpdate() const; |
1155 bool shouldScheduleStyleRecalc(); | |
1156 | 1157 |
1157 DocumentLifecycle m_lifecycle; | 1158 DocumentLifecycle m_lifecycle; |
1158 | 1159 |
1159 bool m_hasNodesWithPlaceholderStyle; | 1160 bool m_hasNodesWithPlaceholderStyle; |
1160 bool m_needsNotifyRemoveAllPendingStylesheet; | 1161 bool m_needsNotifyRemoveAllPendingStylesheet; |
1161 bool m_evaluateMediaQueriesOnStyleRecalc; | 1162 bool m_evaluateMediaQueriesOnStyleRecalc; |
1162 | 1163 |
1163 // If we do ignore the pending stylesheet count, then we need to add a boole an | 1164 // If we do ignore the pending stylesheet count, then we need to add a boole an |
1164 // to track that this happened so that we can do a full repaint when the sty lesheets | 1165 // to track that this happened so that we can do a full repaint when the sty lesheets |
1165 // do eventually load. | 1166 // do eventually load. |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1407 inline bool Node::isDocumentNode() const | 1408 inline bool Node::isDocumentNode() const |
1408 { | 1409 { |
1409 return this == document(); | 1410 return this == document(); |
1410 } | 1411 } |
1411 | 1412 |
1412 Node* eventTargetNodeForDocument(Document*); | 1413 Node* eventTargetNodeForDocument(Document*); |
1413 | 1414 |
1414 } // namespace WebCore | 1415 } // namespace WebCore |
1415 | 1416 |
1416 #endif // Document_h | 1417 #endif // Document_h |
OLD | NEW |