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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
688 | 688 |
689 document->mediaQueryAffectingValueChanged(); | 689 document->mediaQueryAffectingValueChanged(); |
690 document->setNeedsStyleRecalc( | 690 document->setNeedsStyleRecalc( |
691 SubtreeStyleChange, | 691 SubtreeStyleChange, |
692 StyleChangeReasonForTracing::create(StyleChangeReason::Zoom)); | 692 StyleChangeReasonForTracing::create(StyleChangeReason::Zoom)); |
693 document->updateStyleAndLayoutIgnorePendingStylesheets(); | 693 document->updateStyleAndLayoutIgnorePendingStylesheets(); |
694 } | 694 } |
695 | 695 |
696 void LocalFrame::deviceScaleFactorChanged() { | 696 void LocalFrame::deviceScaleFactorChanged() { |
697 document()->mediaQueryAffectingValueChanged(); | 697 document()->mediaQueryAffectingValueChanged(); |
698 document()->setNeedsStyleRecalc( | |
esprehn
2016/12/09 01:36:21
Did this cause a full document recalc before? I di
rune
2016/12/09 08:55:50
Yes, mediaQueryAffectingValueChanged called resolv
| |
699 SubtreeStyleChange, | |
700 StyleChangeReasonForTracing::create(StyleChangeReason::Zoom)); | |
698 for (Frame* child = tree().firstChild(); child; | 701 for (Frame* child = tree().firstChild(); child; |
699 child = child->tree().nextSibling()) { | 702 child = child->tree().nextSibling()) { |
700 if (child->isLocalFrame()) | 703 if (child->isLocalFrame()) |
701 toLocalFrame(child)->deviceScaleFactorChanged(); | 704 toLocalFrame(child)->deviceScaleFactorChanged(); |
702 } | 705 } |
703 } | 706 } |
704 | 707 |
705 double LocalFrame::devicePixelRatio() const { | 708 double LocalFrame::devicePixelRatio() const { |
706 if (!m_host) | 709 if (!m_host) |
707 return 0; | 710 return 0; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
929 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 932 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
930 m_frame->client()->frameBlameContext()->Enter(); | 933 m_frame->client()->frameBlameContext()->Enter(); |
931 } | 934 } |
932 | 935 |
933 ScopedFrameBlamer::~ScopedFrameBlamer() { | 936 ScopedFrameBlamer::~ScopedFrameBlamer() { |
934 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 937 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
935 m_frame->client()->frameBlameContext()->Leave(); | 938 m_frame->client()->frameBlameContext()->Leave(); |
936 } | 939 } |
937 | 940 |
938 } // namespace blink | 941 } // namespace blink |
OLD | NEW |