| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 ~Document() override; | 223 ~Document() override; |
| 224 | 224 |
| 225 MediaQueryMatcher& mediaQueryMatcher(); | 225 MediaQueryMatcher& mediaQueryMatcher(); |
| 226 | 226 |
| 227 void mediaQueryAffectingValueChanged(); | 227 void mediaQueryAffectingValueChanged(); |
| 228 | 228 |
| 229 #if !ENABLE(OILPAN) | 229 #if !ENABLE(OILPAN) |
| 230 using ContainerNode::ref; | 230 using ContainerNode::ref; |
| 231 using ContainerNode::deref; | 231 using ContainerNode::deref; |
| 232 #endif | 232 #endif |
| 233 using SecurityContext::securityOrigin; | 233 using SecurityContext::getSecurityOrigin; |
| 234 using SecurityContext::contentSecurityPolicy; | 234 using SecurityContext::contentSecurityPolicy; |
| 235 using TreeScope::getElementById; | 235 using TreeScope::getElementById; |
| 236 | 236 |
| 237 bool canContainRangeEndPoint() const override { return true; } | 237 bool canContainRangeEndPoint() const override { return true; } |
| 238 | 238 |
| 239 SelectorQueryCache& selectorQueryCache(); | 239 SelectorQueryCache& selectorQueryCache(); |
| 240 | 240 |
| 241 // Focus Management. | 241 // Focus Management. |
| 242 Element* activeElement() const; | 242 Element* activeElement() const; |
| 243 bool hasFocus() const; | 243 bool hasFocus() const; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; | 319 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; |
| 320 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } | 320 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } |
| 321 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } | 321 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } |
| 322 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } | 322 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } |
| 323 | 323 |
| 324 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser | 324 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser |
| 325 void setXMLVersion(const String&, ExceptionState&); | 325 void setXMLVersion(const String&, ExceptionState&); |
| 326 void setXMLStandalone(bool, ExceptionState&); | 326 void setXMLStandalone(bool, ExceptionState&); |
| 327 void setHasXMLDeclaration(bool hasXMLDeclaration) { m_hasXMLDeclaration = ha
sXMLDeclaration ? 1 : 0; } | 327 void setHasXMLDeclaration(bool hasXMLDeclaration) { m_hasXMLDeclaration = ha
sXMLDeclaration ? 1 : 0; } |
| 328 | 328 |
| 329 String origin() const { return securityOrigin()->toString(); } | 329 String origin() const { return getSecurityOrigin()->toString(); } |
| 330 String suborigin() const { return securityOrigin()->suboriginName(); } | 330 String suborigin() const { return getSecurityOrigin()->suboriginName(); } |
| 331 | 331 |
| 332 String visibilityState() const; | 332 String visibilityState() const; |
| 333 PageVisibilityState pageVisibilityState() const; | 333 PageVisibilityState pageVisibilityState() const; |
| 334 bool hidden() const; | 334 bool hidden() const; |
| 335 void didChangeVisibilityState(); | 335 void didChangeVisibilityState(); |
| 336 | 336 |
| 337 PassRefPtrWillBeRawPtr<Node> adoptNode(PassRefPtrWillBeRawPtr<Node> source,
ExceptionState&); | 337 PassRefPtrWillBeRawPtr<Node> adoptNode(PassRefPtrWillBeRawPtr<Node> source,
ExceptionState&); |
| 338 | 338 |
| 339 PassRefPtrWillBeRawPtr<HTMLCollection> images(); | 339 PassRefPtrWillBeRawPtr<HTMLCollection> images(); |
| 340 PassRefPtrWillBeRawPtr<HTMLCollection> embeds(); | 340 PassRefPtrWillBeRawPtr<HTMLCollection> embeds(); |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 friend class NthIndexCache; | 1085 friend class NthIndexCache; |
| 1086 | 1086 |
| 1087 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. | 1087 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. |
| 1088 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. | 1088 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. |
| 1089 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. | 1089 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. |
| 1090 | 1090 |
| 1091 ScriptedAnimationController& ensureScriptedAnimationController(); | 1091 ScriptedAnimationController& ensureScriptedAnimationController(); |
| 1092 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); | 1092 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); |
| 1093 void initSecurityContext(const DocumentInit&); | 1093 void initSecurityContext(const DocumentInit&); |
| 1094 SecurityContext& securityContext() final { return *this; } | 1094 SecurityContext& securityContext() final { return *this; } |
| 1095 EventQueue* eventQueue() const final; | 1095 EventQueue* getEventQueue() const final; |
| 1096 | 1096 |
| 1097 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. | 1097 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. |
| 1098 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } | 1098 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } |
| 1099 | 1099 |
| 1100 bool shouldScheduleLayoutTreeUpdate() const; | 1100 bool shouldScheduleLayoutTreeUpdate() const; |
| 1101 void scheduleLayoutTreeUpdate(); | 1101 void scheduleLayoutTreeUpdate(); |
| 1102 | 1102 |
| 1103 bool needsFullLayoutTreeUpdate() const; | 1103 bool needsFullLayoutTreeUpdate() const; |
| 1104 | 1104 |
| 1105 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); | 1105 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1450 | 1450 |
| 1451 } // namespace blink | 1451 } // namespace blink |
| 1452 | 1452 |
| 1453 #ifndef NDEBUG | 1453 #ifndef NDEBUG |
| 1454 // Outside the WebCore namespace for ease of invocation from gdb. | 1454 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1455 CORE_EXPORT void showLiveDocumentInstances(); | 1455 CORE_EXPORT void showLiveDocumentInstances(); |
| 1456 #endif | 1456 #endif |
| 1457 | 1457 |
| 1458 #endif // Document_h | 1458 #endif // Document_h |
| OLD | NEW |