| 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 12 matching lines...) Expand all Loading... |
| 23 * | 23 * |
| 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 "Frame.h" | 31 #include "Frame.h" |
| 32 | 32 |
| 33 #include "AnimationController.h" |
| 33 #include "ApplyStyleCommand.h" | 34 #include "ApplyStyleCommand.h" |
| 34 #include "BackForwardController.h" | 35 #include "BackForwardController.h" |
| 35 #include "CSSComputedStyleDeclaration.h" | 36 #include "CSSComputedStyleDeclaration.h" |
| 36 #include "CSSPropertyNames.h" | 37 #include "CSSPropertyNames.h" |
| 37 #include "CachedCSSStyleSheet.h" | 38 #include "CachedCSSStyleSheet.h" |
| 38 #include "Chrome.h" | 39 #include "Chrome.h" |
| 39 #include "ChromeClient.h" | 40 #include "ChromeClient.h" |
| 40 #include "DOMWindow.h" | 41 #include "DOMWindow.h" |
| 41 #include "CachedResourceLoader.h" | 42 #include "CachedResourceLoader.h" |
| 42 #include "DocumentType.h" | 43 #include "DocumentType.h" |
| 44 #include "Editor.h" |
| 43 #include "EditorClient.h" | 45 #include "EditorClient.h" |
| 44 #include "Event.h" | 46 #include "Event.h" |
| 47 #include "EventHandler.h" |
| 45 #include "EventNames.h" | 48 #include "EventNames.h" |
| 46 #include "FloatQuad.h" | 49 #include "FloatQuad.h" |
| 47 #include "FocusController.h" | 50 #include "FocusController.h" |
| 48 #include "FrameDestructionObserver.h" | 51 #include "FrameDestructionObserver.h" |
| 49 #include "FrameLoader.h" | 52 #include "FrameLoader.h" |
| 50 #include "FrameLoaderClient.h" | 53 #include "FrameLoaderClient.h" |
| 54 #include "FrameSelection.h" |
| 51 #include "FrameView.h" | 55 #include "FrameView.h" |
| 52 #include "GraphicsContext.h" | 56 #include "GraphicsContext.h" |
| 53 #include "GraphicsLayer.h" | 57 #include "GraphicsLayer.h" |
| 54 #include "HTMLDocument.h" | 58 #include "HTMLDocument.h" |
| 55 #include "HTMLFormControlElement.h" | 59 #include "HTMLFormControlElement.h" |
| 56 #include "HTMLFormElement.h" | 60 #include "HTMLFormElement.h" |
| 57 #include "HTMLFrameElementBase.h" | 61 #include "HTMLFrameElementBase.h" |
| 58 #include "HTMLNames.h" | 62 #include "HTMLNames.h" |
| 59 #include "HTMLTableCellElement.h" | 63 #include "HTMLTableCellElement.h" |
| 60 #include "HitTestResult.h" | 64 #include "HitTestResult.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 QualifiedName::init(); | 157 QualifiedName::init(); |
| 154 } | 158 } |
| 155 | 159 |
| 156 inline Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoader
Client* frameLoaderClient) | 160 inline Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoader
Client* frameLoaderClient) |
| 157 : m_page(page) | 161 : m_page(page) |
| 158 , m_treeNode(this, parentFromOwnerElement(ownerElement)) | 162 , m_treeNode(this, parentFromOwnerElement(ownerElement)) |
| 159 , m_loader(this, frameLoaderClient) | 163 , m_loader(this, frameLoaderClient) |
| 160 , m_navigationScheduler(this) | 164 , m_navigationScheduler(this) |
| 161 , m_ownerElement(ownerElement) | 165 , m_ownerElement(ownerElement) |
| 162 , m_script(adoptPtr(new ScriptController(this))) | 166 , m_script(adoptPtr(new ScriptController(this))) |
| 163 , m_editor(this) | 167 , m_editor(adoptPtr(new Editor(this))) |
| 164 , m_selection(this) | 168 , m_selection(adoptPtr(new FrameSelection(this))) |
| 165 , m_eventHandler(this) | 169 , m_eventHandler(adoptPtr(new EventHandler(this))) |
| 166 , m_animationController(this) | 170 , m_animationController(adoptPtr(new AnimationController(this))) |
| 167 , m_pageZoomFactor(parentPageZoomFactor(this)) | 171 , m_pageZoomFactor(parentPageZoomFactor(this)) |
| 168 , m_textZoomFactor(parentTextZoomFactor(this)) | 172 , m_textZoomFactor(parentTextZoomFactor(this)) |
| 169 #if ENABLE(ORIENTATION_EVENTS) | 173 #if ENABLE(ORIENTATION_EVENTS) |
| 170 , m_orientation(0) | 174 , m_orientation(0) |
| 171 #endif | 175 #endif |
| 172 , m_inViewSourceMode(false) | 176 , m_inViewSourceMode(false) |
| 173 { | 177 { |
| 174 ASSERT(page); | 178 ASSERT(page); |
| 175 WebCore::init(); | 179 WebCore::init(); |
| 176 | 180 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 return; | 790 return; |
| 787 | 791 |
| 788 Page* page = this->page(); | 792 Page* page = this->page(); |
| 789 if (!page) | 793 if (!page) |
| 790 return; | 794 return; |
| 791 | 795 |
| 792 Document* document = this->document(); | 796 Document* document = this->document(); |
| 793 if (!document) | 797 if (!document) |
| 794 return; | 798 return; |
| 795 | 799 |
| 796 m_editor.dismissCorrectionPanelAsIgnored(); | 800 m_editor->dismissCorrectionPanelAsIgnored(); |
| 797 | 801 |
| 798 #if ENABLE(SVG) | 802 #if ENABLE(SVG) |
| 799 // Respect SVGs zoomAndPan="disabled" property in standalone SVG documents. | 803 // Respect SVGs zoomAndPan="disabled" property in standalone SVG documents. |
| 800 // FIXME: How to handle compound documents + zoomAndPan="disabled"? Needs SV
G WG clarification. | 804 // FIXME: How to handle compound documents + zoomAndPan="disabled"? Needs SV
G WG clarification. |
| 801 if (document->isSVGDocument()) { | 805 if (document->isSVGDocument()) { |
| 802 if (!toSVGDocument(document)->zoomAndPanEnabled()) | 806 if (!toSVGDocument(document)->zoomAndPanEnabled()) |
| 803 return; | 807 return; |
| 804 } | 808 } |
| 805 #endif | 809 #endif |
| 806 | 810 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); | 967 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); |
| 964 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); | 968 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); |
| 965 | 969 |
| 966 m_view->paintContents(buffer->context(), paintingRect); | 970 m_view->paintContents(buffer->context(), paintingRect); |
| 967 | 971 |
| 968 RefPtr<Image> image = buffer->copyImage(); | 972 RefPtr<Image> image = buffer->copyImage(); |
| 969 return createDragImageFromImage(image.get()); | 973 return createDragImageFromImage(image.get()); |
| 970 } | 974 } |
| 971 | 975 |
| 972 } // namespace WebCore | 976 } // namespace WebCore |
| OLD | NEW |