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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 VisiblePosition next = position.next(); | 276 VisiblePosition next = position.next(); |
277 if (RefPtr<Range> nextCharacterRange = makeRange(position, next)) { | 277 if (RefPtr<Range> nextCharacterRange = makeRange(position, next)) { |
278 LayoutRect rect = editor().firstRectForRange(nextCharacterRange.get()); | 278 LayoutRect rect = editor().firstRectForRange(nextCharacterRange.get()); |
279 if (rect.contains(framePoint)) | 279 if (rect.contains(framePoint)) |
280 return nextCharacterRange.release(); | 280 return nextCharacterRange.release(); |
281 } | 281 } |
282 | 282 |
283 return nullptr; | 283 return nullptr; |
284 } | 284 } |
285 | 285 |
286 void LocalFrame::createView(const IntSize& viewportSize, const Color& background
Color, bool transparent, | 286 void LocalFrame::createView(const IntSize& viewportSize, const Color& background
Color, bool transparent) |
287 ScrollbarMode horizontalScrollbarMode, bool horizontalLock, | |
288 ScrollbarMode verticalScrollbarMode, bool verticalLock) | |
289 { | 287 { |
290 ASSERT(this); | 288 ASSERT(this); |
291 ASSERT(page()); | 289 ASSERT(page()); |
292 | 290 |
293 setView(nullptr); | 291 setView(nullptr); |
294 | 292 |
295 RefPtr<FrameView> frameView; | 293 RefPtr<FrameView> frameView; |
296 frameView = FrameView::create(this, viewportSize); | 294 frameView = FrameView::create(this, viewportSize); |
297 | 295 |
298 // The layout size is set by WebViewImpl to support @viewport | 296 // The layout size is set by WebViewImpl to support @viewport |
(...skipping 15 matching lines...) Expand all Loading... |
314 } | 312 } |
315 | 313 |
316 double LocalFrame::devicePixelRatio() const | 314 double LocalFrame::devicePixelRatio() const |
317 { | 315 { |
318 if (!m_host) | 316 if (!m_host) |
319 return 0; | 317 return 0; |
320 return m_host->deviceScaleFactor(); | 318 return m_host->deviceScaleFactor(); |
321 } | 319 } |
322 | 320 |
323 } // namespace blink | 321 } // namespace blink |
OLD | NEW |