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, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #include "core/events/Event.h" | 104 #include "core/events/Event.h" |
105 #include "core/events/EventFactory.h" | 105 #include "core/events/EventFactory.h" |
106 #include "core/events/EventListener.h" | 106 #include "core/events/EventListener.h" |
107 #include "core/events/HashChangeEvent.h" | 107 #include "core/events/HashChangeEvent.h" |
108 #include "core/events/PageTransitionEvent.h" | 108 #include "core/events/PageTransitionEvent.h" |
109 #include "core/events/ScopedEventQueue.h" | 109 #include "core/events/ScopedEventQueue.h" |
110 #include "core/events/ThreadLocalEventNames.h" | 110 #include "core/events/ThreadLocalEventNames.h" |
111 #include "core/fetch/ResourceFetcher.h" | 111 #include "core/fetch/ResourceFetcher.h" |
112 #include "core/fetch/TextResourceDecoder.h" | 112 #include "core/fetch/TextResourceDecoder.h" |
113 #include "core/frame/ContentSecurityPolicy.h" | 113 #include "core/frame/ContentSecurityPolicy.h" |
114 #include "core/frame/DOMSecurityPolicy.h" | |
115 #include "core/frame/DOMWindow.h" | 114 #include "core/frame/DOMWindow.h" |
116 #include "core/frame/Frame.h" | 115 #include "core/frame/Frame.h" |
117 #include "core/frame/FrameHost.h" | 116 #include "core/frame/FrameHost.h" |
118 #include "core/frame/FrameView.h" | 117 #include "core/frame/FrameView.h" |
119 #include "core/frame/History.h" | 118 #include "core/frame/History.h" |
120 #include "core/frame/PageConsole.h" | 119 #include "core/frame/PageConsole.h" |
121 #include "core/frame/Settings.h" | 120 #include "core/frame/Settings.h" |
122 #include "core/frame/animation/AnimationController.h" | 121 #include "core/frame/animation/AnimationController.h" |
123 #include "core/html/HTMLAllCollection.h" | 122 #include "core/html/HTMLAllCollection.h" |
124 #include "core/html/HTMLAnchorElement.h" | 123 #include "core/html/HTMLAnchorElement.h" |
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 return pageVisibilityState() != PageVisibilityStateVisible; | 1382 return pageVisibilityState() != PageVisibilityStateVisible; |
1384 } | 1383 } |
1385 | 1384 |
1386 void Document::dispatchVisibilityStateChangeEvent() | 1385 void Document::dispatchVisibilityStateChangeEvent() |
1387 { | 1386 { |
1388 dispatchEvent(Event::create(EventTypeNames::visibilitychange)); | 1387 dispatchEvent(Event::create(EventTypeNames::visibilitychange)); |
1389 // Also send out the deprecated version until it can be removed. | 1388 // Also send out the deprecated version until it can be removed. |
1390 dispatchEvent(Event::create(EventTypeNames::webkitvisibilitychange)); | 1389 dispatchEvent(Event::create(EventTypeNames::webkitvisibilitychange)); |
1391 } | 1390 } |
1392 | 1391 |
1393 DOMSecurityPolicy* Document::securityPolicy() | |
1394 { | |
1395 if (!m_domSecurityPolicy) | |
1396 m_domSecurityPolicy = DOMSecurityPolicy::create(this); | |
1397 return m_domSecurityPolicy.get(); | |
1398 } | |
1399 | |
1400 String Document::nodeName() const | 1392 String Document::nodeName() const |
1401 { | 1393 { |
1402 return "#document"; | 1394 return "#document"; |
1403 } | 1395 } |
1404 | 1396 |
1405 Node::NodeType Document::nodeType() const | 1397 Node::NodeType Document::nodeType() const |
1406 { | 1398 { |
1407 return DOCUMENT_NODE; | 1399 return DOCUMENT_NODE; |
1408 } | 1400 } |
1409 | 1401 |
(...skipping 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5282 if (!element) { | 5274 if (!element) { |
5283 m_autofocusElement = 0; | 5275 m_autofocusElement = 0; |
5284 return; | 5276 return; |
5285 } | 5277 } |
5286 if (!m_autofocusElement) | 5278 if (!m_autofocusElement) |
5287 m_taskRunner->postTask(AutofocusTask::create()); | 5279 m_taskRunner->postTask(AutofocusTask::create()); |
5288 m_autofocusElement = element; | 5280 m_autofocusElement = element; |
5289 } | 5281 } |
5290 | 5282 |
5291 } // namespace WebCore | 5283 } // namespace WebCore |
OLD | NEW |