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

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

Issue 625073002: Merge RenderWidget into single subclass, RenderPart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 2 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 | Annotate | Revision Log
« 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 #include "core/page/Chrome.h" 166 #include "core/page/Chrome.h"
167 #include "core/page/ChromeClient.h" 167 #include "core/page/ChromeClient.h"
168 #include "core/page/EventHandler.h" 168 #include "core/page/EventHandler.h"
169 #include "core/page/EventWithHitTestResults.h" 169 #include "core/page/EventWithHitTestResults.h"
170 #include "core/page/FocusController.h" 170 #include "core/page/FocusController.h"
171 #include "core/page/FrameTree.h" 171 #include "core/page/FrameTree.h"
172 #include "core/page/Page.h" 172 #include "core/page/Page.h"
173 #include "core/page/PointerLockController.h" 173 #include "core/page/PointerLockController.h"
174 #include "core/page/scrolling/ScrollingCoordinator.h" 174 #include "core/page/scrolling/ScrollingCoordinator.h"
175 #include "core/rendering/HitTestResult.h" 175 #include "core/rendering/HitTestResult.h"
176 #include "core/rendering/RenderPart.h"
176 #include "core/rendering/RenderView.h" 177 #include "core/rendering/RenderView.h"
177 #include "core/rendering/RenderWidget.h"
178 #include "core/rendering/TextAutosizer.h" 178 #include "core/rendering/TextAutosizer.h"
179 #include "core/rendering/compositing/RenderLayerCompositor.h" 179 #include "core/rendering/compositing/RenderLayerCompositor.h"
180 #include "core/svg/SVGDocumentExtensions.h" 180 #include "core/svg/SVGDocumentExtensions.h"
181 #include "core/svg/SVGFontFaceElement.h" 181 #include "core/svg/SVGFontFaceElement.h"
182 #include "core/svg/SVGTitleElement.h" 182 #include "core/svg/SVGTitleElement.h"
183 #include "core/svg/SVGUseElement.h" 183 #include "core/svg/SVGUseElement.h"
184 #include "core/workers/SharedWorkerRepositoryClient.h" 184 #include "core/workers/SharedWorkerRepositoryClient.h"
185 #include "core/xml/XSLTProcessor.h" 185 #include "core/xml/XSLTProcessor.h"
186 #include "core/xml/parser/XMLDocumentParser.h" 186 #include "core/xml/parser/XMLDocumentParser.h"
187 #include "platform/DateComponents.h" 187 #include "platform/DateComponents.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // 305 //
306 // Note: We generalize this to all "blank" URLs and invalid URLs because we 306 // Note: We generalize this to all "blank" URLs and invalid URLs because we
307 // treat all of these URLs as about:blank. 307 // treat all of these URLs as about:blank.
308 // 308 //
309 return url.isEmpty() || url.protocolIsAbout(); 309 return url.isEmpty() || url.protocolIsAbout();
310 } 310 }
311 311
312 static Widget* widgetForElement(const Element& focusedElement) 312 static Widget* widgetForElement(const Element& focusedElement)
313 { 313 {
314 RenderObject* renderer = focusedElement.renderer(); 314 RenderObject* renderer = focusedElement.renderer();
315 if (!renderer || !renderer->isWidget()) 315 if (!renderer || !renderer->isRenderPart())
316 return 0; 316 return 0;
317 return toRenderWidget(renderer)->widget(); 317 return toRenderPart(renderer)->widget();
318 } 318 }
319 319
320 static bool acceptsEditingFocus(const Element& element) 320 static bool acceptsEditingFocus(const Element& element)
321 { 321 {
322 ASSERT(element.hasEditableStyle()); 322 ASSERT(element.hasEditableStyle());
323 323
324 return element.document().frame() && element.rootEditableElement(); 324 return element.document().frame() && element.rootEditableElement();
325 } 325 }
326 326
327 static bool canAccessAncestor(const SecurityOrigin& activeSecurityOrigin, const Frame* targetFrame) 327 static bool canAccessAncestor(const SecurityOrigin& activeSecurityOrigin, const Frame* targetFrame)
(...skipping 5526 matching lines...) Expand 10 before | Expand all | Expand 10 after
5854 using namespace blink; 5854 using namespace blink;
5855 void showLiveDocumentInstances() 5855 void showLiveDocumentInstances()
5856 { 5856 {
5857 WeakDocumentSet& set = liveDocumentSet(); 5857 WeakDocumentSet& set = liveDocumentSet();
5858 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5858 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5859 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 5859 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
5860 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 5860 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
5861 } 5861 }
5862 } 5862 }
5863 #endif 5863 #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