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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 } | 511 } |
512 | 512 |
513 m_pageZoomFactor = pageZoomFactor; | 513 m_pageZoomFactor = pageZoomFactor; |
514 m_textZoomFactor = textZoomFactor; | 514 m_textZoomFactor = textZoomFactor; |
515 | 515 |
516 for (RefPtr<Frame> child = tree().firstChild(); child; child = child->tree()
.nextSibling()) { | 516 for (RefPtr<Frame> child = tree().firstChild(); child; child = child->tree()
.nextSibling()) { |
517 if (child->isLocalFrame()) | 517 if (child->isLocalFrame()) |
518 toLocalFrame(child.get())->setPageAndTextZoomFactors(m_pageZoomFacto
r, m_textZoomFactor); | 518 toLocalFrame(child.get())->setPageAndTextZoomFactors(m_pageZoomFacto
r, m_textZoomFactor); |
519 } | 519 } |
520 | 520 |
521 document->setNeedsStyleRecalc(SubtreeStyleChange); | 521 document->setNeedsStyleRecalc(StyleChangeReasonForTracing::Zoom, SubtreeStyl
eChange); |
522 document->updateLayoutIgnorePendingStylesheets(); | 522 document->updateLayoutIgnorePendingStylesheets(); |
523 } | 523 } |
524 | 524 |
525 void LocalFrame::deviceOrPageScaleFactorChanged() | 525 void LocalFrame::deviceOrPageScaleFactorChanged() |
526 { | 526 { |
527 document()->mediaQueryAffectingValueChanged(); | 527 document()->mediaQueryAffectingValueChanged(); |
528 for (RefPtr<Frame> child = tree().firstChild(); child; child = child->tree()
.nextSibling()) { | 528 for (RefPtr<Frame> child = tree().firstChild(); child; child = child->tree()
.nextSibling()) { |
529 if (child->isLocalFrame()) | 529 if (child->isLocalFrame()) |
530 toLocalFrame(child.get())->deviceOrPageScaleFactorChanged(); | 530 toLocalFrame(child.get())->deviceOrPageScaleFactorChanged(); |
531 } | 531 } |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 | 679 |
680 return curFrame; | 680 return curFrame; |
681 } | 681 } |
682 | 682 |
683 void LocalFrame::setPagePopupOwner(Element& owner) | 683 void LocalFrame::setPagePopupOwner(Element& owner) |
684 { | 684 { |
685 m_pagePopupOwner = &owner; | 685 m_pagePopupOwner = &owner; |
686 } | 686 } |
687 | 687 |
688 } // namespace blink | 688 } // namespace blink |
OLD | NEW |