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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "core/css/StyleSheetList.h" | 55 #include "core/css/StyleSheetList.h" |
56 #include "core/css/resolver/FontBuilder.h" | 56 #include "core/css/resolver/FontBuilder.h" |
57 #include "core/css/resolver/StyleResolver.h" | 57 #include "core/css/resolver/StyleResolver.h" |
58 #include "core/css/resolver/StyleResolverStats.h" | 58 #include "core/css/resolver/StyleResolverStats.h" |
59 #include "core/dom/AddConsoleMessageTask.h" | 59 #include "core/dom/AddConsoleMessageTask.h" |
60 #include "core/dom/Attr.h" | 60 #include "core/dom/Attr.h" |
61 #include "core/dom/CDATASection.h" | 61 #include "core/dom/CDATASection.h" |
62 #include "core/dom/Comment.h" | 62 #include "core/dom/Comment.h" |
63 #include "core/dom/ContextFeatures.h" | 63 #include "core/dom/ContextFeatures.h" |
64 #include "core/dom/DOMImplementation.h" | 64 #include "core/dom/DOMImplementation.h" |
65 #include "core/dom/DOMNamedFlowCollection.h" | |
66 #include "core/dom/DocumentFragment.h" | 65 #include "core/dom/DocumentFragment.h" |
67 #include "core/dom/DocumentLifecycleNotifier.h" | 66 #include "core/dom/DocumentLifecycleNotifier.h" |
68 #include "core/dom/DocumentLifecycleObserver.h" | 67 #include "core/dom/DocumentLifecycleObserver.h" |
69 #include "core/dom/DocumentMarkerController.h" | 68 #include "core/dom/DocumentMarkerController.h" |
70 #include "core/dom/DocumentType.h" | 69 #include "core/dom/DocumentType.h" |
71 #include "core/dom/Element.h" | 70 #include "core/dom/Element.h" |
72 #include "core/dom/ElementDataCache.h" | 71 #include "core/dom/ElementDataCache.h" |
73 #include "core/dom/ElementTraversal.h" | 72 #include "core/dom/ElementTraversal.h" |
74 #include "core/dom/ExceptionCode.h" | 73 #include "core/dom/ExceptionCode.h" |
75 #include "core/dom/ExecutionContextTask.h" | 74 #include "core/dom/ExecutionContextTask.h" |
76 #include "core/dom/MainThreadTaskRunner.h" | 75 #include "core/dom/MainThreadTaskRunner.h" |
77 #include "core/dom/MutationObserver.h" | 76 #include "core/dom/MutationObserver.h" |
78 #include "core/dom/NamedFlowCollection.h" | |
79 #include "core/dom/NodeChildRemovalTracker.h" | 77 #include "core/dom/NodeChildRemovalTracker.h" |
80 #include "core/dom/NodeFilter.h" | 78 #include "core/dom/NodeFilter.h" |
81 #include "core/dom/NodeIterator.h" | 79 #include "core/dom/NodeIterator.h" |
82 #include "core/dom/NodeRareData.h" | 80 #include "core/dom/NodeRareData.h" |
83 #include "core/dom/NodeRenderStyle.h" | 81 #include "core/dom/NodeRenderStyle.h" |
84 #include "core/dom/NodeRenderingTraversal.h" | 82 #include "core/dom/NodeRenderingTraversal.h" |
85 #include "core/dom/NodeTraversal.h" | 83 #include "core/dom/NodeTraversal.h" |
86 #include "core/dom/NodeWithIndex.h" | 84 #include "core/dom/NodeWithIndex.h" |
87 #include "core/dom/PostAttachCallbacks.h" | 85 #include "core/dom/PostAttachCallbacks.h" |
88 #include "core/dom/ProcessingInstruction.h" | 86 #include "core/dom/ProcessingInstruction.h" |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 ASSERT(qName == e->tagQName()); | 1051 ASSERT(qName == e->tagQName()); |
1054 | 1052 |
1055 return e.release(); | 1053 return e.release(); |
1056 } | 1054 } |
1057 | 1055 |
1058 bool Document::regionBasedColumnsEnabled() const | 1056 bool Document::regionBasedColumnsEnabled() const |
1059 { | 1057 { |
1060 return settings() && settings()->regionBasedColumnsEnabled(); | 1058 return settings() && settings()->regionBasedColumnsEnabled(); |
1061 } | 1059 } |
1062 | 1060 |
1063 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows() | |
1064 { | |
1065 if (!RuntimeEnabledFeatures::cssRegionsEnabled() || !renderView()) | |
1066 return 0; | |
1067 | |
1068 updateStyleIfNeeded(); | |
1069 | |
1070 return namedFlows()->createCSSOMSnapshot(); | |
1071 } | |
1072 | |
1073 NamedFlowCollection* Document::namedFlows() | |
1074 { | |
1075 if (!m_namedFlows) | |
1076 m_namedFlows = NamedFlowCollection::create(this); | |
1077 | |
1078 return m_namedFlows.get(); | |
1079 } | |
1080 | |
1081 String Document::readyState() const | 1061 String Document::readyState() const |
1082 { | 1062 { |
1083 DEFINE_STATIC_LOCAL(const String, loading, ("loading")); | 1063 DEFINE_STATIC_LOCAL(const String, loading, ("loading")); |
1084 DEFINE_STATIC_LOCAL(const String, interactive, ("interactive")); | 1064 DEFINE_STATIC_LOCAL(const String, interactive, ("interactive")); |
1085 DEFINE_STATIC_LOCAL(const String, complete, ("complete")); | 1065 DEFINE_STATIC_LOCAL(const String, complete, ("complete")); |
1086 | 1066 |
1087 switch (m_readyState) { | 1067 switch (m_readyState) { |
1088 case Loading: | 1068 case Loading: |
1089 return loading; | 1069 return loading; |
1090 case Interactive: | 1070 case Interactive: |
(...skipping 4370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5461 void Document::defaultEventHandler(Event* event) | 5441 void Document::defaultEventHandler(Event* event) |
5462 { | 5442 { |
5463 if (frame() && frame()->remotePlatformLayer()) { | 5443 if (frame() && frame()->remotePlatformLayer()) { |
5464 frame()->chromeClient().forwardInputEvent(this, event); | 5444 frame()->chromeClient().forwardInputEvent(this, event); |
5465 return; | 5445 return; |
5466 } | 5446 } |
5467 Node::defaultEventHandler(event); | 5447 Node::defaultEventHandler(event); |
5468 } | 5448 } |
5469 | 5449 |
5470 } // namespace WebCore | 5450 } // namespace WebCore |
OLD | NEW |