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