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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } | 360 } |
361 | 361 |
362 String Frame::documentTypeString() const | 362 String Frame::documentTypeString() const |
363 { | 363 { |
364 if (DocumentType* doctype = document()->doctype()) | 364 if (DocumentType* doctype = document()->doctype()) |
365 return createMarkup(doctype); | 365 return createMarkup(doctype); |
366 | 366 |
367 return String(); | 367 return String(); |
368 } | 368 } |
369 | 369 |
370 String Frame::displayStringModifiedByEncoding(const String& str) const | |
371 { | |
372 return document() ? document()->displayStringModifiedByEncoding(str) : str; | |
373 } | |
374 | |
375 String Frame::selectedText() const | 370 String Frame::selectedText() const |
376 { | 371 { |
377 return selection().selectedText(); | 372 return selection().selectedText(); |
378 } | 373 } |
379 | 374 |
380 String Frame::selectedTextForClipboard() const | 375 String Frame::selectedTextForClipboard() const |
381 { | 376 { |
382 return selection().selectedTextForClipboard(); | 377 return selection().selectedTextForClipboard(); |
383 } | 378 } |
384 | 379 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 if (!m_page) | 677 if (!m_page) |
683 return 0; | 678 return 0; |
684 | 679 |
685 double ratio = m_page->deviceScaleFactor(); | 680 double ratio = m_page->deviceScaleFactor(); |
686 if (RuntimeEnabledFeatures::devicePixelRatioIncludesZoomEnabled()) | 681 if (RuntimeEnabledFeatures::devicePixelRatioIncludesZoomEnabled()) |
687 ratio *= pageZoomFactor(); | 682 ratio *= pageZoomFactor(); |
688 return ratio; | 683 return ratio; |
689 } | 684 } |
690 | 685 |
691 } // namespace WebCore | 686 } // namespace WebCore |
OLD | NEW |