| 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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 9 * rights reserved. | 9 * rights reserved. |
| 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 view()->setSubtreeNeedsPaintPropertyUpdate(); | 607 view()->setSubtreeNeedsPaintPropertyUpdate(); |
| 608 | 608 |
| 609 if (!printing) | 609 if (!printing) |
| 610 document()->setPrinting(Document::NotPrinting); | 610 document()->setPrinting(Document::NotPrinting); |
| 611 } | 611 } |
| 612 | 612 |
| 613 bool LocalFrame::shouldUsePrintingLayout() const { | 613 bool LocalFrame::shouldUsePrintingLayout() const { |
| 614 // Only top frame being printed should be fit to page size. | 614 // Only top frame being printed should be fit to page size. |
| 615 // Subframes should be constrained by parents only. | 615 // Subframes should be constrained by parents only. |
| 616 return document()->printing() && | 616 return document()->printing() && |
| 617 (!tree().parent() || !tree().parent()->isLocalFrame() || | 617 (!tree().parent() || |
| 618 !toLocalFrame(tree().parent())->document()->printing()); | 618 (tree().parent()->isLocalFrame() && |
| 619 !toLocalFrame(tree().parent())->document()->printing())); |
| 619 } | 620 } |
| 620 | 621 |
| 621 FloatSize LocalFrame::resizePageRectsKeepingRatio( | 622 FloatSize LocalFrame::resizePageRectsKeepingRatio( |
| 622 const FloatSize& originalSize, | 623 const FloatSize& originalSize, |
| 623 const FloatSize& expectedSize) { | 624 const FloatSize& expectedSize) { |
| 624 FloatSize resultSize; | 625 FloatSize resultSize; |
| 625 if (contentLayoutItem().isNull()) | 626 if (contentLayoutItem().isNull()) |
| 626 return FloatSize(); | 627 return FloatSize(); |
| 627 | 628 |
| 628 if (contentLayoutItem().style()->isHorizontalWritingMode()) { | 629 if (contentLayoutItem().style()->isHorizontalWritingMode()) { |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 939 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 939 m_frame->client()->frameBlameContext()->Enter(); | 940 m_frame->client()->frameBlameContext()->Enter(); |
| 940 } | 941 } |
| 941 | 942 |
| 942 ScopedFrameBlamer::~ScopedFrameBlamer() { | 943 ScopedFrameBlamer::~ScopedFrameBlamer() { |
| 943 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 944 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 944 m_frame->client()->frameBlameContext()->Leave(); | 945 m_frame->client()->frameBlameContext()->Leave(); |
| 945 } | 946 } |
| 946 | 947 |
| 947 } // namespace blink | 948 } // namespace blink |
| OLD | NEW |