| 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 double LocalFrame::devicePixelRatio() const | 563 double LocalFrame::devicePixelRatio() const |
| 564 { | 564 { |
| 565 if (!m_host) | 565 if (!m_host) |
| 566 return 0; | 566 return 0; |
| 567 | 567 |
| 568 double ratio = m_host->deviceScaleFactor(); | 568 double ratio = m_host->deviceScaleFactor(); |
| 569 ratio *= pageZoomFactor(); | 569 ratio *= pageZoomFactor(); |
| 570 return ratio; | 570 return ratio; |
| 571 } | 571 } |
| 572 | 572 |
| 573 String LocalFrame::documentTypeString() const | |
| 574 { | |
| 575 if (DocumentType* doctype = document()->doctype()) | |
| 576 return createMarkup(doctype); | |
| 577 | |
| 578 return String(); | |
| 579 } | |
| 580 | |
| 581 PassOwnPtr<DragImage> LocalFrame::nodeImage(Node& node) | 573 PassOwnPtr<DragImage> LocalFrame::nodeImage(Node& node) |
| 582 { | 574 { |
| 583 if (!node.renderer()) | 575 if (!node.renderer()) |
| 584 return nullptr; | 576 return nullptr; |
| 585 | 577 |
| 586 const ScopedFramePaintingState state(this, &node); | 578 const ScopedFramePaintingState state(this, &node); |
| 587 | 579 |
| 588 m_view->updateLayoutAndStyleForPainting(); | 580 m_view->updateLayoutAndStyleForPainting(); |
| 589 | 581 |
| 590 m_view->setPaintBehavior(state.paintBehavior | PaintBehaviorFlattenCompositi
ngLayers); | 582 m_view->setPaintBehavior(state.paintBehavior | PaintBehaviorFlattenCompositi
ngLayers); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 // We detach the FrameView's custom scroll bars as early as | 785 // We detach the FrameView's custom scroll bars as early as |
| 794 // possible to prevent m_doc->detach() from messing with the view | 786 // possible to prevent m_doc->detach() from messing with the view |
| 795 // such that its scroll bars won't be torn down. | 787 // such that its scroll bars won't be torn down. |
| 796 // | 788 // |
| 797 // FIXME: We should revisit this. | 789 // FIXME: We should revisit this. |
| 798 if (m_view) | 790 if (m_view) |
| 799 m_view->prepareForDetach(); | 791 m_view->prepareForDetach(); |
| 800 } | 792 } |
| 801 | 793 |
| 802 } // namespace blink | 794 } // namespace blink |
| OLD | NEW |