| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 MediaQueryMatcher& mediaQueryMatcher(); | 227 MediaQueryMatcher& mediaQueryMatcher(); |
| 228 | 228 |
| 229 void mediaQueryAffectingValueChanged(); | 229 void mediaQueryAffectingValueChanged(); |
| 230 | 230 |
| 231 using ContainerNode::ref; | 231 using ContainerNode::ref; |
| 232 using ContainerNode::deref; | 232 using ContainerNode::deref; |
| 233 using SecurityContext::securityOrigin; | 233 using SecurityContext::securityOrigin; |
| 234 using SecurityContext::contentSecurityPolicy; | 234 using SecurityContext::contentSecurityPolicy; |
| 235 using ExecutionContextClient::addConsoleMessage; | 235 using ExecutionContextClient::addConsoleMessage; |
| 236 | 236 |
| 237 virtual bool canContainRangeEndPoint() const { return true; } | 237 virtual bool canContainRangeEndPoint() const OVERRIDE { return true; } |
| 238 | 238 |
| 239 SelectorQueryCache& selectorQueryCache(); | 239 SelectorQueryCache& selectorQueryCache(); |
| 240 | 240 |
| 241 // DOM methods & attributes for Document | 241 // DOM methods & attributes for Document |
| 242 | 242 |
| 243 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | 243 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
| 244 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); | 244 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); |
| 245 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); | 245 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); |
| 246 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); | 246 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); |
| 247 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); | 247 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; | 350 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; |
| 351 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } | 351 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } |
| 352 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } | 352 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } |
| 353 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } | 353 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } |
| 354 | 354 |
| 355 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser | 355 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser |
| 356 void setXMLVersion(const String&, ExceptionState&); | 356 void setXMLVersion(const String&, ExceptionState&); |
| 357 void setXMLStandalone(bool, ExceptionState&); | 357 void setXMLStandalone(bool, ExceptionState&); |
| 358 void setHasXMLDeclaration(bool hasXMLDeclaration) { m_hasXMLDeclaration = ha
sXMLDeclaration ? 1 : 0; } | 358 void setHasXMLDeclaration(bool hasXMLDeclaration) { m_hasXMLDeclaration = ha
sXMLDeclaration ? 1 : 0; } |
| 359 | 359 |
| 360 virtual KURL baseURI() const OVERRIDE; | 360 virtual KURL baseURI() const OVERRIDE FINAL; |
| 361 | 361 |
| 362 String visibilityState() const; | 362 String visibilityState() const; |
| 363 bool hidden() const; | 363 bool hidden() const; |
| 364 void dispatchVisibilityStateChangeEvent(); | 364 void dispatchVisibilityStateChangeEvent(); |
| 365 | 365 |
| 366 DOMSecurityPolicy* securityPolicy(); | 366 DOMSecurityPolicy* securityPolicy(); |
| 367 | 367 |
| 368 PassRefPtr<Node> adoptNode(PassRefPtr<Node> source, ExceptionState&); | 368 PassRefPtr<Node> adoptNode(PassRefPtr<Node> source, ExceptionState&); |
| 369 | 369 |
| 370 PassRefPtr<HTMLCollection> images(); | 370 PassRefPtr<HTMLCollection> images(); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // comments surrounding their declaration. | 535 // comments surrounding their declaration. |
| 536 void setBaseURLOverride(const KURL&); | 536 void setBaseURLOverride(const KURL&); |
| 537 const KURL& baseURLOverride() const { return m_baseURLOverride; } | 537 const KURL& baseURLOverride() const { return m_baseURLOverride; } |
| 538 const KURL& baseElementURL() const { return m_baseElementURL; } | 538 const KURL& baseElementURL() const { return m_baseElementURL; } |
| 539 const AtomicString& baseTarget() const { return m_baseTarget; } | 539 const AtomicString& baseTarget() const { return m_baseTarget; } |
| 540 void processBaseElement(); | 540 void processBaseElement(); |
| 541 | 541 |
| 542 using TreeScope::completeURL; // Disambiguate between ExecutionContext and T
reeScope methods. | 542 using TreeScope::completeURL; // Disambiguate between ExecutionContext and T
reeScope methods. |
| 543 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con
st; | 543 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con
st; |
| 544 | 544 |
| 545 virtual String userAgent(const KURL&) const; | 545 virtual String userAgent(const KURL&) const OVERRIDE FINAL; |
| 546 virtual void disableEval(const String& errorMessage); | 546 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; |
| 547 | 547 |
| 548 bool canNavigate(Frame* targetFrame); | 548 bool canNavigate(Frame* targetFrame); |
| 549 Frame* findUnsafeParentScrollPropagationBoundary(); | 549 Frame* findUnsafeParentScrollPropagationBoundary(); |
| 550 | 550 |
| 551 CSSStyleSheet* elementSheet(); | 551 CSSStyleSheet* elementSheet(); |
| 552 | 552 |
| 553 virtual PassRefPtr<DocumentParser> createParser(); | 553 virtual PassRefPtr<DocumentParser> createParser(); |
| 554 DocumentParser* parser() const { return m_parser.get(); } | 554 DocumentParser* parser() const { return m_parser.get(); } |
| 555 ScriptableDocumentParser* scriptableDocumentParser() const; | 555 ScriptableDocumentParser* scriptableDocumentParser() const; |
| 556 | 556 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 // Extension for manipulating canvas drawing contexts for use in CSS | 827 // Extension for manipulating canvas drawing contexts for use in CSS |
| 828 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String
& name, int width, int height); | 828 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String
& name, int width, int height); |
| 829 HTMLCanvasElement* getCSSCanvasElement(const String& name); | 829 HTMLCanvasElement* getCSSCanvasElement(const String& name); |
| 830 | 830 |
| 831 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } | 831 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } |
| 832 void parseDNSPrefetchControlHeader(const String&); | 832 void parseDNSPrefetchControlHeader(const String&); |
| 833 | 833 |
| 834 // FIXME(crbug.com/305497): This should be removed once DOMWindow is an Exec
utionContext. | 834 // FIXME(crbug.com/305497): This should be removed once DOMWindow is an Exec
utionContext. |
| 835 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Execute
s the task on context's thread asynchronously. | 835 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Execute
s the task on context's thread asynchronously. |
| 836 | 836 |
| 837 virtual void tasksWereSuspended() OVERRIDE; | 837 virtual void tasksWereSuspended() OVERRIDE FINAL; |
| 838 virtual void tasksWereResumed() OVERRIDE; | 838 virtual void tasksWereResumed() OVERRIDE FINAL; |
| 839 virtual void suspendScheduledTasks() OVERRIDE; | 839 virtual void suspendScheduledTasks() OVERRIDE FINAL; |
| 840 virtual void resumeScheduledTasks() OVERRIDE; | 840 virtual void resumeScheduledTasks() OVERRIDE FINAL; |
| 841 virtual bool tasksNeedSuspension() OVERRIDE; | 841 virtual bool tasksNeedSuspension() OVERRIDE FINAL; |
| 842 | 842 |
| 843 void finishedParsing(); | 843 void finishedParsing(); |
| 844 | 844 |
| 845 void setEncodingData(const DocumentEncodingData& newData); | 845 void setEncodingData(const DocumentEncodingData& newData); |
| 846 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding;
} | 846 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding;
} |
| 847 | 847 |
| 848 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet
ectedHeuristically; } | 848 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet
ectedHeuristically; } |
| 849 bool sawDecodingError() const { return m_encodingData.sawDecodingError; } | 849 bool sawDecodingError() const { return m_encodingData.sawDecodingError; } |
| 850 | 850 |
| 851 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } | 851 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } |
| 852 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } | 852 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } |
| 853 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } | 853 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } |
| 854 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } | 854 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } |
| 855 const Vector<AnnotatedRegionValue>& annotatedRegions() const; | 855 const Vector<AnnotatedRegionValue>& annotatedRegions() const; |
| 856 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); | 856 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); |
| 857 | 857 |
| 858 virtual void removeAllEventListeners(); | 858 virtual void removeAllEventListeners() OVERRIDE FINAL; |
| 859 | 859 |
| 860 const SVGDocumentExtensions* svgExtensions(); | 860 const SVGDocumentExtensions* svgExtensions(); |
| 861 SVGDocumentExtensions* accessSVGExtensions(); | 861 SVGDocumentExtensions* accessSVGExtensions(); |
| 862 | 862 |
| 863 void initSecurityContext(); | 863 void initSecurityContext(); |
| 864 void initSecurityContext(const DocumentInit&); | 864 void initSecurityContext(const DocumentInit&); |
| 865 void initContentSecurityPolicy(const ContentSecurityPolicyResponseHeaders&); | 865 void initContentSecurityPolicy(const ContentSecurityPolicyResponseHeaders&); |
| 866 | 866 |
| 867 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR
L, const WTF::OrdinalNumber& contextLine); | 867 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR
L, const WTF::OrdinalNumber& contextLine); |
| 868 bool allowExecutingScripts(Node*); | 868 bool allowExecutingScripts(Node*); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 880 UnloadEventInProgress, | 880 UnloadEventInProgress, |
| 881 UnloadEventHandled | 881 UnloadEventHandled |
| 882 }; | 882 }; |
| 883 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN
otRun; } | 883 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN
otRun; } |
| 884 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } | 884 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } |
| 885 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } | 885 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } |
| 886 | 886 |
| 887 void setContainsPlugins() { m_containsPlugins = true; } | 887 void setContainsPlugins() { m_containsPlugins = true; } |
| 888 bool containsPlugins() const { return m_containsPlugins; } | 888 bool containsPlugins() const { return m_containsPlugins; } |
| 889 | 889 |
| 890 virtual bool isContextThread() const; | 890 virtual bool isContextThread() const OVERRIDE FINAL; |
| 891 virtual bool isJSExecutionForbidden() const { return false; } | 891 virtual bool isJSExecutionForbidden() const OVERRIDE FINAL { return false; } |
| 892 | 892 |
| 893 bool containsValidityStyleRules() const { return m_containsValidityStyleRule
s; } | 893 bool containsValidityStyleRules() const { return m_containsValidityStyleRule
s; } |
| 894 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true;
} | 894 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true;
} |
| 895 | 895 |
| 896 void enqueueResizeEvent(); | 896 void enqueueResizeEvent(); |
| 897 void enqueueScrollEventForNode(Node*); | 897 void enqueueScrollEventForNode(Node*); |
| 898 void enqueueAnimationFrameEvent(PassRefPtr<Event>); | 898 void enqueueAnimationFrameEvent(PassRefPtr<Event>); |
| 899 | 899 |
| 900 const QualifiedName& idAttributeName() const { return m_idAttributeName; } | 900 const QualifiedName& idAttributeName() const { return m_idAttributeName; } |
| 901 | 901 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 912 | 912 |
| 913 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int
pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota
tionAngle, float force) const; | 913 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int
pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota
tionAngle, float force) const; |
| 914 PassRefPtr<TouchList> createTouchList(Vector<RefPtr<Touch> >&) const; | 914 PassRefPtr<TouchList> createTouchList(Vector<RefPtr<Touch> >&) const; |
| 915 | 915 |
| 916 const DocumentTiming* timing() const { return &m_documentTiming; } | 916 const DocumentTiming* timing() const { return &m_documentTiming; } |
| 917 | 917 |
| 918 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); | 918 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); |
| 919 void cancelAnimationFrame(int id); | 919 void cancelAnimationFrame(int id); |
| 920 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 920 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
| 921 | 921 |
| 922 virtual EventTarget* errorEventTarget(); | 922 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; |
| 923 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>); | 923 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) OVERR
IDE FINAL; |
| 924 | 924 |
| 925 void initDNSPrefetch(); | 925 void initDNSPrefetch(); |
| 926 | 926 |
| 927 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes
tureTimestamp; } | 927 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes
tureTimestamp; } |
| 928 void resetLastHandledUserGestureTimestamp(); | 928 void resetLastHandledUserGestureTimestamp(); |
| 929 | 929 |
| 930 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } | 930 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } |
| 931 | 931 |
| 932 void didAddTouchEventHandler(Node*); | 932 void didAddTouchEventHandler(Node*); |
| 933 void didRemoveTouchEventHandler(Node*); | 933 void didRemoveTouchEventHandler(Node*); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 | 991 |
| 992 const Document* templateDocument() const; | 992 const Document* templateDocument() const; |
| 993 Document& ensureTemplateDocument(); | 993 Document& ensureTemplateDocument(); |
| 994 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc
umentHost = templateDocumentHost; } | 994 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc
umentHost = templateDocumentHost; } |
| 995 Document* templateDocumentHost() { return m_templateDocumentHost; } | 995 Document* templateDocumentHost() { return m_templateDocumentHost; } |
| 996 | 996 |
| 997 void didAssociateFormControl(Element*); | 997 void didAssociateFormControl(Element*); |
| 998 | 998 |
| 999 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con
st String& message, unsigned long requestIdentifier); | 999 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con
st String& message, unsigned long requestIdentifier); |
| 1000 | 1000 |
| 1001 virtual DOMWindow* executingWindow() OVERRIDE { return domWindow(); } | 1001 virtual DOMWindow* executingWindow() OVERRIDE FINAL { return domWindow(); } |
| 1002 virtual void userEventWasHandled() OVERRIDE { resetLastHandledUserGestureTim
estamp(); } | 1002 virtual void userEventWasHandled() OVERRIDE FINAL { resetLastHandledUserGest
ureTimestamp(); } |
| 1003 | 1003 |
| 1004 DocumentLifecycleNotifier& lifecycleNotifier(); | 1004 DocumentLifecycleNotifier& lifecycleNotifier(); |
| 1005 bool isActive() const { return m_lifecyle.state() == DocumentLifecycle::Acti
ve; } | 1005 bool isActive() const { return m_lifecyle.state() == DocumentLifecycle::Acti
ve; } |
| 1006 bool isStopped() const { return m_lifecyle.state() == DocumentLifecycle::Sto
pped; } | 1006 bool isStopped() const { return m_lifecyle.state() == DocumentLifecycle::Sto
pped; } |
| 1007 | 1007 |
| 1008 enum HttpRefreshType { | 1008 enum HttpRefreshType { |
| 1009 HttpRefreshFromHeader, | 1009 HttpRefreshFromHeader, |
| 1010 HttpRefreshFromMetaTag | 1010 HttpRefreshFromMetaTag |
| 1011 }; | 1011 }; |
| 1012 void maybeHandleHttpRefresh(const String&, HttpRefreshType); | 1012 void maybeHandleHttpRefresh(const String&, HttpRefreshType); |
| 1013 | 1013 |
| 1014 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); | 1014 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); |
| 1015 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); | 1015 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); |
| 1016 | 1016 |
| 1017 void setHasViewportUnits() { m_hasViewportUnits = true; } | 1017 void setHasViewportUnits() { m_hasViewportUnits = true; } |
| 1018 bool hasViewportUnits() const { return m_hasViewportUnits; } | 1018 bool hasViewportUnits() const { return m_hasViewportUnits; } |
| 1019 void notifyResizeForViewportUnits(); | 1019 void notifyResizeForViewportUnits(); |
| 1020 | 1020 |
| 1021 protected: | 1021 protected: |
| 1022 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1022 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1023 | 1023 |
| 1024 virtual void didUpdateSecurityOrigin() OVERRIDE; | 1024 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; |
| 1025 | 1025 |
| 1026 void clearXMLVersion() { m_xmlVersion = String(); } | 1026 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1027 | 1027 |
| 1028 virtual void dispose() OVERRIDE; | 1028 virtual void dispose() OVERRIDE; |
| 1029 | 1029 |
| 1030 virtual PassRefPtr<Document> cloneDocumentWithoutChildren(); | 1030 virtual PassRefPtr<Document> cloneDocumentWithoutChildren(); |
| 1031 | 1031 |
| 1032 private: | 1032 private: |
| 1033 friend class Node; | 1033 friend class Node; |
| 1034 friend class IgnoreDestructiveWriteCountIncrementer; | 1034 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1035 | 1035 |
| 1036 ScriptedAnimationController& ensureScriptedAnimationController(); | 1036 ScriptedAnimationController& ensureScriptedAnimationController(); |
| 1037 virtual SecurityContext& securityContext() OVERRIDE { return *this; } | 1037 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } |
| 1038 virtual EventQueue* eventQueue() const FINAL; | 1038 virtual EventQueue* eventQueue() const OVERRIDE FINAL; |
| 1039 | 1039 |
| 1040 void updateDistributionIfNeeded(); | 1040 void updateDistributionIfNeeded(); |
| 1041 | 1041 |
| 1042 void detachParser(); | 1042 void detachParser(); |
| 1043 | 1043 |
| 1044 virtual bool isDocument() const OVERRIDE { return true; } | 1044 virtual bool isDocument() const OVERRIDE FINAL { return true; } |
| 1045 | 1045 |
| 1046 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 1046 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
| 1047 | 1047 |
| 1048 virtual String nodeName() const; | 1048 virtual String nodeName() const OVERRIDE FINAL; |
| 1049 virtual NodeType nodeType() const; | 1049 virtual NodeType nodeType() const OVERRIDE FINAL; |
| 1050 virtual bool childTypeAllowed(NodeType) const; | 1050 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; |
| 1051 virtual PassRefPtr<Node> cloneNode(bool deep = true); | 1051 virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE FINAL; |
| 1052 void cloneDataFromDocument(const Document&); | 1052 void cloneDataFromDocument(const Document&); |
| 1053 | 1053 |
| 1054 virtual void refExecutionContext() { ref(); } | 1054 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } |
| 1055 virtual void derefExecutionContext() { deref(); } | 1055 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } |
| 1056 | 1056 |
| 1057 virtual const KURL& virtualURL() const; // Same as url(), but needed for Exe
cutionContext to implement it without a performance loss for direct calls. | 1057 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. |
| 1058 virtual KURL virtualCompleteURL(const String&) const; // Same as completeURL
() for the same reason as above. | 1058 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; // Same
as completeURL() for the same reason as above. |
| 1059 | 1059 |
| 1060 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE; | 1060 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE FINAL; |
| 1061 virtual void addMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, ScriptState*); | 1061 virtual void addMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, ScriptState*) OVERRIDE FINAL; |
| 1062 void internalAddMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip
tState*); | 1062 void internalAddMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip
tState*); |
| 1063 | 1063 |
| 1064 virtual double timerAlignmentInterval() const; | 1064 virtual double timerAlignmentInterval() const OVERRIDE FINAL; |
| 1065 | 1065 |
| 1066 void updateTitle(const String&); | 1066 void updateTitle(const String&); |
| 1067 void updateFocusAppearanceTimerFired(Timer<Document>*); | 1067 void updateFocusAppearanceTimerFired(Timer<Document>*); |
| 1068 void updateBaseURL(); | 1068 void updateBaseURL(); |
| 1069 | 1069 |
| 1070 void executeScriptsWaitingForResourcesIfNeeded(); | 1070 void executeScriptsWaitingForResourcesIfNeeded(); |
| 1071 | 1071 |
| 1072 void seamlessParentUpdatedStylesheets(); | 1072 void seamlessParentUpdatedStylesheets(); |
| 1073 | 1073 |
| 1074 void recalcStyleForLayoutIgnoringPendingStylesheets(); | 1074 void recalcStyleForLayoutIgnoringPendingStylesheets(); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 inline bool Node::isDocumentNode() const | 1350 inline bool Node::isDocumentNode() const |
| 1351 { | 1351 { |
| 1352 return this == document(); | 1352 return this == document(); |
| 1353 } | 1353 } |
| 1354 | 1354 |
| 1355 Node* eventTargetNodeForDocument(Document*); | 1355 Node* eventTargetNodeForDocument(Document*); |
| 1356 | 1356 |
| 1357 } // namespace WebCore | 1357 } // namespace WebCore |
| 1358 | 1358 |
| 1359 #endif // Document_h | 1359 #endif // Document_h |
| OLD | NEW |