OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 13 matching lines...) Expand all Loading... |
24 * You should have received a copy of the GNU Library General Public License | 24 * You should have received a copy of the GNU Library General Public License |
25 * along with this library; see the file COPYING.LIB. If not, write to | 25 * along with this library; see the file COPYING.LIB. If not, write to |
26 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 26 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
27 * Boston, MA 02110-1301, USA. | 27 * Boston, MA 02110-1301, USA. |
28 */ | 28 */ |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/page/Frame.h" | 31 #include "core/page/Frame.h" |
32 | 32 |
33 #include "bindings/v8/ScriptController.h" | 33 #include "bindings/v8/ScriptController.h" |
34 #include "bindings/v8/ScriptSourceCode.h" | |
35 #include "bindings/v8/ScriptValue.h" | |
36 #include "bindings/v8/npruntime_impl.h" | |
37 #include "core/css/CSSComputedStyleDeclaration.h" | |
38 #include "core/css/StylePropertySet.h" | |
39 #include "core/dom/DocumentType.h" | 34 #include "core/dom/DocumentType.h" |
40 #include "core/dom/Event.h" | 35 #include "core/dom/Event.h" |
41 #include "core/dom/EventNames.h" | |
42 #include "core/dom/NodeList.h" | |
43 #include "core/dom/NodeTraversal.h" | |
44 #include "core/dom/UserTypingGestureIndicator.h" | |
45 #include "core/editing/ApplyStyleCommand.h" | |
46 #include "core/editing/Editor.h" | 36 #include "core/editing/Editor.h" |
47 #include "core/editing/FrameSelection.h" | 37 #include "core/editing/FrameSelection.h" |
48 #include "core/editing/TextIterator.h" | |
49 #include "core/editing/VisibleUnits.h" | |
50 #include "core/editing/htmlediting.h" | 38 #include "core/editing/htmlediting.h" |
51 #include "core/editing/markup.h" | 39 #include "core/editing/markup.h" |
52 #include "core/html/HTMLDocument.h" | |
53 #include "core/html/HTMLFormControlElement.h" | |
54 #include "core/html/HTMLFormElement.h" | |
55 #include "core/html/HTMLFrameElementBase.h" | 40 #include "core/html/HTMLFrameElementBase.h" |
56 #include "core/html/HTMLTableCellElement.h" | |
57 #include "core/inspector/InspectorInstrumentation.h" | |
58 #include "core/loader/FrameLoader.h" | 41 #include "core/loader/FrameLoader.h" |
59 #include "core/loader/FrameLoaderClient.h" | 42 #include "core/loader/FrameLoaderClient.h" |
60 #include "core/loader/TextResourceDecoder.h" | |
61 #include "core/loader/cache/CachedCSSStyleSheet.h" | |
62 #include "core/loader/cache/CachedResourceLoader.h" | 43 #include "core/loader/cache/CachedResourceLoader.h" |
63 #include "core/page/Chrome.h" | 44 #include "core/page/Chrome.h" |
64 #include "core/page/ChromeClient.h" | 45 #include "core/page/ChromeClient.h" |
65 #include "core/page/DOMWindow.h" | 46 #include "core/page/DOMWindow.h" |
66 #include "core/page/EditorClient.h" | |
67 #include "core/page/EventHandler.h" | 47 #include "core/page/EventHandler.h" |
68 #include "core/page/FocusController.h" | 48 #include "core/page/FocusController.h" |
69 #include "core/page/FrameDestructionObserver.h" | 49 #include "core/page/FrameDestructionObserver.h" |
70 #include "core/page/FrameView.h" | 50 #include "core/page/FrameView.h" |
71 #include "core/page/Navigator.h" | |
72 #include "core/page/Page.h" | 51 #include "core/page/Page.h" |
73 #include "core/page/PageGroup.h" | |
74 #include "RuntimeEnabledFeatures.h" | |
75 #include "core/page/Settings.h" | |
76 #include "core/page/UserContentURLPattern.h" | |
77 #include "core/page/animation/AnimationController.h" | 52 #include "core/page/animation/AnimationController.h" |
78 #include "core/page/scrolling/ScrollingCoordinator.h" | 53 #include "core/page/scrolling/ScrollingCoordinator.h" |
79 #include "core/platform/DragImage.h" | 54 #include "core/platform/DragImage.h" |
80 #include "core/platform/Logging.h" | |
81 #include "core/platform/graphics/FloatQuad.h" | |
82 #include "core/platform/graphics/GraphicsContext.h" | 55 #include "core/platform/graphics/GraphicsContext.h" |
83 #include "core/platform/graphics/GraphicsLayer.h" | |
84 #include "core/platform/graphics/ImageBuffer.h" | 56 #include "core/platform/graphics/ImageBuffer.h" |
85 #include "core/rendering/HitTestResult.h" | 57 #include "core/rendering/HitTestResult.h" |
86 #include "core/rendering/RenderLayerCompositor.h" | 58 #include "core/rendering/RenderLayerCompositor.h" |
87 #include "core/rendering/RenderPart.h" | 59 #include "core/rendering/RenderPart.h" |
88 #include "core/rendering/RenderTableCell.h" | |
89 #include "core/rendering/RenderTextControl.h" | |
90 #include "core/rendering/RenderTheme.h" | |
91 #include "core/rendering/RenderView.h" | 60 #include "core/rendering/RenderView.h" |
92 #include "core/svg/SVGDocument.h" | 61 #include "core/svg/SVGDocument.h" |
93 #include "core/svg/SVGDocumentExtensions.h" | 62 #include "wtf/PassOwnPtr.h" |
94 #include <wtf/PassOwnPtr.h> | 63 #include "wtf/RefCountedLeakCounter.h" |
95 #include <wtf/RefCountedLeakCounter.h> | 64 #include "wtf/StdLibExtras.h" |
96 #include <wtf/StdLibExtras.h> | |
97 | 65 |
98 using namespace std; | 66 using namespace std; |
99 | 67 |
100 namespace WebCore { | 68 namespace WebCore { |
101 | 69 |
102 using namespace HTMLNames; | 70 using namespace HTMLNames; |
103 | 71 |
104 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); | 72 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); |
105 | 73 |
106 static inline Frame* parentFromOwnerElement(HTMLFrameOwnerElement* ownerElement) | 74 static inline Frame* parentFromOwnerElement(HTMLFrameOwnerElement* ownerElement) |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); | 689 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); |
722 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); | 690 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); |
723 | 691 |
724 m_view->paintContents(buffer->context(), paintingRect); | 692 m_view->paintContents(buffer->context(), paintingRect); |
725 | 693 |
726 RefPtr<Image> image = buffer->copyImage(); | 694 RefPtr<Image> image = buffer->copyImage(); |
727 return DragImage::create(image.get()); | 695 return DragImage::create(image.get()); |
728 } | 696 } |
729 | 697 |
730 } // namespace WebCore | 698 } // namespace WebCore |
OLD | NEW |