| 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) |
| 11 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 11 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 12 * Copyright (C) 2008 Google Inc. | 12 * Copyright (C) 2008 Google Inc. |
| 13 * | 13 * |
| 14 * This library is free software; you can redistribute it and/or | 14 * This library is free software; you can redistribute it and/or |
| 15 * modify it under the terms of the GNU Library General Public | 15 * modify it under the terms of the GNU Library General Public |
| 16 * License as published by the Free Software Foundation; either | 16 * License as published by the Free Software Foundation; either |
| 17 * version 2 of the License, or (at your option) any later version. | 17 * version 2 of the License, or (at your option) any later version. |
| 18 * | 18 * |
| 19 * This library is distributed in the hope that it will be useful, | 19 * This library is distributed in the hope that it will be useful, |
| 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 * Library General Public License for more details. | 22 * Library General Public License for more details. |
| 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 "sky/engine/config.h" |
| 31 #include "core/frame/LocalFrame.h" | 31 #include "sky/engine/core/frame/LocalFrame.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/ScriptController.h" | |
| 34 #include "core/editing/Editor.h" | |
| 35 #include "core/editing/FrameSelection.h" | |
| 36 #include "core/editing/InputMethodController.h" | |
| 37 #include "core/editing/SpellChecker.h" | |
| 38 #include "core/editing/htmlediting.h" | |
| 39 #include "core/editing/markup.h" | |
| 40 #include "core/events/Event.h" | |
| 41 #include "core/fetch/ResourceFetcher.h" | |
| 42 #include "core/frame/FrameConsole.h" | |
| 43 #include "core/frame/FrameDestructionObserver.h" | |
| 44 #include "core/frame/FrameHost.h" | |
| 45 #include "core/frame/FrameView.h" | |
| 46 #include "core/frame/LocalDOMWindow.h" | |
| 47 #include "core/frame/Settings.h" | |
| 48 #include "core/inspector/ConsoleMessageStorage.h" | |
| 49 #include "core/loader/FrameLoaderClient.h" | |
| 50 #include "core/loader/MojoLoader.h" | |
| 51 #include "core/page/Chrome.h" | |
| 52 #include "core/page/EventHandler.h" | |
| 53 #include "core/page/FocusController.h" | |
| 54 #include "core/page/Page.h" | |
| 55 #include "core/rendering/HitTestResult.h" | |
| 56 #include "core/rendering/RenderLayer.h" | |
| 57 #include "core/rendering/RenderView.h" | |
| 58 #include "core/rendering/compositing/RenderLayerCompositor.h" | |
| 59 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 33 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 60 #include "platform/graphics/GraphicsContext.h" | 34 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 61 #include "platform/graphics/ImageBuffer.h" | 35 #include "sky/engine/core/editing/Editor.h" |
| 62 #include "platform/text/TextStream.h" | 36 #include "sky/engine/core/editing/FrameSelection.h" |
| 63 #include "wtf/PassOwnPtr.h" | 37 #include "sky/engine/core/editing/InputMethodController.h" |
| 64 #include "wtf/StdLibExtras.h" | 38 #include "sky/engine/core/editing/SpellChecker.h" |
| 39 #include "sky/engine/core/editing/htmlediting.h" |
| 40 #include "sky/engine/core/editing/markup.h" |
| 41 #include "sky/engine/core/events/Event.h" |
| 42 #include "sky/engine/core/fetch/ResourceFetcher.h" |
| 43 #include "sky/engine/core/frame/FrameConsole.h" |
| 44 #include "sky/engine/core/frame/FrameDestructionObserver.h" |
| 45 #include "sky/engine/core/frame/FrameHost.h" |
| 46 #include "sky/engine/core/frame/FrameView.h" |
| 47 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 48 #include "sky/engine/core/frame/Settings.h" |
| 49 #include "sky/engine/core/inspector/ConsoleMessageStorage.h" |
| 50 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 51 #include "sky/engine/core/loader/MojoLoader.h" |
| 52 #include "sky/engine/core/page/Chrome.h" |
| 53 #include "sky/engine/core/page/EventHandler.h" |
| 54 #include "sky/engine/core/page/FocusController.h" |
| 55 #include "sky/engine/core/page/Page.h" |
| 56 #include "sky/engine/core/rendering/HitTestResult.h" |
| 57 #include "sky/engine/core/rendering/RenderLayer.h" |
| 58 #include "sky/engine/core/rendering/RenderView.h" |
| 59 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h" |
| 60 #include "sky/engine/platform/graphics/GraphicsContext.h" |
| 61 #include "sky/engine/platform/graphics/ImageBuffer.h" |
| 62 #include "sky/engine/platform/text/TextStream.h" |
| 63 #include "sky/engine/wtf/PassOwnPtr.h" |
| 64 #include "sky/engine/wtf/StdLibExtras.h" |
| 65 | 65 |
| 66 namespace blink { | 66 namespace blink { |
| 67 | 67 |
| 68 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host) | 68 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host) |
| 69 : Frame(client, host) | 69 : Frame(client, host) |
| 70 , m_deprecatedLoader(this) | 70 , m_deprecatedLoader(this) |
| 71 , m_mojoLoader(adoptPtr(new MojoLoader(*this))) | 71 , m_mojoLoader(adoptPtr(new MojoLoader(*this))) |
| 72 , m_script(adoptPtr(new ScriptController(this))) | 72 , m_script(adoptPtr(new ScriptController(this))) |
| 73 , m_editor(Editor::create(*this)) | 73 , m_editor(Editor::create(*this)) |
| 74 , m_spellChecker(SpellChecker::create(*this)) | 74 , m_spellChecker(SpellChecker::create(*this)) |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 double LocalFrame::devicePixelRatio() const | 369 double LocalFrame::devicePixelRatio() const |
| 370 { | 370 { |
| 371 if (!m_host) | 371 if (!m_host) |
| 372 return 0; | 372 return 0; |
| 373 return m_host->deviceScaleFactor(); | 373 return m_host->deviceScaleFactor(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 } // namespace blink | 376 } // namespace blink |
| OLD | NEW |