Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/DocumentFragment.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
11 * 11 *
12 * This library is free software; you can redistribute it and/or 12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public 13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either 14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version. 15 * version 2 of the License, or (at your option) any later version.
16 * 16 *
17 * This library is distributed in the hope that it will be useful, 17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details. 20 * Library General Public License for more details.
21 * 21 *
22 * You should have received a copy of the GNU Library General Public License 22 * You should have received a copy of the GNU Library General Public License
23 * along with this library; see the file COPYING.LIB. If not, write to 23 * along with this library; see the file COPYING.LIB. If not, write to
24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 * Boston, MA 02110-1301, USA. 25 * Boston, MA 02110-1301, USA.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "sky/engine/config.h"
29 #include "core/dom/Document.h" 29 #include "sky/engine/core/dom/Document.h"
30 30
31 #include "bindings/core/v8/CustomElementConstructorBuilder.h"
32 #include "bindings/core/v8/DOMDataStore.h"
33 #include "bindings/core/v8/Dictionary.h"
34 #include "bindings/core/v8/ExceptionMessages.h"
35 #include "bindings/core/v8/ExceptionState.h"
36 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
37 #include "bindings/core/v8/ScriptController.h"
38 #include "bindings/core/v8/V8DOMWrapper.h"
39 #include "bindings/core/v8/WindowProxy.h"
40 #include "gen/sky/core/HTMLElementFactory.h" 31 #include "gen/sky/core/HTMLElementFactory.h"
41 #include "core/animation/AnimationTimeline.h"
42 #include "core/animation/DocumentAnimations.h"
43 #include "core/css/CSSFontSelector.h"
44 #include "core/css/CSSStyleDeclaration.h"
45 #include "core/css/CSSStyleSheet.h"
46 #include "core/css/MediaQueryMatcher.h"
47 #include "core/css/StylePropertySet.h"
48 #include "core/css/StyleSheetContents.h"
49 #include "core/css/StyleSheetList.h"
50 #include "core/css/parser/BisonCSSParser.h"
51 #include "core/css/resolver/FontBuilder.h"
52 #include "core/css/resolver/StyleResolver.h"
53 #include "core/css/resolver/StyleResolverStats.h"
54 #include "core/dom/Attr.h"
55 #include "core/dom/DocumentFragment.h"
56 #include "core/dom/DocumentLifecycleNotifier.h"
57 #include "core/dom/DocumentLifecycleObserver.h"
58 #include "core/dom/DocumentMarkerController.h"
59 #include "core/dom/Element.h"
60 #include "core/dom/ElementDataCache.h"
61 #include "core/dom/ElementTraversal.h"
62 #include "core/dom/ExceptionCode.h"
63 #include "core/dom/MutationObserver.h"
64 #include "core/dom/NodeRareData.h"
65 #include "core/dom/NodeRenderStyle.h"
66 #include "core/dom/NodeRenderingTraversal.h"
67 #include "core/dom/NodeTraversal.h"
68 #include "core/dom/NodeWithIndex.h"
69 #include "core/dom/RequestAnimationFrameCallback.h"
70 #include "core/dom/ScriptedAnimationController.h"
71 #include "core/dom/SelectorQuery.h"
72 #include "core/dom/StaticNodeList.h"
73 #include "core/dom/StyleEngine.h"
74 #include "core/dom/Text.h"
75 #include "core/dom/TouchList.h"
76 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h"
77 #include "core/dom/custom/CustomElementRegistrationContext.h"
78 #include "core/dom/shadow/ElementShadow.h"
79 #include "core/dom/shadow/ShadowRoot.h"
80 #include "core/editing/FrameSelection.h"
81 #include "core/editing/SpellChecker.h"
82 #include "core/editing/markup.h"
83 #include "core/events/Event.h"
84 #include "core/events/EventFactory.h"
85 #include "core/events/EventListener.h"
86 #include "core/events/HashChangeEvent.h"
87 #include "core/events/PageTransitionEvent.h"
88 #include "core/events/ScopedEventQueue.h"
89 #include "core/fetch/ResourceFetcher.h"
90 #include "core/frame/FrameConsole.h"
91 #include "core/frame/FrameHost.h"
92 #include "core/frame/FrameView.h"
93 #include "core/frame/History.h"
94 #include "core/frame/LocalDOMWindow.h"
95 #include "core/frame/LocalFrame.h"
96 #include "core/frame/Settings.h"
97 #include "core/html/HTMLAnchorElement.h"
98 #include "core/html/HTMLCanvasElement.h"
99 #include "core/html/HTMLDocument.h"
100 #include "core/html/HTMLScriptElement.h"
101 #include "core/html/HTMLStyleElement.h"
102 #include "core/html/HTMLTemplateElement.h"
103 #include "core/html/HTMLTitleElement.h"
104 #include "core/html/canvas/CanvasRenderingContext.h"
105 #include "core/html/canvas/CanvasRenderingContext2D.h"
106 #include "core/html/canvas/WebGLRenderingContext.h"
107 #include "core/html/imports/HTMLImportChild.h"
108 #include "core/html/imports/HTMLImportTreeRoot.h"
109 #include "core/html/imports/HTMLImportLoader.h"
110 #include "core/html/imports/HTMLImportsController.h"
111 #include "core/html/parser/HTMLDocumentParser.h"
112 #include "core/html/parser/HTMLParserIdioms.h"
113 #include "core/html/parser/NestingLevelIncrementer.h"
114 #include "core/html/parser/TextResourceDecoder.h"
115 #include "core/inspector/ConsoleMessage.h"
116 #include "core/inspector/InspectorCounters.h"
117 #include "core/inspector/InspectorTraceEvents.h"
118 #include "core/inspector/ScriptCallStack.h"
119 #include "core/loader/FrameLoaderClient.h"
120 #include "core/loader/ImageLoader.h"
121 #include "core/page/Chrome.h"
122 #include "core/page/ChromeClient.h"
123 #include "core/page/EventHandler.h"
124 #include "core/page/EventWithHitTestResults.h"
125 #include "core/page/FocusController.h"
126 #include "core/page/Page.h"
127 #include "core/rendering/HitTestResult.h"
128 #include "core/rendering/RenderView.h"
129 #include "core/rendering/compositing/RenderLayerCompositor.h"
130 #include "platform/DateComponents.h"
131 #include "platform/EventDispatchForbiddenScope.h"
132 #include "platform/Language.h"
133 #include "platform/Logging.h"
134 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 32 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
135 #include "platform/ScriptForbiddenScope.h" 33 #include "sky/engine/bindings/core/v8/CustomElementConstructorBuilder.h"
136 #include "platform/TraceEvent.h" 34 #include "sky/engine/bindings/core/v8/DOMDataStore.h"
137 #include "platform/network/HTTPParsers.h" 35 #include "sky/engine/bindings/core/v8/Dictionary.h"
138 #include "platform/scroll/Scrollbar.h" 36 #include "sky/engine/bindings/core/v8/ExceptionMessages.h"
139 #include "platform/text/SegmentedString.h" 37 #include "sky/engine/bindings/core/v8/ExceptionState.h"
140 #include "platform/weborigin/SchemeRegistry.h" 38 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h"
141 #include "public/platform/Platform.h" 39 #include "sky/engine/bindings/core/v8/ScriptController.h"
142 #include "wtf/CurrentTime.h" 40 #include "sky/engine/bindings/core/v8/V8DOMWrapper.h"
143 #include "wtf/DateMath.h" 41 #include "sky/engine/bindings/core/v8/WindowProxy.h"
144 #include "wtf/HashFunctions.h" 42 #include "sky/engine/core/animation/AnimationTimeline.h"
145 #include "wtf/MainThread.h" 43 #include "sky/engine/core/animation/DocumentAnimations.h"
146 #include "wtf/StdLibExtras.h" 44 #include "sky/engine/core/css/CSSFontSelector.h"
147 #include "wtf/TemporaryChange.h" 45 #include "sky/engine/core/css/CSSStyleDeclaration.h"
148 #include "wtf/text/StringBuffer.h" 46 #include "sky/engine/core/css/CSSStyleSheet.h"
47 #include "sky/engine/core/css/MediaQueryMatcher.h"
48 #include "sky/engine/core/css/StylePropertySet.h"
49 #include "sky/engine/core/css/StyleSheetContents.h"
50 #include "sky/engine/core/css/StyleSheetList.h"
51 #include "sky/engine/core/css/parser/BisonCSSParser.h"
52 #include "sky/engine/core/css/resolver/FontBuilder.h"
53 #include "sky/engine/core/css/resolver/StyleResolver.h"
54 #include "sky/engine/core/css/resolver/StyleResolverStats.h"
55 #include "sky/engine/core/dom/Attr.h"
56 #include "sky/engine/core/dom/DocumentFragment.h"
57 #include "sky/engine/core/dom/DocumentLifecycleNotifier.h"
58 #include "sky/engine/core/dom/DocumentLifecycleObserver.h"
59 #include "sky/engine/core/dom/DocumentMarkerController.h"
60 #include "sky/engine/core/dom/Element.h"
61 #include "sky/engine/core/dom/ElementDataCache.h"
62 #include "sky/engine/core/dom/ElementTraversal.h"
63 #include "sky/engine/core/dom/ExceptionCode.h"
64 #include "sky/engine/core/dom/MutationObserver.h"
65 #include "sky/engine/core/dom/NodeRareData.h"
66 #include "sky/engine/core/dom/NodeRenderStyle.h"
67 #include "sky/engine/core/dom/NodeRenderingTraversal.h"
68 #include "sky/engine/core/dom/NodeTraversal.h"
69 #include "sky/engine/core/dom/NodeWithIndex.h"
70 #include "sky/engine/core/dom/RequestAnimationFrameCallback.h"
71 #include "sky/engine/core/dom/ScriptedAnimationController.h"
72 #include "sky/engine/core/dom/SelectorQuery.h"
73 #include "sky/engine/core/dom/StaticNodeList.h"
74 #include "sky/engine/core/dom/StyleEngine.h"
75 #include "sky/engine/core/dom/Text.h"
76 #include "sky/engine/core/dom/TouchList.h"
77 #include "sky/engine/core/dom/custom/CustomElementMicrotaskRunQueue.h"
78 #include "sky/engine/core/dom/custom/CustomElementRegistrationContext.h"
79 #include "sky/engine/core/dom/shadow/ElementShadow.h"
80 #include "sky/engine/core/dom/shadow/ShadowRoot.h"
81 #include "sky/engine/core/editing/FrameSelection.h"
82 #include "sky/engine/core/editing/SpellChecker.h"
83 #include "sky/engine/core/editing/markup.h"
84 #include "sky/engine/core/events/Event.h"
85 #include "sky/engine/core/events/EventFactory.h"
86 #include "sky/engine/core/events/EventListener.h"
87 #include "sky/engine/core/events/HashChangeEvent.h"
88 #include "sky/engine/core/events/PageTransitionEvent.h"
89 #include "sky/engine/core/events/ScopedEventQueue.h"
90 #include "sky/engine/core/fetch/ResourceFetcher.h"
91 #include "sky/engine/core/frame/FrameConsole.h"
92 #include "sky/engine/core/frame/FrameHost.h"
93 #include "sky/engine/core/frame/FrameView.h"
94 #include "sky/engine/core/frame/History.h"
95 #include "sky/engine/core/frame/LocalDOMWindow.h"
96 #include "sky/engine/core/frame/LocalFrame.h"
97 #include "sky/engine/core/frame/Settings.h"
98 #include "sky/engine/core/html/HTMLAnchorElement.h"
99 #include "sky/engine/core/html/HTMLCanvasElement.h"
100 #include "sky/engine/core/html/HTMLDocument.h"
101 #include "sky/engine/core/html/HTMLScriptElement.h"
102 #include "sky/engine/core/html/HTMLStyleElement.h"
103 #include "sky/engine/core/html/HTMLTemplateElement.h"
104 #include "sky/engine/core/html/HTMLTitleElement.h"
105 #include "sky/engine/core/html/canvas/CanvasRenderingContext.h"
106 #include "sky/engine/core/html/canvas/CanvasRenderingContext2D.h"
107 #include "sky/engine/core/html/canvas/WebGLRenderingContext.h"
108 #include "sky/engine/core/html/imports/HTMLImportChild.h"
109 #include "sky/engine/core/html/imports/HTMLImportLoader.h"
110 #include "sky/engine/core/html/imports/HTMLImportTreeRoot.h"
111 #include "sky/engine/core/html/imports/HTMLImportsController.h"
112 #include "sky/engine/core/html/parser/HTMLDocumentParser.h"
113 #include "sky/engine/core/html/parser/HTMLParserIdioms.h"
114 #include "sky/engine/core/html/parser/NestingLevelIncrementer.h"
115 #include "sky/engine/core/html/parser/TextResourceDecoder.h"
116 #include "sky/engine/core/inspector/ConsoleMessage.h"
117 #include "sky/engine/core/inspector/InspectorCounters.h"
118 #include "sky/engine/core/inspector/InspectorTraceEvents.h"
119 #include "sky/engine/core/inspector/ScriptCallStack.h"
120 #include "sky/engine/core/loader/FrameLoaderClient.h"
121 #include "sky/engine/core/loader/ImageLoader.h"
122 #include "sky/engine/core/page/Chrome.h"
123 #include "sky/engine/core/page/ChromeClient.h"
124 #include "sky/engine/core/page/EventHandler.h"
125 #include "sky/engine/core/page/EventWithHitTestResults.h"
126 #include "sky/engine/core/page/FocusController.h"
127 #include "sky/engine/core/page/Page.h"
128 #include "sky/engine/core/rendering/HitTestResult.h"
129 #include "sky/engine/core/rendering/RenderView.h"
130 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h"
131 #include "sky/engine/platform/DateComponents.h"
132 #include "sky/engine/platform/EventDispatchForbiddenScope.h"
133 #include "sky/engine/platform/Language.h"
134 #include "sky/engine/platform/Logging.h"
135 #include "sky/engine/platform/ScriptForbiddenScope.h"
136 #include "sky/engine/platform/TraceEvent.h"
137 #include "sky/engine/platform/network/HTTPParsers.h"
138 #include "sky/engine/platform/scroll/Scrollbar.h"
139 #include "sky/engine/platform/text/SegmentedString.h"
140 #include "sky/engine/platform/weborigin/SchemeRegistry.h"
141 #include "sky/engine/public/platform/Platform.h"
142 #include "sky/engine/wtf/CurrentTime.h"
143 #include "sky/engine/wtf/DateMath.h"
144 #include "sky/engine/wtf/HashFunctions.h"
145 #include "sky/engine/wtf/MainThread.h"
146 #include "sky/engine/wtf/StdLibExtras.h"
147 #include "sky/engine/wtf/TemporaryChange.h"
148 #include "sky/engine/wtf/text/StringBuffer.h"
149 149
150 using namespace WTF; 150 using namespace WTF;
151 using namespace Unicode; 151 using namespace Unicode;
152 152
153 namespace blink { 153 namespace blink {
154 154
155 // DOM Level 2 says (letters added): 155 // DOM Level 2 says (letters added):
156 // 156 //
157 // a) Name start characters must have one of the categories Ll, Lu, Lo, Lt, Nl. 157 // a) Name start characters must have one of the categories Ll, Lu, Lo, Lt, Nl.
158 // b) Name characters other than Name-start characters must have one of the cate gories Mc, Me, Mn, Lm, or Nd. 158 // b) Name characters other than Name-start characters must have one of the cate gories Mc, Me, Mn, Lm, or Nd.
(...skipping 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 using namespace blink; 2833 using namespace blink;
2834 void showLiveDocumentInstances() 2834 void showLiveDocumentInstances()
2835 { 2835 {
2836 WeakDocumentSet& set = liveDocumentSet(); 2836 WeakDocumentSet& set = liveDocumentSet();
2837 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2837 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2838 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2838 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2839 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2839 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2840 } 2840 }
2841 } 2841 }
2842 #endif 2842 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/DocumentFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698