| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 void mediaQueryAffectingValueChanged(); | 230 void mediaQueryAffectingValueChanged(); |
| 231 | 231 |
| 232 #if !ENABLE(OILPAN) | 232 #if !ENABLE(OILPAN) |
| 233 using ContainerNode::ref; | 233 using ContainerNode::ref; |
| 234 using ContainerNode::deref; | 234 using ContainerNode::deref; |
| 235 #endif | 235 #endif |
| 236 using SecurityContext::securityOrigin; | 236 using SecurityContext::securityOrigin; |
| 237 using SecurityContext::contentSecurityPolicy; | 237 using SecurityContext::contentSecurityPolicy; |
| 238 using TreeScope::getElementById; | 238 using TreeScope::getElementById; |
| 239 | 239 |
| 240 virtual bool canContainRangeEndPoint() const OVERRIDE { return true; } | 240 virtual bool canContainRangeEndPoint() const override { return true; } |
| 241 | 241 |
| 242 SelectorQueryCache& selectorQueryCache(); | 242 SelectorQueryCache& selectorQueryCache(); |
| 243 | 243 |
| 244 // Focus Management. | 244 // Focus Management. |
| 245 Element* activeElement() const; | 245 Element* activeElement() const; |
| 246 bool hasFocus() const; | 246 bool hasFocus() const; |
| 247 | 247 |
| 248 // DOM methods & attributes for Document | 248 // DOM methods & attributes for Document |
| 249 | 249 |
| 250 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | 250 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; | 338 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; |
| 339 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } | 339 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } |
| 340 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } | 340 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } |
| 341 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } | 341 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } |
| 342 | 342 |
| 343 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser | 343 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser |
| 344 void setXMLVersion(const String&, ExceptionState&); | 344 void setXMLVersion(const String&, ExceptionState&); |
| 345 void setXMLStandalone(bool, ExceptionState&); | 345 void setXMLStandalone(bool, ExceptionState&); |
| 346 void setHasXMLDeclaration(bool hasXMLDeclaration) { m_hasXMLDeclaration = ha
sXMLDeclaration ? 1 : 0; } | 346 void setHasXMLDeclaration(bool hasXMLDeclaration) { m_hasXMLDeclaration = ha
sXMLDeclaration ? 1 : 0; } |
| 347 | 347 |
| 348 virtual KURL baseURI() const OVERRIDE FINAL; | 348 virtual KURL baseURI() const override final; |
| 349 | 349 |
| 350 String visibilityState() const; | 350 String visibilityState() const; |
| 351 bool hidden() const; | 351 bool hidden() const; |
| 352 void didChangeVisibilityState(); | 352 void didChangeVisibilityState(); |
| 353 | 353 |
| 354 PassRefPtrWillBeRawPtr<Node> adoptNode(PassRefPtrWillBeRawPtr<Node> source,
ExceptionState&); | 354 PassRefPtrWillBeRawPtr<Node> adoptNode(PassRefPtrWillBeRawPtr<Node> source,
ExceptionState&); |
| 355 | 355 |
| 356 PassRefPtrWillBeRawPtr<HTMLCollection> images(); | 356 PassRefPtrWillBeRawPtr<HTMLCollection> images(); |
| 357 PassRefPtrWillBeRawPtr<HTMLCollection> embeds(); | 357 PassRefPtrWillBeRawPtr<HTMLCollection> embeds(); |
| 358 PassRefPtrWillBeRawPtr<HTMLCollection> applets(); | 358 PassRefPtrWillBeRawPtr<HTMLCollection> applets(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 bool isPageBoxVisible(int pageIndex); | 472 bool isPageBoxVisible(int pageIndex); |
| 473 | 473 |
| 474 // Returns the preferred page size and margins in pixels, assuming 96 | 474 // Returns the preferred page size and margins in pixels, assuming 96 |
| 475 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 475 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
| 476 // marginLeft must be initialized to the default values that are used if | 476 // marginLeft must be initialized to the default values that are used if |
| 477 // auto is specified. | 477 // auto is specified. |
| 478 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi
nTop, int& marginRight, int& marginBottom, int& marginLeft); | 478 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi
nTop, int& marginRight, int& marginBottom, int& marginLeft); |
| 479 | 479 |
| 480 ResourceFetcher* fetcher() { return m_fetcher.get(); } | 480 ResourceFetcher* fetcher() { return m_fetcher.get(); } |
| 481 | 481 |
| 482 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 482 virtual void attach(const AttachContext& = AttachContext()) override; |
| 483 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 483 virtual void detach(const AttachContext& = AttachContext()) override; |
| 484 void prepareForDestruction(); | 484 void prepareForDestruction(); |
| 485 | 485 |
| 486 // If you have a Document, use renderView() instead which is faster. | 486 // If you have a Document, use renderView() instead which is faster. |
| 487 void renderer() const WTF_DELETED_FUNCTION; | 487 void renderer() const WTF_DELETED_FUNCTION; |
| 488 | 488 |
| 489 RenderView* renderView() const { return m_renderView; } | 489 RenderView* renderView() const { return m_renderView; } |
| 490 | 490 |
| 491 Document& axObjectCacheOwner() const; | 491 Document& axObjectCacheOwner() const; |
| 492 AXObjectCache* existingAXObjectCache() const; | 492 AXObjectCache* existingAXObjectCache() const; |
| 493 AXObjectCache* axObjectCache() const; | 493 AXObjectCache* axObjectCache() const; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 const KURL& baseURL() const { return m_baseURL; } | 537 const KURL& baseURL() const { return m_baseURL; } |
| 538 void setBaseURLOverride(const KURL&); | 538 void setBaseURLOverride(const KURL&); |
| 539 const KURL& baseURLOverride() const { return m_baseURLOverride; } | 539 const KURL& baseURLOverride() const { return m_baseURLOverride; } |
| 540 const KURL& baseElementURL() const { return m_baseElementURL; } | 540 const KURL& baseElementURL() const { return m_baseElementURL; } |
| 541 const AtomicString& baseTarget() const { return m_baseTarget; } | 541 const AtomicString& baseTarget() const { return m_baseTarget; } |
| 542 void processBaseElement(); | 542 void processBaseElement(); |
| 543 | 543 |
| 544 KURL completeURL(const String&) const; | 544 KURL completeURL(const String&) const; |
| 545 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con
st; | 545 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con
st; |
| 546 | 546 |
| 547 virtual String userAgent(const KURL&) const OVERRIDE FINAL; | 547 virtual String userAgent(const KURL&) const override final; |
| 548 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; | 548 virtual void disableEval(const String& errorMessage) override final; |
| 549 | 549 |
| 550 bool canNavigate(const Frame& targetFrame); | 550 bool canNavigate(const Frame& targetFrame); |
| 551 LocalFrame* findUnsafeParentScrollPropagationBoundary(); | 551 LocalFrame* findUnsafeParentScrollPropagationBoundary(); |
| 552 | 552 |
| 553 CSSStyleSheet& elementSheet(); | 553 CSSStyleSheet& elementSheet(); |
| 554 | 554 |
| 555 virtual PassRefPtrWillBeRawPtr<DocumentParser> createParser(); | 555 virtual PassRefPtrWillBeRawPtr<DocumentParser> createParser(); |
| 556 DocumentParser* parser() const { return m_parser.get(); } | 556 DocumentParser* parser() const { return m_parser.get(); } |
| 557 ScriptableDocumentParser* scriptableDocumentParser() const; | 557 ScriptableDocumentParser* scriptableDocumentParser() const; |
| 558 | 558 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 void cancelFocusAppearanceUpdate(); | 842 void cancelFocusAppearanceUpdate(); |
| 843 | 843 |
| 844 // Extension for manipulating canvas drawing contexts for use in CSS | 844 // Extension for manipulating canvas drawing contexts for use in CSS |
| 845 void getCSSCanvasContext(const String& type, const String& name, int width,
int height, RefPtrWillBeRawPtr<CanvasRenderingContext2D>&, RefPtrWillBeRawPtr<We
bGLRenderingContext>&); | 845 void getCSSCanvasContext(const String& type, const String& name, int width,
int height, RefPtrWillBeRawPtr<CanvasRenderingContext2D>&, RefPtrWillBeRawPtr<We
bGLRenderingContext>&); |
| 846 HTMLCanvasElement& getCSSCanvasElement(const String& name); | 846 HTMLCanvasElement& getCSSCanvasElement(const String& name); |
| 847 | 847 |
| 848 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } | 848 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } |
| 849 void parseDNSPrefetchControlHeader(const String&); | 849 void parseDNSPrefetchControlHeader(const String&); |
| 850 | 850 |
| 851 // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an
ExecutionContext. | 851 // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an
ExecutionContext. |
| 852 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Execute
s the task on context's thread asynchronously. | 852 virtual void postTask(PassOwnPtr<ExecutionContextTask>) override; // Execute
s the task on context's thread asynchronously. |
| 853 void postInspectorTask(PassOwnPtr<ExecutionContextTask>); | 853 void postInspectorTask(PassOwnPtr<ExecutionContextTask>); |
| 854 | 854 |
| 855 virtual void tasksWereSuspended() OVERRIDE FINAL; | 855 virtual void tasksWereSuspended() override final; |
| 856 virtual void tasksWereResumed() OVERRIDE FINAL; | 856 virtual void tasksWereResumed() override final; |
| 857 virtual void suspendScheduledTasks() OVERRIDE FINAL; | 857 virtual void suspendScheduledTasks() override final; |
| 858 virtual void resumeScheduledTasks() OVERRIDE FINAL; | 858 virtual void resumeScheduledTasks() override final; |
| 859 virtual bool tasksNeedSuspension() OVERRIDE FINAL; | 859 virtual bool tasksNeedSuspension() override final; |
| 860 | 860 |
| 861 void finishedParsing(); | 861 void finishedParsing(); |
| 862 | 862 |
| 863 void setEncodingData(const DocumentEncodingData& newData); | 863 void setEncodingData(const DocumentEncodingData& newData); |
| 864 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding()
; } | 864 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding()
; } |
| 865 | 865 |
| 866 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet
ectedHeuristically(); } | 866 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet
ectedHeuristically(); } |
| 867 bool sawDecodingError() const { return m_encodingData.sawDecodingError(); } | 867 bool sawDecodingError() const { return m_encodingData.sawDecodingError(); } |
| 868 | 868 |
| 869 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } | 869 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } |
| 870 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } | 870 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } |
| 871 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } | 871 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } |
| 872 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } | 872 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } |
| 873 const Vector<AnnotatedRegionValue>& annotatedRegions() const; | 873 const Vector<AnnotatedRegionValue>& annotatedRegions() const; |
| 874 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); | 874 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); |
| 875 | 875 |
| 876 virtual void removeAllEventListeners() OVERRIDE FINAL; | 876 virtual void removeAllEventListeners() override final; |
| 877 | 877 |
| 878 const SVGDocumentExtensions* svgExtensions(); | 878 const SVGDocumentExtensions* svgExtensions(); |
| 879 SVGDocumentExtensions& accessSVGExtensions(); | 879 SVGDocumentExtensions& accessSVGExtensions(); |
| 880 | 880 |
| 881 void initSecurityContext(); | 881 void initSecurityContext(); |
| 882 void initSecurityContext(const DocumentInit&); | 882 void initSecurityContext(const DocumentInit&); |
| 883 void initContentSecurityPolicy(PassRefPtr<ContentSecurityPolicy> = nullptr); | 883 void initContentSecurityPolicy(PassRefPtr<ContentSecurityPolicy> = nullptr); |
| 884 | 884 |
| 885 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR
L, const WTF::OrdinalNumber& contextLine); | 885 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR
L, const WTF::OrdinalNumber& contextLine); |
| 886 bool allowExecutingScripts(Node*); | 886 bool allowExecutingScripts(Node*); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 898 UnloadEventHandled | 898 UnloadEventHandled |
| 899 }; | 899 }; |
| 900 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN
otRun; } | 900 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN
otRun; } |
| 901 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } | 901 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } |
| 902 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } | 902 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } |
| 903 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres
s; } | 903 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres
s; } |
| 904 | 904 |
| 905 void setContainsPlugins() { m_containsPlugins = true; } | 905 void setContainsPlugins() { m_containsPlugins = true; } |
| 906 bool containsPlugins() const { return m_containsPlugins; } | 906 bool containsPlugins() const { return m_containsPlugins; } |
| 907 | 907 |
| 908 virtual bool isContextThread() const OVERRIDE FINAL; | 908 virtual bool isContextThread() const override final; |
| 909 virtual bool isJSExecutionForbidden() const OVERRIDE FINAL { return false; } | 909 virtual bool isJSExecutionForbidden() const override final { return false; } |
| 910 | 910 |
| 911 bool containsValidityStyleRules() const { return m_containsValidityStyleRule
s; } | 911 bool containsValidityStyleRules() const { return m_containsValidityStyleRule
s; } |
| 912 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true;
} | 912 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true;
} |
| 913 | 913 |
| 914 void enqueueResizeEvent(); | 914 void enqueueResizeEvent(); |
| 915 void enqueueScrollEventForNode(Node*); | 915 void enqueueScrollEventForNode(Node*); |
| 916 void enqueueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event>); | 916 void enqueueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event>); |
| 917 // Only one event for a target/event type combination will be dispatched per
frame. | 917 // Only one event for a target/event type combination will be dispatched per
frame. |
| 918 void enqueueUniqueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event>); | 918 void enqueueUniqueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event>); |
| 919 void enqueueMediaQueryChangeListeners(WillBeHeapVector<RefPtrWillBeMember<Me
diaQueryListListener> >&); | 919 void enqueueMediaQueryChangeListeners(WillBeHeapVector<RefPtrWillBeMember<Me
diaQueryListListener> >&); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 933 | 933 |
| 934 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int
identifier, double pageX, double pageY, double screenX, double screenY, double
radiusX, double radiusY, float rotationAngle, float force) const; | 934 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int
identifier, double pageX, double pageY, double screenX, double screenY, double
radiusX, double radiusY, float rotationAngle, float force) const; |
| 935 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil
lBeMember<Touch> >&) const; | 935 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil
lBeMember<Touch> >&) const; |
| 936 | 936 |
| 937 const DocumentTiming& timing() const { return m_documentTiming; } | 937 const DocumentTiming& timing() const { return m_documentTiming; } |
| 938 | 938 |
| 939 int requestAnimationFrame(RequestAnimationFrameCallback*); | 939 int requestAnimationFrame(RequestAnimationFrameCallback*); |
| 940 void cancelAnimationFrame(int id); | 940 void cancelAnimationFrame(int id); |
| 941 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 941 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
| 942 | 942 |
| 943 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; | 943 virtual EventTarget* errorEventTarget() override final; |
| 944 virtual void logExceptionToConsole(const String& errorMessage, int scriptId,
const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP
tr<ScriptCallStack>) OVERRIDE FINAL; | 944 virtual void logExceptionToConsole(const String& errorMessage, int scriptId,
const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP
tr<ScriptCallStack>) override final; |
| 945 | 945 |
| 946 void initDNSPrefetch(); | 946 void initDNSPrefetch(); |
| 947 | 947 |
| 948 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 948 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } |
| 949 | 949 |
| 950 IntSize initialViewportSize() const; | 950 IntSize initialViewportSize() const; |
| 951 | 951 |
| 952 TextAutosizer* textAutosizer(); | 952 TextAutosizer* textAutosizer(); |
| 953 | 953 |
| 954 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& localName,
const AtomicString& typeExtension, ExceptionState&); | 954 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& localName,
const AtomicString& typeExtension, ExceptionState&); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con
st { return m_topLayerElements; } | 996 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con
st { return m_topLayerElements; } |
| 997 HTMLDialogElement* activeModalDialog() const; | 997 HTMLDialogElement* activeModalDialog() const; |
| 998 | 998 |
| 999 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). | 999 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). |
| 1000 bool isTemplateDocument() const { return !!m_templateDocumentHost; } | 1000 bool isTemplateDocument() const { return !!m_templateDocumentHost; } |
| 1001 Document& ensureTemplateDocument(); | 1001 Document& ensureTemplateDocument(); |
| 1002 Document* templateDocumentHost() { return m_templateDocumentHost; } | 1002 Document* templateDocumentHost() { return m_templateDocumentHost; } |
| 1003 | 1003 |
| 1004 void didAssociateFormControl(Element*); | 1004 void didAssociateFormControl(Element*); |
| 1005 | 1005 |
| 1006 virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) OVERR
IDE FINAL; | 1006 virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) overr
ide final; |
| 1007 | 1007 |
| 1008 virtual LocalDOMWindow* executingWindow() OVERRIDE FINAL; | 1008 virtual LocalDOMWindow* executingWindow() override final; |
| 1009 LocalFrame* executingFrame(); | 1009 LocalFrame* executingFrame(); |
| 1010 | 1010 |
| 1011 DocumentLifecycleNotifier& lifecycleNotifier(); | 1011 DocumentLifecycleNotifier& lifecycleNotifier(); |
| 1012 DocumentLifecycle& lifecycle() { return m_lifecycle; } | 1012 DocumentLifecycle& lifecycle() { return m_lifecycle; } |
| 1013 bool isActive() const { return m_lifecycle.isActive(); } | 1013 bool isActive() const { return m_lifecycle.isActive(); } |
| 1014 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St
opped; } | 1014 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St
opped; } |
| 1015 bool isDisposed() const { return m_lifecycle.state() == DocumentLifecycle::D
isposed; } | 1015 bool isDisposed() const { return m_lifecycle.state() == DocumentLifecycle::D
isposed; } |
| 1016 | 1016 |
| 1017 enum HttpRefreshType { | 1017 enum HttpRefreshType { |
| 1018 HttpRefreshFromHeader, | 1018 HttpRefreshFromHeader, |
| 1019 HttpRefreshFromMetaTag | 1019 HttpRefreshFromMetaTag |
| 1020 }; | 1020 }; |
| 1021 void maybeHandleHttpRefresh(const String&, HttpRefreshType); | 1021 void maybeHandleHttpRefresh(const String&, HttpRefreshType); |
| 1022 | 1022 |
| 1023 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); | 1023 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); |
| 1024 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); | 1024 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); |
| 1025 | 1025 |
| 1026 void setHasViewportUnits() { m_hasViewportUnits = true; } | 1026 void setHasViewportUnits() { m_hasViewportUnits = true; } |
| 1027 bool hasViewportUnits() const { return m_hasViewportUnits; } | 1027 bool hasViewportUnits() const { return m_hasViewportUnits; } |
| 1028 void notifyResizeForViewportUnits(); | 1028 void notifyResizeForViewportUnits(); |
| 1029 | 1029 |
| 1030 void registerVisibilityObserver(DocumentVisibilityObserver*); | 1030 void registerVisibilityObserver(DocumentVisibilityObserver*); |
| 1031 void unregisterVisibilityObserver(DocumentVisibilityObserver*); | 1031 void unregisterVisibilityObserver(DocumentVisibilityObserver*); |
| 1032 | 1032 |
| 1033 void updateStyleInvalidationIfNeeded(); | 1033 void updateStyleInvalidationIfNeeded(); |
| 1034 | 1034 |
| 1035 virtual void trace(Visitor*) OVERRIDE; | 1035 virtual void trace(Visitor*) override; |
| 1036 | 1036 |
| 1037 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } | 1037 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } |
| 1038 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } | 1038 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } |
| 1039 | 1039 |
| 1040 AtomicString convertLocalName(const AtomicString&); | 1040 AtomicString convertLocalName(const AtomicString&); |
| 1041 | 1041 |
| 1042 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) OVERRIDE; | 1042 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; |
| 1043 virtual v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*,
v8::Handle<v8::Object> wrapper, v8::Isolate*) OVERRIDE; | 1043 virtual v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*,
v8::Handle<v8::Object> wrapper, v8::Isolate*) override; |
| 1044 | 1044 |
| 1045 protected: | 1045 protected: |
| 1046 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1046 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1047 | 1047 |
| 1048 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; | 1048 virtual void didUpdateSecurityOrigin() override final; |
| 1049 | 1049 |
| 1050 void clearXMLVersion() { m_xmlVersion = String(); } | 1050 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1051 | 1051 |
| 1052 #if !ENABLE(OILPAN) | 1052 #if !ENABLE(OILPAN) |
| 1053 virtual void dispose() OVERRIDE; | 1053 virtual void dispose() override; |
| 1054 #endif | 1054 #endif |
| 1055 | 1055 |
| 1056 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); | 1056 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); |
| 1057 | 1057 |
| 1058 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); | 1058 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); |
| 1059 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } | 1059 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
| 1060 | 1060 |
| 1061 private: | 1061 private: |
| 1062 friend class Node; | 1062 friend class Node; |
| 1063 friend class IgnoreDestructiveWriteCountIncrementer; | 1063 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1064 | 1064 |
| 1065 bool isDocumentFragment() const WTF_DELETED_FUNCTION; // This will catch any
one doing an unnecessary check. | 1065 bool isDocumentFragment() const WTF_DELETED_FUNCTION; // This will catch any
one doing an unnecessary check. |
| 1066 bool isDocumentNode() const WTF_DELETED_FUNCTION; // This will catch anyone
doing an unnecessary check. | 1066 bool isDocumentNode() const WTF_DELETED_FUNCTION; // This will catch anyone
doing an unnecessary check. |
| 1067 bool isElementNode() const WTF_DELETED_FUNCTION; // This will catch anyone d
oing an unnecessary check. | 1067 bool isElementNode() const WTF_DELETED_FUNCTION; // This will catch anyone d
oing an unnecessary check. |
| 1068 | 1068 |
| 1069 ScriptedAnimationController& ensureScriptedAnimationController(); | 1069 ScriptedAnimationController& ensureScriptedAnimationController(); |
| 1070 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } | 1070 virtual SecurityContext& securityContext() override final { return *this; } |
| 1071 virtual EventQueue* eventQueue() const OVERRIDE FINAL; | 1071 virtual EventQueue* eventQueue() const override final; |
| 1072 | 1072 |
| 1073 // FIXME: Rename the StyleRecalc state to RenderTreeUpdate. | 1073 // FIXME: Rename the StyleRecalc state to RenderTreeUpdate. |
| 1074 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } | 1074 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } |
| 1075 | 1075 |
| 1076 bool shouldScheduleRenderTreeUpdate() const; | 1076 bool shouldScheduleRenderTreeUpdate() const; |
| 1077 void scheduleRenderTreeUpdate(); | 1077 void scheduleRenderTreeUpdate(); |
| 1078 | 1078 |
| 1079 bool needsFullRenderTreeUpdate() const; | 1079 bool needsFullRenderTreeUpdate() const; |
| 1080 | 1080 |
| 1081 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); | 1081 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); |
| 1082 | 1082 |
| 1083 bool dirtyElementsForLayerUpdate(); | 1083 bool dirtyElementsForLayerUpdate(); |
| 1084 void updateDistributionIfNeeded(); | 1084 void updateDistributionIfNeeded(); |
| 1085 void updateUseShadowTreesIfNeeded(); | 1085 void updateUseShadowTreesIfNeeded(); |
| 1086 void evaluateMediaQueryListIfNeeded(); | 1086 void evaluateMediaQueryListIfNeeded(); |
| 1087 | 1087 |
| 1088 void updateRenderTree(StyleRecalcChange); | 1088 void updateRenderTree(StyleRecalcChange); |
| 1089 void updateStyle(StyleRecalcChange); | 1089 void updateStyle(StyleRecalcChange); |
| 1090 | 1090 |
| 1091 void detachParser(); | 1091 void detachParser(); |
| 1092 | 1092 |
| 1093 void clearWeakMembers(Visitor*); | 1093 void clearWeakMembers(Visitor*); |
| 1094 | 1094 |
| 1095 virtual bool isDocument() const OVERRIDE FINAL { return true; } | 1095 virtual bool isDocument() const override final { return true; } |
| 1096 | 1096 |
| 1097 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 1097 virtual void childrenChanged(const ChildrenChange&) override; |
| 1098 | 1098 |
| 1099 virtual String nodeName() const OVERRIDE FINAL; | 1099 virtual String nodeName() const override final; |
| 1100 virtual NodeType nodeType() const OVERRIDE FINAL; | 1100 virtual NodeType nodeType() const override final; |
| 1101 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; | 1101 virtual bool childTypeAllowed(NodeType) const override final; |
| 1102 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) OVERRIDE FI
NAL; | 1102 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) override fi
nal; |
| 1103 void cloneDataFromDocument(const Document&); | 1103 void cloneDataFromDocument(const Document&); |
| 1104 | 1104 |
| 1105 #if !ENABLE(OILPAN) | 1105 #if !ENABLE(OILPAN) |
| 1106 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } | 1106 virtual void refExecutionContext() override final { ref(); } |
| 1107 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } | 1107 virtual void derefExecutionContext() override final { deref(); } |
| 1108 #endif | 1108 #endif |
| 1109 | 1109 |
| 1110 virtual const KURL& virtualURL() const OVERRIDE FINAL; // Same as url(), but
needed for ExecutionContext to implement it without a performance loss for dire
ct calls. | 1110 virtual const KURL& virtualURL() const override final; // Same as url(), but
needed for ExecutionContext to implement it without a performance loss for dire
ct calls. |
| 1111 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; // Same
as completeURL() for the same reason as above. | 1111 virtual KURL virtualCompleteURL(const String&) const override final; // Same
as completeURL() for the same reason as above. |
| 1112 | 1112 |
| 1113 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE FINAL; | 1113 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) override final; |
| 1114 | 1114 |
| 1115 virtual double timerAlignmentInterval() const OVERRIDE FINAL; | 1115 virtual double timerAlignmentInterval() const override final; |
| 1116 | 1116 |
| 1117 void updateTitle(const String&); | 1117 void updateTitle(const String&); |
| 1118 void updateFocusAppearanceTimerFired(Timer<Document>*); | 1118 void updateFocusAppearanceTimerFired(Timer<Document>*); |
| 1119 void updateBaseURL(); | 1119 void updateBaseURL(); |
| 1120 | 1120 |
| 1121 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*); | 1121 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*); |
| 1122 | 1122 |
| 1123 void loadEventDelayTimerFired(Timer<Document>*); | 1123 void loadEventDelayTimerFired(Timer<Document>*); |
| 1124 void pluginLoadingTimerFired(Timer<Document>*); | 1124 void pluginLoadingTimerFired(Timer<Document>*); |
| 1125 | 1125 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 Node* eventTargetNodeForDocument(Document*); | 1411 Node* eventTargetNodeForDocument(Document*); |
| 1412 | 1412 |
| 1413 } // namespace blink | 1413 } // namespace blink |
| 1414 | 1414 |
| 1415 #ifndef NDEBUG | 1415 #ifndef NDEBUG |
| 1416 // Outside the WebCore namespace for ease of invocation from gdb. | 1416 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1417 void showLiveDocumentInstances(); | 1417 void showLiveDocumentInstances(); |
| 1418 #endif | 1418 #endif |
| 1419 | 1419 |
| 1420 #endif // Document_h | 1420 #endif // Document_h |
| OLD | NEW |