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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 | 588 |
589 m_pageZoomFactor = pageZoomFactor; | 589 m_pageZoomFactor = pageZoomFactor; |
590 m_textZoomFactor = textZoomFactor; | 590 m_textZoomFactor = textZoomFactor; |
591 | 591 |
592 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi
bling()) { | 592 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi
bling()) { |
593 if (child->isLocalFrame()) | 593 if (child->isLocalFrame()) |
594 toLocalFrame(child)->setPageAndTextZoomFactors(m_pageZoomFactor, m_t
extZoomFactor); | 594 toLocalFrame(child)->setPageAndTextZoomFactors(m_pageZoomFactor, m_t
extZoomFactor); |
595 } | 595 } |
596 | 596 |
597 document->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracin
g::create(StyleChangeReason::Zoom)); | 597 document->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracin
g::create(StyleChangeReason::Zoom)); |
598 document->updateLayoutIgnorePendingStylesheets(); | 598 document->updateStyleAndLayoutIgnorePendingStylesheets(); |
599 } | 599 } |
600 | 600 |
601 void LocalFrame::deviceScaleFactorChanged() | 601 void LocalFrame::deviceScaleFactorChanged() |
602 { | 602 { |
603 document()->mediaQueryAffectingValueChanged(); | 603 document()->mediaQueryAffectingValueChanged(); |
604 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi
bling()) { | 604 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi
bling()) { |
605 if (child->isLocalFrame()) | 605 if (child->isLocalFrame()) |
606 toLocalFrame(child)->deviceScaleFactorChanged(); | 606 toLocalFrame(child)->deviceScaleFactorChanged(); |
607 } | 607 } |
608 } | 608 } |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 { | 814 { |
815 m_frame->disableNavigation(); | 815 m_frame->disableNavigation(); |
816 } | 816 } |
817 | 817 |
818 FrameNavigationDisabler::~FrameNavigationDisabler() | 818 FrameNavigationDisabler::~FrameNavigationDisabler() |
819 { | 819 { |
820 m_frame->enableNavigation(); | 820 m_frame->enableNavigation(); |
821 } | 821 } |
822 | 822 |
823 } // namespace blink | 823 } // namespace blink |
OLD | NEW |