| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // We should never be detatching the page during a Layout. | 216 // We should never be detatching the page during a Layout. |
| 217 RELEASE_ASSERT(!m_view || !m_view->isInPerformLayout()); | 217 RELEASE_ASSERT(!m_view || !m_view->isInPerformLayout()); |
| 218 m_host = 0; | 218 m_host = 0; |
| 219 } | 219 } |
| 220 | 220 |
| 221 String LocalFrame::selectedText() const | 221 String LocalFrame::selectedText() const |
| 222 { | 222 { |
| 223 return selection().selectedText(); | 223 return selection().selectedText(); |
| 224 } | 224 } |
| 225 | 225 |
| 226 String LocalFrame::selectedTextForClipboard() const | |
| 227 { | |
| 228 return selection().selectedTextForClipboard(); | |
| 229 } | |
| 230 | |
| 231 VisiblePosition LocalFrame::visiblePositionForPoint(const IntPoint& framePoint) | 226 VisiblePosition LocalFrame::visiblePositionForPoint(const IntPoint& framePoint) |
| 232 { | 227 { |
| 233 HitTestResult result = eventHandler().hitTestResultAtPoint(framePoint); | 228 HitTestResult result = eventHandler().hitTestResultAtPoint(framePoint); |
| 234 Node* node = result.innerNonSharedNode(); | 229 Node* node = result.innerNonSharedNode(); |
| 235 if (!node) | 230 if (!node) |
| 236 return VisiblePosition(); | 231 return VisiblePosition(); |
| 237 RenderObject* renderer = node->renderer(); | 232 RenderObject* renderer = node->renderer(); |
| 238 if (!renderer) | 233 if (!renderer) |
| 239 return VisiblePosition(); | 234 return VisiblePosition(); |
| 240 VisiblePosition visiblePos = VisiblePosition(renderer->positionForPoint(resu
lt.localPoint())); | 235 VisiblePosition visiblePos = VisiblePosition(renderer->positionForPoint(resu
lt.localPoint())); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 }; | 368 }; |
| 374 | 369 |
| 375 double LocalFrame::devicePixelRatio() const | 370 double LocalFrame::devicePixelRatio() const |
| 376 { | 371 { |
| 377 if (!m_host) | 372 if (!m_host) |
| 378 return 0; | 373 return 0; |
| 379 return m_host->deviceScaleFactor(); | 374 return m_host->deviceScaleFactor(); |
| 380 } | 375 } |
| 381 | 376 |
| 382 } // namespace blink | 377 } // namespace blink |
| OLD | NEW |