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/DocumentSharedObjectPool.h" | 69 #include "core/dom/DocumentSharedObjectPool.h" |
71 #include "core/dom/DocumentType.h" | 70 #include "core/dom/DocumentType.h" |
72 #include "core/dom/Element.h" | 71 #include "core/dom/Element.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/NamedFlowCollection.h" | |
78 #include "core/dom/NodeChildRemovalTracker.h" | 76 #include "core/dom/NodeChildRemovalTracker.h" |
79 #include "core/dom/NodeFilter.h" | 77 #include "core/dom/NodeFilter.h" |
80 #include "core/dom/NodeIterator.h" | 78 #include "core/dom/NodeIterator.h" |
81 #include "core/dom/NodeRareData.h" | 79 #include "core/dom/NodeRareData.h" |
82 #include "core/dom/NodeRenderStyle.h" | 80 #include "core/dom/NodeRenderStyle.h" |
83 #include "core/dom/NodeRenderingTraversal.h" | 81 #include "core/dom/NodeRenderingTraversal.h" |
84 #include "core/dom/NodeTraversal.h" | 82 #include "core/dom/NodeTraversal.h" |
85 #include "core/dom/NodeWithIndex.h" | 83 #include "core/dom/NodeWithIndex.h" |
86 #include "core/dom/PostAttachCallbacks.h" | 84 #include "core/dom/PostAttachCallbacks.h" |
87 #include "core/dom/ProcessingInstruction.h" | 85 #include "core/dom/ProcessingInstruction.h" |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 ASSERT(qName == e->tagQName()); | 1061 ASSERT(qName == e->tagQName()); |
1064 | 1062 |
1065 return e.release(); | 1063 return e.release(); |
1066 } | 1064 } |
1067 | 1065 |
1068 bool Document::regionBasedColumnsEnabled() const | 1066 bool Document::regionBasedColumnsEnabled() const |
1069 { | 1067 { |
1070 return settings() && settings()->regionBasedColumnsEnabled(); | 1068 return settings() && settings()->regionBasedColumnsEnabled(); |
1071 } | 1069 } |
1072 | 1070 |
1073 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows() | |
1074 { | |
1075 if (!RuntimeEnabledFeatures::cssRegionsEnabled() || !renderView()) | |
1076 return 0; | |
1077 | |
1078 updateStyleIfNeeded(); | |
1079 | |
1080 return namedFlows()->createCSSOMSnapshot(); | |
1081 } | |
1082 | |
1083 NamedFlowCollection* Document::namedFlows() | |
1084 { | |
1085 if (!m_namedFlows) | |
1086 m_namedFlows = NamedFlowCollection::create(this); | |
1087 | |
1088 return m_namedFlows.get(); | |
1089 } | |
1090 | |
1091 PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI,
const AtomicString& qualifiedName, ExceptionState& exceptionState) | 1071 PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI,
const AtomicString& qualifiedName, ExceptionState& exceptionState) |
1092 { | 1072 { |
1093 AtomicString prefix, localName; | 1073 AtomicString prefix, localName; |
1094 if (!parseQualifiedName(qualifiedName, prefix, localName, exceptionState)) | 1074 if (!parseQualifiedName(qualifiedName, prefix, localName, exceptionState)) |
1095 return 0; | 1075 return 0; |
1096 | 1076 |
1097 QualifiedName qName(prefix, localName, namespaceURI); | 1077 QualifiedName qName(prefix, localName, namespaceURI); |
1098 if (!hasValidNamespaceForElements(qName)) { | 1078 if (!hasValidNamespaceForElements(qName)) { |
1099 exceptionState.throwDOMException(NamespaceError, "The namespace URI prov
ided ('" + namespaceURI + "') is not valid for the qualified name provided ('" +
qualifiedName + "')."); | 1079 exceptionState.throwDOMException(NamespaceError, "The namespace URI prov
ided ('" + namespaceURI + "') is not valid for the qualified name provided ('" +
qualifiedName + "')."); |
1100 return 0; | 1080 return 0; |
(...skipping 4279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5380 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 5360 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
5381 return false; | 5361 return false; |
5382 if (Frame* focusedFrame = page->focusController().focusedFrame()) { | 5362 if (Frame* focusedFrame = page->focusController().focusedFrame()) { |
5383 if (focusedFrame->tree().isDescendantOf(frame())) | 5363 if (focusedFrame->tree().isDescendantOf(frame())) |
5384 return true; | 5364 return true; |
5385 } | 5365 } |
5386 return false; | 5366 return false; |
5387 } | 5367 } |
5388 | 5368 |
5389 } // namespace WebCore | 5369 } // namespace WebCore |
OLD | NEW |