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 "sky/engine/config.h" | |
31 #include "sky/engine/core/frame/LocalFrame.h" | 30 #include "sky/engine/core/frame/LocalFrame.h" |
32 | 31 |
33 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 32 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
34 #include "sky/engine/core/editing/Editor.h" | 33 #include "sky/engine/core/editing/Editor.h" |
35 #include "sky/engine/core/editing/FrameSelection.h" | 34 #include "sky/engine/core/editing/FrameSelection.h" |
36 #include "sky/engine/core/editing/htmlediting.h" | 35 #include "sky/engine/core/editing/htmlediting.h" |
37 #include "sky/engine/core/editing/InputMethodController.h" | 36 #include "sky/engine/core/editing/InputMethodController.h" |
38 #include "sky/engine/core/editing/SpellChecker.h" | 37 #include "sky/engine/core/editing/SpellChecker.h" |
39 #include "sky/engine/core/events/Event.h" | 38 #include "sky/engine/core/events/Event.h" |
40 #include "sky/engine/core/fetch/ResourceFetcher.h" | 39 #include "sky/engine/core/fetch/ResourceFetcher.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 313 } |
315 | 314 |
316 double LocalFrame::devicePixelRatio() const | 315 double LocalFrame::devicePixelRatio() const |
317 { | 316 { |
318 if (!m_host) | 317 if (!m_host) |
319 return 0; | 318 return 0; |
320 return m_host->deviceScaleFactor(); | 319 return m_host->deviceScaleFactor(); |
321 } | 320 } |
322 | 321 |
323 } // namespace blink | 322 } // namespace blink |
OLD | NEW |