Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698