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( | |
699 SubtreeStyleChange, | |
700 StyleChangeReasonForTracing::create(StyleChangeReason::Zoom)); | |
701 for (Frame* child = tree().firstChild(); child; | 698 for (Frame* child = tree().firstChild(); child; |
702 child = child->tree().nextSibling()) { | 699 child = child->tree().nextSibling()) { |
703 if (child->isLocalFrame()) | 700 if (child->isLocalFrame()) |
704 toLocalFrame(child)->deviceScaleFactorChanged(); | 701 toLocalFrame(child)->deviceScaleFactorChanged(); |
705 } | 702 } |
706 } | 703 } |
707 | 704 |
708 double LocalFrame::devicePixelRatio() const { | 705 double LocalFrame::devicePixelRatio() const { |
709 if (!m_host) | 706 if (!m_host) |
710 return 0; | 707 return 0; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 929 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
933 m_frame->client()->frameBlameContext()->Enter(); | 930 m_frame->client()->frameBlameContext()->Enter(); |
934 } | 931 } |
935 | 932 |
936 ScopedFrameBlamer::~ScopedFrameBlamer() { | 933 ScopedFrameBlamer::~ScopedFrameBlamer() { |
937 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 934 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
938 m_frame->client()->frameBlameContext()->Leave(); | 935 m_frame->client()->frameBlameContext()->Leave(); |
939 } | 936 } |
940 | 937 |
941 } // namespace blink | 938 } // namespace blink |
OLD | NEW |