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

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

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months 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 | « Source/core/core.gypi ('k') | Source/core/dom/Element.cpp » ('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.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 #include "core/html/parser/HTMLDocumentParser.h" 156 #include "core/html/parser/HTMLDocumentParser.h"
157 #include "core/html/parser/HTMLParserIdioms.h" 157 #include "core/html/parser/HTMLParserIdioms.h"
158 #include "core/html/parser/NestingLevelIncrementer.h" 158 #include "core/html/parser/NestingLevelIncrementer.h"
159 #include "core/html/parser/TextResourceDecoder.h" 159 #include "core/html/parser/TextResourceDecoder.h"
160 #include "core/inspector/ConsoleMessage.h" 160 #include "core/inspector/ConsoleMessage.h"
161 #include "core/inspector/InspectorCounters.h" 161 #include "core/inspector/InspectorCounters.h"
162 #include "core/inspector/InspectorInstrumentation.h" 162 #include "core/inspector/InspectorInstrumentation.h"
163 #include "core/inspector/InspectorTraceEvents.h" 163 #include "core/inspector/InspectorTraceEvents.h"
164 #include "core/inspector/ScriptCallStack.h" 164 #include "core/inspector/ScriptCallStack.h"
165 #include "core/layout/HitTestResult.h" 165 #include "core/layout/HitTestResult.h"
166 #include "core/layout/LayoutPart.h"
166 #include "core/layout/TextAutosizer.h" 167 #include "core/layout/TextAutosizer.h"
167 #include "core/layout/compositing/LayerCompositor.h" 168 #include "core/layout/compositing/LayerCompositor.h"
168 #include "core/loader/CookieJar.h" 169 #include "core/loader/CookieJar.h"
169 #include "core/loader/DocumentLoader.h" 170 #include "core/loader/DocumentLoader.h"
170 #include "core/loader/FrameLoader.h" 171 #include "core/loader/FrameLoader.h"
171 #include "core/loader/FrameLoaderClient.h" 172 #include "core/loader/FrameLoaderClient.h"
172 #include "core/loader/ImageLoader.h" 173 #include "core/loader/ImageLoader.h"
173 #include "core/loader/appcache/ApplicationCacheHost.h" 174 #include "core/loader/appcache/ApplicationCacheHost.h"
174 #include "core/page/Chrome.h" 175 #include "core/page/Chrome.h"
175 #include "core/page/ChromeClient.h" 176 #include "core/page/ChromeClient.h"
176 #include "core/page/EventHandler.h" 177 #include "core/page/EventHandler.h"
177 #include "core/page/EventWithHitTestResults.h" 178 #include "core/page/EventWithHitTestResults.h"
178 #include "core/page/FocusController.h" 179 #include "core/page/FocusController.h"
179 #include "core/page/FrameTree.h" 180 #include "core/page/FrameTree.h"
180 #include "core/page/Page.h" 181 #include "core/page/Page.h"
181 #include "core/page/PointerLockController.h" 182 #include "core/page/PointerLockController.h"
182 #include "core/page/scrolling/ScrollingCoordinator.h" 183 #include "core/page/scrolling/ScrollingCoordinator.h"
183 #include "core/rendering/RenderPart.h"
184 #include "core/rendering/RenderView.h" 184 #include "core/rendering/RenderView.h"
185 #include "core/svg/SVGDocumentExtensions.h" 185 #include "core/svg/SVGDocumentExtensions.h"
186 #include "core/svg/SVGTitleElement.h" 186 #include "core/svg/SVGTitleElement.h"
187 #include "core/svg/SVGUseElement.h" 187 #include "core/svg/SVGUseElement.h"
188 #include "core/workers/SharedWorkerRepositoryClient.h" 188 #include "core/workers/SharedWorkerRepositoryClient.h"
189 #include "core/xml/parser/XMLDocumentParser.h" 189 #include "core/xml/parser/XMLDocumentParser.h"
190 #include "platform/DateComponents.h" 190 #include "platform/DateComponents.h"
191 #include "platform/EventDispatchForbiddenScope.h" 191 #include "platform/EventDispatchForbiddenScope.h"
192 #include "platform/Language.h" 192 #include "platform/Language.h"
193 #include "platform/Logging.h" 193 #include "platform/Logging.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // 308 //
309 // Note: We generalize this to all "blank" URLs and invalid URLs because we 309 // Note: We generalize this to all "blank" URLs and invalid URLs because we
310 // treat all of these URLs as about:blank. 310 // treat all of these URLs as about:blank.
311 // 311 //
312 return url.isEmpty() || url.protocolIsAbout(); 312 return url.isEmpty() || url.protocolIsAbout();
313 } 313 }
314 314
315 static Widget* widgetForElement(const Element& focusedElement) 315 static Widget* widgetForElement(const Element& focusedElement)
316 { 316 {
317 LayoutObject* renderer = focusedElement.renderer(); 317 LayoutObject* renderer = focusedElement.renderer();
318 if (!renderer || !renderer->isRenderPart()) 318 if (!renderer || !renderer->isLayoutPart())
319 return 0; 319 return 0;
320 return toRenderPart(renderer)->widget(); 320 return toLayoutPart(renderer)->widget();
321 } 321 }
322 322
323 static bool acceptsEditingFocus(const Element& element) 323 static bool acceptsEditingFocus(const Element& element)
324 { 324 {
325 ASSERT(element.hasEditableStyle()); 325 ASSERT(element.hasEditableStyle());
326 326
327 return element.document().frame() && element.rootEditableElement(); 327 return element.document().frame() && element.rootEditableElement();
328 } 328 }
329 329
330 uint64_t Document::s_globalTreeVersion = 0; 330 uint64_t Document::s_globalTreeVersion = 0;
(...skipping 5428 matching lines...) Expand 10 before | Expand all | Expand 10 after
5759 #ifndef NDEBUG 5759 #ifndef NDEBUG
5760 using namespace blink; 5760 using namespace blink;
5761 void showLiveDocumentInstances() 5761 void showLiveDocumentInstances()
5762 { 5762 {
5763 WeakDocumentSet& set = liveDocumentSet(); 5763 WeakDocumentSet& set = liveDocumentSet();
5764 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5764 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5765 for (Document* document : set) 5765 for (Document* document : set)
5766 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5766 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5767 } 5767 }
5768 #endif 5768 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698