Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: sky/engine/core/frame/LocalFrame.cpp

Issue 715963003: Remove alt text from images. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: minor improvement Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/LocalFrame.h ('k') | sky/engine/core/html/HTMLImageElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalFrame.h ('k') | sky/engine/core/html/HTMLImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698