Chromium Code Reviews

Side by Side Diff: Source/core/dom/Document.cpp

Issue 134473008: Remove CSS regions support, keeping a bare minimum to support "region-based" multicol. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review: Revert changes in Source/devtools/Inspector-1.1.json Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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...)
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 941 matching lines...)
1030 ASSERT(qName == e->tagQName()); 1028 ASSERT(qName == e->tagQName());
1031 1029
1032 return e.release(); 1030 return e.release();
1033 } 1031 }
1034 1032
1035 bool Document::regionBasedColumnsEnabled() const 1033 bool Document::regionBasedColumnsEnabled() const
1036 { 1034 {
1037 return settings() && settings()->regionBasedColumnsEnabled(); 1035 return settings() && settings()->regionBasedColumnsEnabled();
1038 } 1036 }
1039 1037
1040 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows()
1041 {
1042 if (!RuntimeEnabledFeatures::cssRegionsEnabled() || !renderView())
1043 return 0;
1044
1045 updateStyleIfNeeded();
1046
1047 return namedFlows()->createCSSOMSnapshot();
1048 }
1049
1050 NamedFlowCollection* Document::namedFlows()
1051 {
1052 if (!m_namedFlows)
1053 m_namedFlows = NamedFlowCollection::create(this);
1054
1055 return m_namedFlows.get();
1056 }
1057
1058 PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState) 1038 PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState)
1059 { 1039 {
1060 AtomicString prefix, localName; 1040 AtomicString prefix, localName;
1061 if (!parseQualifiedName(qualifiedName, prefix, localName, exceptionState)) 1041 if (!parseQualifiedName(qualifiedName, prefix, localName, exceptionState))
1062 return 0; 1042 return 0;
1063 1043
1064 QualifiedName qName(prefix, localName, namespaceURI); 1044 QualifiedName qName(prefix, localName, namespaceURI);
1065 if (!hasValidNamespaceForElements(qName)) { 1045 if (!hasValidNamespaceForElements(qName)) {
1066 exceptionState.throwDOMException(NamespaceError, "The namespace URI prov ided ('" + namespaceURI + "') is not valid for the qualified name provided ('" + qualifiedName + "')."); 1046 exceptionState.throwDOMException(NamespaceError, "The namespace URI prov ided ('" + namespaceURI + "') is not valid for the qualified name provided ('" + qualifiedName + "').");
1067 return 0; 1047 return 0;
(...skipping 4386 matching lines...)
5454 void Document::defaultEventHandler(Event* event) 5434 void Document::defaultEventHandler(Event* event)
5455 { 5435 {
5456 if (frame() && frame()->remotePlatformLayer()) { 5436 if (frame() && frame()->remotePlatformLayer()) {
5457 frame()->chromeClient().forwardInputEvent(this, event); 5437 frame()->chromeClient().forwardInputEvent(this, event);
5458 return; 5438 return;
5459 } 5439 }
5460 Node::defaultEventHandler(event); 5440 Node::defaultEventHandler(event);
5461 } 5441 }
5462 5442
5463 } // namespace WebCore 5443 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | Source/core/dom/Node.h » ('J')

Powered by Google App Engine