| 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 21 matching lines...) Expand all Loading... |
| 32 #include "bindings/core/v8/ScriptValue.h" | 32 #include "bindings/core/v8/ScriptValue.h" |
| 33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
| 34 #include "core/animation/AnimationClock.h" | 34 #include "core/animation/AnimationClock.h" |
| 35 #include "core/animation/CompositorPendingAnimations.h" | 35 #include "core/animation/CompositorPendingAnimations.h" |
| 36 #include "core/dom/ContainerNode.h" | 36 #include "core/dom/ContainerNode.h" |
| 37 #include "core/dom/DocumentEncodingData.h" | 37 #include "core/dom/DocumentEncodingData.h" |
| 38 #include "core/dom/DocumentInit.h" | 38 #include "core/dom/DocumentInit.h" |
| 39 #include "core/dom/DocumentLifecycle.h" | 39 #include "core/dom/DocumentLifecycle.h" |
| 40 #include "core/dom/DocumentLifecycleNotifier.h" | 40 #include "core/dom/DocumentLifecycleNotifier.h" |
| 41 #include "core/dom/DocumentLifecycleObserver.h" | 41 #include "core/dom/DocumentLifecycleObserver.h" |
| 42 #include "core/dom/DocumentParser.h" | |
| 43 #include "core/dom/DocumentTiming.h" | 42 #include "core/dom/DocumentTiming.h" |
| 44 #include "core/dom/DocumentType.h" | |
| 45 #include "core/dom/ElementData.h" | |
| 46 #include "core/dom/ElementDataCache.h" | |
| 47 #include "core/dom/ExecutionContext.h" | 43 #include "core/dom/ExecutionContext.h" |
| 48 #include "core/dom/MutationObserver.h" | 44 #include "core/dom/MutationObserver.h" |
| 49 #include "core/dom/ScriptRunner.h" | |
| 50 #include "core/dom/TextLinkColors.h" | 45 #include "core/dom/TextLinkColors.h" |
| 51 #include "core/dom/TreeScope.h" | 46 #include "core/dom/TreeScope.h" |
| 52 #include "core/dom/UserActionElementSet.h" | 47 #include "core/dom/UserActionElementSet.h" |
| 53 #include "core/dom/ViewportDescription.h" | 48 #include "core/dom/ViewportDescription.h" |
| 54 #include "core/dom/custom/CustomElement.h" | 49 #include "core/dom/custom/CustomElement.h" |
| 55 #include "core/fetch/ClientHintsPreferences.h" | 50 #include "core/fetch/ClientHintsPreferences.h" |
| 56 #include "core/fetch/ResourceFetcher.h" | |
| 57 #include "core/frame/DOMTimerCoordinator.h" | 51 #include "core/frame/DOMTimerCoordinator.h" |
| 58 #include "core/frame/LocalDOMWindow.h" | 52 #include "core/frame/LocalDOMWindow.h" |
| 59 #include "core/frame/OriginsUsingFeatures.h" | 53 #include "core/frame/OriginsUsingFeatures.h" |
| 60 #include "core/html/CollectionType.h" | 54 #include "core/html/CollectionType.h" |
| 61 #include "core/html/parser/ParserSynchronizationPolicy.h" | 55 #include "core/html/parser/ParserSynchronizationPolicy.h" |
| 62 #include "core/page/PageVisibilityState.h" | 56 #include "core/page/PageVisibilityState.h" |
| 63 #include "platform/Length.h" | 57 #include "platform/Length.h" |
| 64 #include "platform/Timer.h" | 58 #include "platform/Timer.h" |
| 65 #include "platform/heap/Handle.h" | 59 #include "platform/heap/Handle.h" |
| 66 #include "platform/weborigin/KURL.h" | 60 #include "platform/weborigin/KURL.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 89 class ConsoleMessage; | 83 class ConsoleMessage; |
| 90 class ContextFeatures; | 84 class ContextFeatures; |
| 91 class CustomElementMicrotaskRunQueue; | 85 class CustomElementMicrotaskRunQueue; |
| 92 class CustomElementRegistrationContext; | 86 class CustomElementRegistrationContext; |
| 93 class DOMImplementation; | 87 class DOMImplementation; |
| 94 class DOMWindow; | 88 class DOMWindow; |
| 95 class DocumentFragment; | 89 class DocumentFragment; |
| 96 class DocumentLoader; | 90 class DocumentLoader; |
| 97 class DocumentMarkerController; | 91 class DocumentMarkerController; |
| 98 class DocumentNameCollection; | 92 class DocumentNameCollection; |
| 93 class DocumentParser; |
| 99 class DocumentState; | 94 class DocumentState; |
| 95 class DocumentType; |
| 100 class DocumentVisibilityObserver; | 96 class DocumentVisibilityObserver; |
| 101 class Element; | 97 class Element; |
| 98 class ElementDataCache; |
| 102 class ElementRegistrationOptions; | 99 class ElementRegistrationOptions; |
| 103 class Event; | 100 class Event; |
| 104 class EventFactoryBase; | 101 class EventFactoryBase; |
| 105 class EventListener; | 102 class EventListener; |
| 106 template <typename EventType> | 103 template <typename EventType> |
| 107 class EventWithHitTestResults; | 104 class EventWithHitTestResults; |
| 108 class ExceptionState; | 105 class ExceptionState; |
| 109 class FloatQuad; | 106 class FloatQuad; |
| 110 class FloatRect; | 107 class FloatRect; |
| 111 class FormController; | 108 class FormController; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 140 class NodeFilter; | 137 class NodeFilter; |
| 141 class NodeIterator; | 138 class NodeIterator; |
| 142 class NthIndexCache; | 139 class NthIndexCache; |
| 143 class OriginAccessEntry; | 140 class OriginAccessEntry; |
| 144 class Page; | 141 class Page; |
| 145 class PlatformMouseEvent; | 142 class PlatformMouseEvent; |
| 146 class ProcessingInstruction; | 143 class ProcessingInstruction; |
| 147 class QualifiedName; | 144 class QualifiedName; |
| 148 class Range; | 145 class Range; |
| 149 class LayoutView; | 146 class LayoutView; |
| 147 class ResourceFetcher; |
| 150 class SVGDocumentExtensions; | 148 class SVGDocumentExtensions; |
| 151 class SVGUseElement; | 149 class SVGUseElement; |
| 150 class ScriptRunner; |
| 152 class ScriptableDocumentParser; | 151 class ScriptableDocumentParser; |
| 153 class ScriptedAnimationController; | 152 class ScriptedAnimationController; |
| 154 class ScriptedIdleTaskController; | 153 class ScriptedIdleTaskController; |
| 155 class SecurityOrigin; | 154 class SecurityOrigin; |
| 156 class SegmentedString; | 155 class SegmentedString; |
| 157 class SelectorQueryCache; | 156 class SelectorQueryCache; |
| 158 class SerializedScriptValue; | 157 class SerializedScriptValue; |
| 159 class Settings; | 158 class Settings; |
| 160 class StyleEngine; | 159 class StyleEngine; |
| 161 class StyleResolver; | 160 class StyleResolver; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 void setViewportDescription(const ViewportDescription&); | 261 void setViewportDescription(const ViewportDescription&); |
| 263 const ViewportDescription& viewportDescription() const { return m_viewportDe
scription; } | 262 const ViewportDescription& viewportDescription() const { return m_viewportDe
scription; } |
| 264 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } | 263 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } |
| 265 | 264 |
| 266 bool hasLegacyViewportTag() const { return m_legacyViewportDescription.isLeg
acyViewportType(); } | 265 bool hasLegacyViewportTag() const { return m_legacyViewportDescription.isLeg
acyViewportType(); } |
| 267 | 266 |
| 268 String outgoingReferrer(); | 267 String outgoingReferrer(); |
| 269 String outgoingOrigin() const; | 268 String outgoingOrigin() const; |
| 270 | 269 |
| 271 void setDoctype(PassRefPtrWillBeRawPtr<DocumentType>); | 270 void setDoctype(PassRefPtrWillBeRawPtr<DocumentType>); |
| 272 DocumentType* doctype() const; | 271 DocumentType* doctype() const { return m_docType.get(); } |
| 273 | 272 |
| 274 DOMImplementation& implementation(); | 273 DOMImplementation& implementation(); |
| 275 | 274 |
| 276 Element* documentElement() const; | 275 Element* documentElement() const |
| 276 { |
| 277 return m_documentElement.get(); |
| 278 } |
| 277 | 279 |
| 278 // Returns whether the Document has an AppCache manifest. | 280 // Returns whether the Document has an AppCache manifest. |
| 279 bool hasAppCacheManifest() const; | 281 bool hasAppCacheManifest() const; |
| 280 | 282 |
| 281 Location* location() const; | 283 Location* location() const; |
| 282 | 284 |
| 283 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& name, Exce
ptionState&); | 285 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& name, Exce
ptionState&); |
| 284 PassRefPtrWillBeRawPtr<DocumentFragment> createDocumentFragment(); | 286 PassRefPtrWillBeRawPtr<DocumentFragment> createDocumentFragment(); |
| 285 PassRefPtrWillBeRawPtr<Text> createTextNode(const String& data); | 287 PassRefPtrWillBeRawPtr<Text> createTextNode(const String& data); |
| 286 PassRefPtrWillBeRawPtr<Comment> createComment(const String& data); | 288 PassRefPtrWillBeRawPtr<Comment> createComment(const String& data); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 void setIsViewSource(bool); | 375 void setIsViewSource(bool); |
| 374 | 376 |
| 375 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames
paces; } | 377 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames
paces; } |
| 376 | 378 |
| 377 bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheet
sLoaded(); } | 379 bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheet
sLoaded(); } |
| 378 bool isScriptExecutionReady() const { return isRenderingReady(); } | 380 bool isScriptExecutionReady() const { return isRenderingReady(); } |
| 379 | 381 |
| 380 // This is a DOM function. | 382 // This is a DOM function. |
| 381 StyleSheetList* styleSheets(); | 383 StyleSheetList* styleSheets(); |
| 382 | 384 |
| 383 StyleEngine& styleEngine(); | 385 StyleEngine& styleEngine() { ASSERT(m_styleEngine.get()); return *m_styleEng
ine.get(); } |
| 384 | 386 |
| 385 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter
StylesheetsLoad; } | 387 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter
StylesheetsLoad; } |
| 386 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft
erStylesheetsLoad = b; } | 388 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft
erStylesheetsLoad = b; } |
| 387 | 389 |
| 388 // Called when one or more stylesheets in the document may have been added,
removed, or changed. | 390 // Called when one or more stylesheets in the document may have been added,
removed, or changed. |
| 389 void styleResolverChanged(StyleResolverUpdateMode = FullStyleUpdate); | 391 void styleResolverChanged(StyleResolverUpdateMode = FullStyleUpdate); |
| 390 void styleResolverMayHaveChanged(); | 392 void styleResolverMayHaveChanged(); |
| 391 | 393 |
| 392 // FIXME: Switch all callers of styleResolverChanged to these or better ones
and then make them | 394 // FIXME: Switch all callers of styleResolverChanged to these or better ones
and then make them |
| 393 // do something smarter. | 395 // do something smarter. |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 /* Newly proposed CSS3 mechanism for selecting alternate | 579 /* Newly proposed CSS3 mechanism for selecting alternate |
| 578 stylesheets using the DOM. May be subject to change as | 580 stylesheets using the DOM. May be subject to change as |
| 579 spec matures. - dwh | 581 spec matures. - dwh |
| 580 */ | 582 */ |
| 581 String preferredStylesheetSet() const; | 583 String preferredStylesheetSet() const; |
| 582 String selectedStylesheetSet() const; | 584 String selectedStylesheetSet() const; |
| 583 void setSelectedStylesheetSet(const String&); | 585 void setSelectedStylesheetSet(const String&); |
| 584 | 586 |
| 585 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, const FocusParams&); | 587 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, const FocusParams&); |
| 586 void clearFocusedElement(); | 588 void clearFocusedElement(); |
| 587 Element* focusedElement() const; | 589 Element* focusedElement() const { return m_focusedElement.get(); } |
| 588 UserActionElementSet& userActionElements() { return m_userActionElements; } | 590 UserActionElementSet& userActionElements() { return m_userActionElements; } |
| 589 const UserActionElementSet& userActionElements() const { return m_userAction
Elements; } | 591 const UserActionElementSet& userActionElements() const { return m_userAction
Elements; } |
| 590 void setNeedsFocusedElementCheck(); | 592 void setNeedsFocusedElementCheck(); |
| 591 void setAutofocusElement(Element*); | 593 void setAutofocusElement(Element*); |
| 592 Element* autofocusElement() const; | 594 Element* autofocusElement() const { return m_autofocusElement.get(); } |
| 593 | 595 |
| 594 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>); | 596 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>); |
| 595 Element* activeHoverElement() const; | 597 Element* activeHoverElement() const { return m_activeHoverElement.get(); } |
| 596 | 598 |
| 597 Node* hoverNode() const; | 599 Node* hoverNode() const { return m_hoverNode.get(); } |
| 598 | 600 |
| 599 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); | 601 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); |
| 600 void hoveredNodeDetached(Element&); | 602 void hoveredNodeDetached(Element&); |
| 601 void activeChainNodeDetached(Element&); | 603 void activeChainNodeDetached(Element&); |
| 602 | 604 |
| 603 void updateHoverActiveState(const HitTestRequest&, Element*); | 605 void updateHoverActiveState(const HitTestRequest&, Element*); |
| 604 | 606 |
| 605 // Updates for :target (CSS3 selector). | 607 // Updates for :target (CSS3 selector). |
| 606 void setCSSTarget(Element*); | 608 void setCSSTarget(Element*); |
| 607 Element* cssTarget() const { return m_cssTarget; } | 609 Element* cssTarget() const { return m_cssTarget; } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // Returns nullptr if this is the top level document. | 682 // Returns nullptr if this is the top level document. |
| 681 HTMLFrameOwnerElement* ownerElement() const; | 683 HTMLFrameOwnerElement* ownerElement() const; |
| 682 | 684 |
| 683 // Returns true if this document belongs to a frame that the parent document | 685 // Returns true if this document belongs to a frame that the parent document |
| 684 // made invisible (for instance by setting as style display:none). | 686 // made invisible (for instance by setting as style display:none). |
| 685 bool isInInvisibleSubframe() const; | 687 bool isInInvisibleSubframe() const; |
| 686 | 688 |
| 687 String title() const { return m_title; } | 689 String title() const { return m_title; } |
| 688 void setTitle(const String&); | 690 void setTitle(const String&); |
| 689 | 691 |
| 690 Element* titleElement() const; | 692 Element* titleElement() const { return m_titleElement.get(); } |
| 691 void setTitleElement(Element*); | 693 void setTitleElement(Element*); |
| 692 void removeTitle(Element* titleElement); | 694 void removeTitle(Element* titleElement); |
| 693 | 695 |
| 694 const AtomicString& dir(); | 696 const AtomicString& dir(); |
| 695 void setDir(const AtomicString&); | 697 void setDir(const AtomicString&); |
| 696 | 698 |
| 697 String cookie(ExceptionState&) const; | 699 String cookie(ExceptionState&) const; |
| 698 void setCookie(const String&, ExceptionState&); | 700 void setCookie(const String&, ExceptionState&); |
| 699 | 701 |
| 700 const AtomicString& referrer() const; | 702 const AtomicString& referrer() const; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 | 767 |
| 766 // designMode support | 768 // designMode support |
| 767 bool inDesignMode() const { return m_designMode; } | 769 bool inDesignMode() const { return m_designMode; } |
| 768 String designMode() const; | 770 String designMode() const; |
| 769 void setDesignMode(const String&); | 771 void setDesignMode(const String&); |
| 770 | 772 |
| 771 Document* parentDocument() const; | 773 Document* parentDocument() const; |
| 772 Document& topDocument() const; | 774 Document& topDocument() const; |
| 773 WeakPtrWillBeRawPtr<Document> contextDocument(); | 775 WeakPtrWillBeRawPtr<Document> contextDocument(); |
| 774 | 776 |
| 775 ScriptRunner* scriptRunner() const; | 777 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
| 776 | 778 |
| 777 HTMLScriptElement* currentScript() const; | 779 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : nullptr; } |
| 778 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); | 780 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); |
| 779 void popCurrentScript(); | 781 void popCurrentScript(); |
| 780 | 782 |
| 781 void setTransformSource(PassOwnPtr<TransformSource>); | 783 void setTransformSource(PassOwnPtr<TransformSource>); |
| 782 TransformSource* transformSource() const { return m_transformSource.get(); } | 784 TransformSource* transformSource() const { return m_transformSource.get(); } |
| 783 | 785 |
| 784 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m
_domTreeVersion = ++s_globalTreeVersion; } | 786 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m
_domTreeVersion = ++s_globalTreeVersion; } |
| 785 uint64_t domTreeVersion() const { return m_domTreeVersion; } | 787 uint64_t domTreeVersion() const { return m_domTreeVersion; } |
| 786 | 788 |
| 787 uint64_t styleVersion() const { return m_styleVersion; } | 789 uint64_t styleVersion() const { return m_styleVersion; } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 | 920 |
| 919 void initDNSPrefetch(); | 921 void initDNSPrefetch(); |
| 920 | 922 |
| 921 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 923 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } |
| 922 | 924 |
| 923 TextAutosizer* textAutosizer(); | 925 TextAutosizer* textAutosizer(); |
| 924 | 926 |
| 925 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& localName,
const AtomicString& typeExtension, ExceptionState&); | 927 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& localName,
const AtomicString& typeExtension, ExceptionState&); |
| 926 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac
eURI, const AtomicString& qualifiedName, const AtomicString& typeExtension, Exce
ptionState&); | 928 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac
eURI, const AtomicString& qualifiedName, const AtomicString& typeExtension, Exce
ptionState&); |
| 927 ScriptValue registerElement(ScriptState*, const AtomicString& name, const El
ementRegistrationOptions&, ExceptionState&, CustomElement::NameSet validNames =
CustomElement::StandardNames); | 929 ScriptValue registerElement(ScriptState*, const AtomicString& name, const El
ementRegistrationOptions&, ExceptionState&, CustomElement::NameSet validNames =
CustomElement::StandardNames); |
| 928 CustomElementRegistrationContext* registrationContext() const; | 930 CustomElementRegistrationContext* registrationContext() { return m_registrat
ionContext.get(); } |
| 929 CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue(); | 931 CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue(); |
| 930 | 932 |
| 931 void setImportsController(HTMLImportsController*); | 933 void setImportsController(HTMLImportsController*); |
| 932 HTMLImportsController* importsController() const { return m_importsControlle
r; } | 934 HTMLImportsController* importsController() const { return m_importsControlle
r; } |
| 933 HTMLImportLoader* importLoader() const; | 935 HTMLImportLoader* importLoader() const; |
| 934 | 936 |
| 935 bool haveImportsLoaded() const; | 937 bool haveImportsLoaded() const; |
| 936 void didLoadAllImports(); | 938 void didLoadAllImports(); |
| 937 | 939 |
| 938 void adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>&, LayoutObje
ct&); | 940 void adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>&, LayoutObje
ct&); |
| 939 void adjustFloatRectForScrollAndAbsoluteZoom(FloatRect&, LayoutObject&); | 941 void adjustFloatRectForScrollAndAbsoluteZoom(FloatRect&, LayoutObject&); |
| 940 | 942 |
| 941 bool hasActiveParser(); | 943 bool hasActiveParser(); |
| 942 unsigned activeParserCount() { return m_activeParserCount; } | 944 unsigned activeParserCount() { return m_activeParserCount; } |
| 943 void incrementActiveParserCount() { ++m_activeParserCount; } | 945 void incrementActiveParserCount() { ++m_activeParserCount; } |
| 944 void decrementActiveParserCount() { --m_activeParserCount; } | 946 void decrementActiveParserCount() { --m_activeParserCount; } |
| 945 | 947 |
| 946 void setContextFeatures(ContextFeatures&); | 948 void setContextFeatures(ContextFeatures&); |
| 947 ContextFeatures& contextFeatures() const { return *m_contextFeatures; } | 949 ContextFeatures& contextFeatures() const { return *m_contextFeatures; } |
| 948 | 950 |
| 949 ElementDataCache* elementDataCache() const; | 951 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } |
| 950 | 952 |
| 951 void didLoadAllScriptBlockingResources(); | 953 void didLoadAllScriptBlockingResources(); |
| 952 void didRemoveAllPendingStylesheet(); | 954 void didRemoveAllPendingStylesheet(); |
| 953 | 955 |
| 954 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } | 956 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } |
| 955 | 957 |
| 956 // Return a Locale for the default locale if the argument is null or empty. | 958 // Return a Locale for the default locale if the argument is null or empty. |
| 957 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 959 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
| 958 | 960 |
| 959 AnimationClock& animationClock(); | 961 AnimationClock& animationClock(); |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1434 | 1436 |
| 1435 } // namespace blink | 1437 } // namespace blink |
| 1436 | 1438 |
| 1437 #ifndef NDEBUG | 1439 #ifndef NDEBUG |
| 1438 // Outside the WebCore namespace for ease of invocation from gdb. | 1440 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1439 CORE_EXPORT void showLiveDocumentInstances(); | 1441 CORE_EXPORT void showLiveDocumentInstances(); |
| 1440 #endif | 1442 #endif |
| 1441 | 1443 |
| 1442 #endif // Document_h | 1444 #endif // Document_h |
| OLD | NEW |