| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 #ifndef NDEBUG | 292 #ifndef NDEBUG |
| 293 bool didDispatchViewportPropertiesChanged() const { return m_didDispatchView
portPropertiesChanged; } | 293 bool didDispatchViewportPropertiesChanged() const { return m_didDispatchView
portPropertiesChanged; } |
| 294 #endif | 294 #endif |
| 295 | 295 |
| 296 void setReferrerPolicy(ReferrerPolicy referrerPolicy) { m_referrerPolicy = r
eferrerPolicy; } | 296 void setReferrerPolicy(ReferrerPolicy referrerPolicy) { m_referrerPolicy = r
eferrerPolicy; } |
| 297 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } | 297 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } |
| 298 | 298 |
| 299 DocumentType* doctype() const { return m_docType.get(); } | 299 DocumentType* doctype() const { return m_docType.get(); } |
| 300 | 300 |
| 301 DOMImplementation* implementation(); | 301 DOMImplementation* implementation(); |
| 302 | 302 |
| 303 Element* documentElement() const | 303 Element* documentElement() const |
| 304 { | 304 { |
| 305 return m_documentElement.get(); | 305 return m_documentElement.get(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 bool hasManifest() const; | 308 bool hasManifest() const; |
| 309 | 309 |
| 310 PassRefPtr<Element> createElement(const AtomicString& name, ExceptionCode&); | 310 PassRefPtr<Element> createElement(const AtomicString& name, ExceptionCode&); |
| 311 PassRefPtr<DocumentFragment> createDocumentFragment(); | 311 PassRefPtr<DocumentFragment> createDocumentFragment(); |
| 312 PassRefPtr<Text> createTextNode(const String& data); | 312 PassRefPtr<Text> createTextNode(const String& data); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 bool isSrcdocDocument() const { return m_isSrcdocDocument; } | 416 bool isSrcdocDocument() const { return m_isSrcdocDocument; } |
| 417 | 417 |
| 418 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get();
} | 418 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get();
} |
| 419 | 419 |
| 420 bool isViewSource() const { return m_isViewSource; } | 420 bool isViewSource() const { return m_isViewSource; } |
| 421 void setIsViewSource(bool); | 421 void setIsViewSource(bool); |
| 422 | 422 |
| 423 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames
paces; } | 423 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames
paces; } |
| 424 | 424 |
| 425 StyleResolver* styleResolver() | 425 StyleResolver* styleResolver() |
| 426 { | 426 { |
| 427 if (!m_styleResolver) | 427 if (!m_styleResolver) |
| 428 createStyleResolver(); | 428 createStyleResolver(); |
| 429 return m_styleResolver.get(); | 429 return m_styleResolver.get(); |
| 430 } | 430 } |
| 431 | 431 |
| 432 void notifyRemovePendingSheetIfNeeded(); | 432 void notifyRemovePendingSheetIfNeeded(); |
| 433 | 433 |
| 434 bool haveStylesheetsLoaded() const; | 434 bool haveStylesheetsLoaded() const; |
| 435 bool haveStylesheetsAndImportsLoaded() const { return haveImportsLoaded() &&
haveStylesheetsLoaded(); } | 435 bool haveStylesheetsAndImportsLoaded() const { return haveImportsLoaded() &&
haveStylesheetsLoaded(); } |
| 436 | 436 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 Node::setRenderer(renderer); | 522 Node::setRenderer(renderer); |
| 523 } | 523 } |
| 524 | 524 |
| 525 AXObjectCache* existingAXObjectCache() const; | 525 AXObjectCache* existingAXObjectCache() const; |
| 526 AXObjectCache* axObjectCache() const; | 526 AXObjectCache* axObjectCache() const; |
| 527 void clearAXObjectCache(); | 527 void clearAXObjectCache(); |
| 528 | 528 |
| 529 // to get visually ordered hebrew and arabic pages right | 529 // to get visually ordered hebrew and arabic pages right |
| 530 void setVisuallyOrdered(); | 530 void setVisuallyOrdered(); |
| 531 bool visuallyOrdered() const { return m_visuallyOrdered; } | 531 bool visuallyOrdered() const { return m_visuallyOrdered; } |
| 532 | 532 |
| 533 DocumentLoader* loader() const; | 533 DocumentLoader* loader() const; |
| 534 | 534 |
| 535 void open(Document* ownerDocument = 0); | 535 void open(Document* ownerDocument = 0); |
| 536 PassRefPtr<DocumentParser> implicitOpen(); | 536 PassRefPtr<DocumentParser> implicitOpen(); |
| 537 | 537 |
| 538 // close() is the DOM API document.close() | 538 // close() is the DOM API document.close() |
| 539 void close(); | 539 void close(); |
| 540 // In some situations (see the code), we ignore document.close(). | 540 // In some situations (see the code), we ignore document.close(). |
| 541 // explicitClose() bypass these checks and actually tries to close the | 541 // explicitClose() bypass these checks and actually tries to close the |
| 542 // input stream. | 542 // input stream. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 568 KURL completeURL(const String&, const KURL& baseURLOverride) const; | 568 KURL completeURL(const String&, const KURL& baseURLOverride) const; |
| 569 | 569 |
| 570 virtual String userAgent(const KURL&) const; | 570 virtual String userAgent(const KURL&) const; |
| 571 | 571 |
| 572 virtual void disableEval(const String& errorMessage); | 572 virtual void disableEval(const String& errorMessage); |
| 573 | 573 |
| 574 bool canNavigate(Frame* targetFrame); | 574 bool canNavigate(Frame* targetFrame); |
| 575 Frame* findUnsafeParentScrollPropagationBoundary(); | 575 Frame* findUnsafeParentScrollPropagationBoundary(); |
| 576 | 576 |
| 577 CSSStyleSheet* elementSheet(); | 577 CSSStyleSheet* elementSheet(); |
| 578 | 578 |
| 579 virtual PassRefPtr<DocumentParser> createParser(); | 579 virtual PassRefPtr<DocumentParser> createParser(); |
| 580 DocumentParser* parser() const { return m_parser.get(); } | 580 DocumentParser* parser() const { return m_parser.get(); } |
| 581 ScriptableDocumentParser* scriptableDocumentParser() const; | 581 ScriptableDocumentParser* scriptableDocumentParser() const; |
| 582 | 582 |
| 583 bool printing() const { return m_printing; } | 583 bool printing() const { return m_printing; } |
| 584 void setPrinting(bool p) { m_printing = p; } | 584 void setPrinting(bool p) { m_printing = p; } |
| 585 | 585 |
| 586 bool paginatedForScreen() const { return m_paginatedForScreen; } | 586 bool paginatedForScreen() const { return m_paginatedForScreen; } |
| 587 void setPaginatedForScreen(bool p) { m_paginatedForScreen = p; } | 587 void setPaginatedForScreen(bool p) { m_paginatedForScreen = p; } |
| 588 | 588 |
| 589 bool paginated() const { return printing() || paginatedForScreen(); } | 589 bool paginated() const { return printing() || paginatedForScreen(); } |
| 590 | 590 |
| 591 enum CompatibilityMode { QuirksMode, LimitedQuirksMode, NoQuirksMode }; | 591 enum CompatibilityMode { QuirksMode, LimitedQuirksMode, NoQuirksMode }; |
| 592 | 592 |
| 593 void setCompatibilityMode(CompatibilityMode m); | 593 void setCompatibilityMode(CompatibilityMode m); |
| 594 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } | 594 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
| 595 CompatibilityMode compatibilityMode() const { return m_compatibilityMode; } | 595 CompatibilityMode compatibilityMode() const { return m_compatibilityMode; } |
| 596 | 596 |
| 597 String compatMode() const; | 597 String compatMode() const; |
| 598 | 598 |
| 599 bool inQuirksMode() const { return m_compatibilityMode == QuirksMode; } | 599 bool inQuirksMode() const { return m_compatibilityMode == QuirksMode; } |
| 600 bool inLimitedQuirksMode() const { return m_compatibilityMode == LimitedQuir
ksMode; } | 600 bool inLimitedQuirksMode() const { return m_compatibilityMode == LimitedQuir
ksMode; } |
| 601 bool inNoQuirksMode() const { return m_compatibilityMode == NoQuirksMode; } | 601 bool inNoQuirksMode() const { return m_compatibilityMode == NoQuirksMode; } |
| 602 | 602 |
| 603 enum ReadyState { | 603 enum ReadyState { |
| 604 Loading, | 604 Loading, |
| 605 Interactive, | 605 Interactive, |
| 606 Complete | 606 Complete |
| 607 }; | 607 }; |
| 608 void setReadyState(ReadyState); | 608 void setReadyState(ReadyState); |
| 609 void setParsing(bool); | 609 void setParsing(bool); |
| 610 bool parsing() const { return m_bParsing; } | 610 bool parsing() const { return m_bParsing; } |
| 611 int minimumLayoutDelay(); | |
| 612 | 611 |
| 613 bool shouldScheduleLayout(); | 612 bool shouldScheduleLayout(); |
| 614 bool isLayoutTimerActive(); | 613 bool parserShouldYieldAgressivelyBeforeFirstLayout(); |
| 615 int elapsedTime() const; | |
| 616 | 614 |
| 617 TextLinkColors& textLinkColors() { return m_textLinkColors; } | 615 TextLinkColors& textLinkColors() { return m_textLinkColors; } |
| 618 VisitedLinkState* visitedLinkState() const { return m_visitedLinkState.get()
; } | 616 VisitedLinkState* visitedLinkState() const { return m_visitedLinkState.get()
; } |
| 619 | 617 |
| 620 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
LayoutPoint&, const PlatformMouseEvent&); | 618 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
LayoutPoint&, const PlatformMouseEvent&); |
| 621 | 619 |
| 622 /* Newly proposed CSS3 mechanism for selecting alternate | 620 /* Newly proposed CSS3 mechanism for selecting alternate |
| 623 stylesheets using the DOM. May be subject to change as | 621 stylesheets using the DOM. May be subject to change as |
| 624 spec matures. - dwh | 622 spec matures. - dwh |
| 625 */ | 623 */ |
| 626 String preferredStylesheetSet() const; | 624 String preferredStylesheetSet() const; |
| 627 String selectedStylesheetSet() const; | 625 String selectedStylesheetSet() const; |
| 628 void setSelectedStylesheetSet(const String&); | 626 void setSelectedStylesheetSet(const String&); |
| 629 | 627 |
| 630 bool setFocusedElement(PassRefPtr<Element>, FocusDirection = FocusDirectionN
one); | 628 bool setFocusedElement(PassRefPtr<Element>, FocusDirection = FocusDirectionN
one); |
| 631 Element* focusedElement() const { return m_focusedElement.get(); } | 629 Element* focusedElement() const { return m_focusedElement.get(); } |
| 632 UserActionElementSet& userActionElements() { return m_userActionElements; } | 630 UserActionElementSet& userActionElements() { return m_userActionElements; } |
| 633 const UserActionElementSet& userActionElements() const { return m_userAction
Elements; } | 631 const UserActionElementSet& userActionElements() const { return m_userAction
Elements; } |
| 634 void didRunCheckFocusedElementTask() { m_didPostCheckFocusedElementTask = fa
lse; } | 632 void didRunCheckFocusedElementTask() { m_didPostCheckFocusedElementTask = fa
lse; } |
| 635 | 633 |
| 636 // The m_ignoreAutofocus flag specifies whether or not the document has been
changed by the user enough | 634 // The m_ignoreAutofocus flag specifies whether or not the document has been
changed by the user enough |
| 637 // for WebCore to ignore the autofocus attribute on any form controls | 635 // for WebCore to ignore the autofocus attribute on any form controls |
| 638 bool ignoreAutofocus() const { return m_ignoreAutofocus; }; | 636 bool ignoreAutofocus() const { return m_ignoreAutofocus; }; |
| 639 void setIgnoreAutofocus(bool shouldIgnore = true) { m_ignoreAutofocus = shou
ldIgnore; }; | 637 void setIgnoreAutofocus(bool shouldIgnore = true) { m_ignoreAutofocus = shou
ldIgnore; }; |
| 640 | 638 |
| 641 void setHoverNode(PassRefPtr<Node>); | 639 void setHoverNode(PassRefPtr<Node>); |
| 642 Node* hoverNode() const { return m_hoverNode.get(); } | 640 Node* hoverNode() const { return m_hoverNode.get(); } |
| 643 | 641 |
| 644 void setActiveElement(PassRefPtr<Element>); | 642 void setActiveElement(PassRefPtr<Element>); |
| 645 Element* activeElement() const { return m_activeElement.get(); } | 643 Element* activeElement() const { return m_activeElement.get(); } |
| 646 | 644 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 bool canReplaceChild(Node* newChild, Node* oldChild); | 678 bool canReplaceChild(Node* newChild, Node* oldChild); |
| 681 | 679 |
| 682 void textInserted(Node*, unsigned offset, unsigned length); | 680 void textInserted(Node*, unsigned offset, unsigned length); |
| 683 void textRemoved(Node*, unsigned offset, unsigned length); | 681 void textRemoved(Node*, unsigned offset, unsigned length); |
| 684 void textNodesMerged(Text* oldNode, unsigned offset); | 682 void textNodesMerged(Text* oldNode, unsigned offset); |
| 685 void textNodeSplit(Text* oldNode); | 683 void textNodeSplit(Text* oldNode); |
| 686 | 684 |
| 687 void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; } | 685 void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; } |
| 688 DOMWindow* domWindow() const { return m_domWindow; } | 686 DOMWindow* domWindow() const { return m_domWindow; } |
| 689 // In DOM Level 2, the Document's DOMWindow is called the defaultView. | 687 // In DOM Level 2, the Document's DOMWindow is called the defaultView. |
| 690 DOMWindow* defaultView() const { return domWindow(); } | 688 DOMWindow* defaultView() const { return domWindow(); } |
| 691 | 689 |
| 692 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. | 690 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. |
| 693 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); | 691 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); |
| 694 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
, DOMWrapperWorld* isolatedWorld); | 692 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
, DOMWrapperWorld* isolatedWorld); |
| 695 void dispatchWindowEvent(PassRefPtr<Event>, PassRefPtr<EventTarget> = 0); | 693 void dispatchWindowEvent(PassRefPtr<Event>, PassRefPtr<EventTarget> = 0); |
| 696 | 694 |
| 697 PassRefPtr<Event> createEvent(const String& eventType, ExceptionCode&); | 695 PassRefPtr<Event> createEvent(const String& eventType, ExceptionCode&); |
| 698 | 696 |
| 699 // keep track of what types of event listeners are registered, so we don't | 697 // keep track of what types of event listeners are registered, so we don't |
| 700 // dispatch events unnecessarily | 698 // dispatch events unnecessarily |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 // | 771 // |
| 774 // Q: How is the cookieURL different from the document's URL? | 772 // Q: How is the cookieURL different from the document's URL? |
| 775 // A: The two URLs are the same almost all the time. However, if one | 773 // A: The two URLs are the same almost all the time. However, if one |
| 776 // document inherits the security context of another document, it | 774 // document inherits the security context of another document, it |
| 777 // inherits its cookieURL but not its URL. | 775 // inherits its cookieURL but not its URL. |
| 778 // | 776 // |
| 779 const KURL& cookieURL() const { return m_cookieURL; } | 777 const KURL& cookieURL() const { return m_cookieURL; } |
| 780 void setCookieURL(const KURL& url) { m_cookieURL = url; } | 778 void setCookieURL(const KURL& url) { m_cookieURL = url; } |
| 781 | 779 |
| 782 const KURL& firstPartyForCookies() const; | 780 const KURL& firstPartyForCookies() const; |
| 783 | 781 |
| 784 // The following implements the rule from HTML 4 for what valid names are. | 782 // The following implements the rule from HTML 4 for what valid names are. |
| 785 // To get this right for all the XML cases, we probably have to improve this
or move it | 783 // To get this right for all the XML cases, we probably have to improve this
or move it |
| 786 // and make it sensitive to the type of document. | 784 // and make it sensitive to the type of document. |
| 787 static bool isValidName(const String&); | 785 static bool isValidName(const String&); |
| 788 | 786 |
| 789 // The following breaks a qualified name into a prefix and a local name. | 787 // The following breaks a qualified name into a prefix and a local name. |
| 790 // It also does a validity check, and returns false if the qualified name | 788 // It also does a validity check, and returns false if the qualified name |
| 791 // is invalid. It also sets ExceptionCode when name is invalid. | 789 // is invalid. It also sets ExceptionCode when name is invalid. |
| 792 static bool parseQualifiedName(const String& qualifiedName, String& prefix,
String& localName, ExceptionCode&); | 790 static bool parseQualifiedName(const String& qualifiedName, String& prefix,
String& localName, ExceptionCode&); |
| 793 | 791 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 810 bool execCommand(const String& command, bool userInterface = false, const St
ring& value = String()); | 808 bool execCommand(const String& command, bool userInterface = false, const St
ring& value = String()); |
| 811 bool queryCommandEnabled(const String& command); | 809 bool queryCommandEnabled(const String& command); |
| 812 bool queryCommandIndeterm(const String& command); | 810 bool queryCommandIndeterm(const String& command); |
| 813 bool queryCommandState(const String& command); | 811 bool queryCommandState(const String& command); |
| 814 bool queryCommandSupported(const String& command); | 812 bool queryCommandSupported(const String& command); |
| 815 String queryCommandValue(const String& command); | 813 String queryCommandValue(const String& command); |
| 816 | 814 |
| 817 KURL openSearchDescriptionURL(); | 815 KURL openSearchDescriptionURL(); |
| 818 | 816 |
| 819 // designMode support | 817 // designMode support |
| 820 enum InheritedBool { off = false, on = true, inherit }; | 818 enum InheritedBool { off = false, on = true, inherit }; |
| 821 void setDesignMode(InheritedBool value); | 819 void setDesignMode(InheritedBool value); |
| 822 InheritedBool getDesignMode() const; | 820 InheritedBool getDesignMode() const; |
| 823 bool inDesignMode() const; | 821 bool inDesignMode() const; |
| 824 | 822 |
| 825 Document* parentDocument() const; | 823 Document* parentDocument() const; |
| 826 Document* topDocument() const; | 824 Document* topDocument() const; |
| 827 | 825 |
| 828 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } | 826 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
| 829 | 827 |
| 830 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } | 828 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 851 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr
ue; } | 849 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr
ue; } |
| 852 | 850 |
| 853 const Vector<IconURL>& shortcutIconURLs(); | 851 const Vector<IconURL>& shortcutIconURLs(); |
| 854 const Vector<IconURL>& iconURLs(int iconTypesMask); | 852 const Vector<IconURL>& iconURLs(int iconTypesMask); |
| 855 | 853 |
| 856 void setUseSecureKeyboardEntryWhenActive(bool); | 854 void setUseSecureKeyboardEntryWhenActive(bool); |
| 857 bool useSecureKeyboardEntryWhenActive() const; | 855 bool useSecureKeyboardEntryWhenActive() const; |
| 858 | 856 |
| 859 void updateFocusAppearanceSoon(bool restorePreviousSelection); | 857 void updateFocusAppearanceSoon(bool restorePreviousSelection); |
| 860 void cancelFocusAppearanceUpdate(); | 858 void cancelFocusAppearanceUpdate(); |
| 861 | 859 |
| 862 // Extension for manipulating canvas drawing contexts for use in CSS | 860 // Extension for manipulating canvas drawing contexts for use in CSS |
| 863 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String
& name, int width, int height); | 861 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String
& name, int width, int height); |
| 864 HTMLCanvasElement* getCSSCanvasElement(const String& name); | 862 HTMLCanvasElement* getCSSCanvasElement(const String& name); |
| 865 | 863 |
| 866 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } | 864 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } |
| 867 void parseDNSPrefetchControlHeader(const String&); | 865 void parseDNSPrefetchControlHeader(const String&); |
| 868 | 866 |
| 869 virtual void postTask(PassOwnPtr<Task>); // Executes the task on context's t
hread asynchronously. | 867 virtual void postTask(PassOwnPtr<Task>); // Executes the task on context's t
hread asynchronously. |
| 870 | 868 |
| 871 void suspendScriptedAnimationControllerCallbacks(); | 869 void suspendScriptedAnimationControllerCallbacks(); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 | 1167 |
| 1170 bool m_didPostCheckFocusedElementTask; | 1168 bool m_didPostCheckFocusedElementTask; |
| 1171 RefPtr<Element> m_focusedElement; | 1169 RefPtr<Element> m_focusedElement; |
| 1172 RefPtr<Node> m_hoverNode; | 1170 RefPtr<Node> m_hoverNode; |
| 1173 RefPtr<Element> m_activeElement; | 1171 RefPtr<Element> m_activeElement; |
| 1174 RefPtr<Element> m_documentElement; | 1172 RefPtr<Element> m_documentElement; |
| 1175 UserActionElementSet m_userActionElements; | 1173 UserActionElementSet m_userActionElements; |
| 1176 | 1174 |
| 1177 uint64_t m_domTreeVersion; | 1175 uint64_t m_domTreeVersion; |
| 1178 static uint64_t s_globalTreeVersion; | 1176 static uint64_t s_globalTreeVersion; |
| 1179 | 1177 |
| 1180 HashSet<NodeIterator*> m_nodeIterators; | 1178 HashSet<NodeIterator*> m_nodeIterators; |
| 1181 HashSet<Range*> m_ranges; | 1179 HashSet<Range*> m_ranges; |
| 1182 | 1180 |
| 1183 unsigned short m_listenerTypes; | 1181 unsigned short m_listenerTypes; |
| 1184 | 1182 |
| 1185 MutationObserverOptions m_mutationObserverTypes; | 1183 MutationObserverOptions m_mutationObserverTypes; |
| 1186 | 1184 |
| 1187 OwnPtr<DocumentStyleSheetCollection> m_styleSheetCollection; | 1185 OwnPtr<DocumentStyleSheetCollection> m_styleSheetCollection; |
| 1188 RefPtr<StyleSheetList> m_styleSheetList; | 1186 RefPtr<StyleSheetList> m_styleSheetList; |
| 1189 | 1187 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1212 | 1210 |
| 1213 StringWithDirection m_title; | 1211 StringWithDirection m_title; |
| 1214 StringWithDirection m_rawTitle; | 1212 StringWithDirection m_rawTitle; |
| 1215 bool m_titleSetExplicitly; | 1213 bool m_titleSetExplicitly; |
| 1216 RefPtr<Element> m_titleElement; | 1214 RefPtr<Element> m_titleElement; |
| 1217 | 1215 |
| 1218 RefPtr<RenderArena> m_renderArena; | 1216 RefPtr<RenderArena> m_renderArena; |
| 1219 | 1217 |
| 1220 OwnPtr<AXObjectCache> m_axObjectCache; | 1218 OwnPtr<AXObjectCache> m_axObjectCache; |
| 1221 OwnPtr<DocumentMarkerController> m_markers; | 1219 OwnPtr<DocumentMarkerController> m_markers; |
| 1222 | 1220 |
| 1223 Timer<Document> m_updateFocusAppearanceTimer; | 1221 Timer<Document> m_updateFocusAppearanceTimer; |
| 1224 | 1222 |
| 1225 Element* m_cssTarget; | 1223 Element* m_cssTarget; |
| 1226 | 1224 |
| 1227 // FIXME: Merge these 2 variables into an enum. Also, FrameLoader::m_didCall
ImplicitClose | 1225 // FIXME: Merge these 2 variables into an enum. Also, FrameLoader::m_didCall
ImplicitClose |
| 1228 // is almost a duplication of this data, so that should probably get merged
in too. | 1226 // is almost a duplication of this data, so that should probably get merged
in too. |
| 1229 // FIXME: Document::m_processingLoadEvent and DocumentLoader::m_wasOnloadHan
dled are roughly the same | 1227 // FIXME: Document::m_processingLoadEvent and DocumentLoader::m_wasOnloadHan
dled are roughly the same |
| 1230 // and should be merged. | 1228 // and should be merged. |
| 1231 bool m_processingLoadEvent; | 1229 bool m_processingLoadEvent; |
| 1232 bool m_loadEventFinished; | 1230 bool m_loadEventFinished; |
| 1233 | 1231 |
| 1234 RefPtr<SerializedScriptValue> m_pendingStateObject; | 1232 RefPtr<SerializedScriptValue> m_pendingStateObject; |
| 1235 double m_startTime; | 1233 |
| 1236 bool m_overMinimumLayoutThreshold; | |
| 1237 | |
| 1238 OwnPtr<ScriptRunner> m_scriptRunner; | 1234 OwnPtr<ScriptRunner> m_scriptRunner; |
| 1239 | 1235 |
| 1240 Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack; | 1236 Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack; |
| 1241 | 1237 |
| 1242 OwnPtr<TransformSource> m_transformSource; | 1238 OwnPtr<TransformSource> m_transformSource; |
| 1243 RefPtr<Document> m_transformSourceDocument; | 1239 RefPtr<Document> m_transformSourceDocument; |
| 1244 | 1240 |
| 1245 String m_xmlEncoding; | 1241 String m_xmlEncoding; |
| 1246 String m_xmlVersion; | 1242 String m_xmlVersion; |
| 1247 unsigned m_xmlStandalone : 2; | 1243 unsigned m_xmlStandalone : 2; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 | 1290 |
| 1295 ReferrerPolicy m_referrerPolicy; | 1291 ReferrerPolicy m_referrerPolicy; |
| 1296 | 1292 |
| 1297 bool m_directionSetOnDocumentElement; | 1293 bool m_directionSetOnDocumentElement; |
| 1298 bool m_writingModeSetOnDocumentElement; | 1294 bool m_writingModeSetOnDocumentElement; |
| 1299 | 1295 |
| 1300 DocumentTiming m_documentTiming; | 1296 DocumentTiming m_documentTiming; |
| 1301 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; | 1297 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; |
| 1302 bool m_writeRecursionIsTooDeep; | 1298 bool m_writeRecursionIsTooDeep; |
| 1303 unsigned m_writeRecursionDepth; | 1299 unsigned m_writeRecursionDepth; |
| 1304 | 1300 |
| 1305 unsigned m_wheelEventHandlerCount; | 1301 unsigned m_wheelEventHandlerCount; |
| 1306 OwnPtr<TouchEventTargetSet> m_touchEventTargets; | 1302 OwnPtr<TouchEventTargetSet> m_touchEventTargets; |
| 1307 | 1303 |
| 1308 double m_lastHandledUserGestureTimestamp; | 1304 double m_lastHandledUserGestureTimestamp; |
| 1309 | 1305 |
| 1310 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; | 1306 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; |
| 1311 | 1307 |
| 1312 Timer<Document> m_pendingTasksTimer; | 1308 Timer<Document> m_pendingTasksTimer; |
| 1313 Vector<OwnPtr<Task> > m_pendingTasks; | 1309 Vector<OwnPtr<Task> > m_pendingTasks; |
| 1314 | 1310 |
| 1315 OwnPtr<Prerenderer> m_prerenderer; | 1311 OwnPtr<Prerenderer> m_prerenderer; |
| 1316 | 1312 |
| 1317 OwnPtr<TextAutosizer> m_textAutosizer; | 1313 OwnPtr<TextAutosizer> m_textAutosizer; |
| 1318 | 1314 |
| 1319 RefPtr<CustomElementRegistrationContext> m_registrationContext; | 1315 RefPtr<CustomElementRegistrationContext> m_registrationContext; |
| 1320 | 1316 |
| 1321 bool m_scheduledTasksAreSuspended; | 1317 bool m_scheduledTasksAreSuspended; |
| 1322 | 1318 |
| 1323 RefPtr<NamedFlowCollection> m_namedFlows; | 1319 RefPtr<NamedFlowCollection> m_namedFlows; |
| 1324 | 1320 |
| 1325 RefPtr<DOMSecurityPolicy> m_domSecurityPolicy; | 1321 RefPtr<DOMSecurityPolicy> m_domSecurityPolicy; |
| 1326 | 1322 |
| 1327 void sharedObjectPoolClearTimerFired(Timer<Document>*); | 1323 void sharedObjectPoolClearTimerFired(Timer<Document>*); |
| 1328 Timer<Document> m_sharedObjectPoolClearTimer; | 1324 Timer<Document> m_sharedObjectPoolClearTimer; |
| 1329 | 1325 |
| 1330 OwnPtr<DocumentSharedObjectPool> m_sharedObjectPool; | 1326 OwnPtr<DocumentSharedObjectPool> m_sharedObjectPool; |
| 1331 | 1327 |
| 1332 #ifndef NDEBUG | 1328 #ifndef NDEBUG |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 inline bool Node::isDocumentNode() const | 1390 inline bool Node::isDocumentNode() const |
| 1395 { | 1391 { |
| 1396 return this == documentInternal(); | 1392 return this == documentInternal(); |
| 1397 } | 1393 } |
| 1398 | 1394 |
| 1399 Node* eventTargetNodeForDocument(Document*); | 1395 Node* eventTargetNodeForDocument(Document*); |
| 1400 | 1396 |
| 1401 } // namespace WebCore | 1397 } // namespace WebCore |
| 1402 | 1398 |
| 1403 #endif // Document_h | 1399 #endif // Document_h |
| OLD | NEW |