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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |