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 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 11 matching lines...) Expand all Loading... |
22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
25 */ | 25 */ |
26 | 26 |
27 #include "core/frame/FrameView.h" | 27 #include "core/frame/FrameView.h" |
28 | 28 |
29 #include "core/HTMLNames.h" | 29 #include "core/HTMLNames.h" |
30 #include "core/MediaTypeNames.h" | 30 #include "core/MediaTypeNames.h" |
31 #include "core/css/FontFaceSet.h" | 31 #include "core/css/FontFaceSet.h" |
32 #include "core/css/resolver/StyleResolver.h" | |
33 #include "core/dom/AXObjectCache.h" | 32 #include "core/dom/AXObjectCache.h" |
34 #include "core/dom/Fullscreen.h" | 33 #include "core/dom/Fullscreen.h" |
35 #include "core/dom/IntersectionObserverController.h" | 34 #include "core/dom/IntersectionObserverController.h" |
36 #include "core/editing/EditingUtilities.h" | 35 #include "core/editing/EditingUtilities.h" |
37 #include "core/editing/FrameSelection.h" | 36 #include "core/editing/FrameSelection.h" |
38 #include "core/editing/RenderedPosition.h" | 37 #include "core/editing/RenderedPosition.h" |
39 #include "core/editing/markers/DocumentMarkerController.h" | 38 #include "core/editing/markers/DocumentMarkerController.h" |
40 #include "core/fetch/ResourceFetcher.h" | 39 #include "core/fetch/ResourceFetcher.h" |
41 #include "core/frame/EventHandlerRegistry.h" | 40 #include "core/frame/EventHandlerRegistry.h" |
42 #include "core/frame/FrameHost.h" | 41 #include "core/frame/FrameHost.h" |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 performPostLayoutTasks(); | 783 performPostLayoutTasks(); |
785 m_inSynchronousPostLayout = false; | 784 m_inSynchronousPostLayout = false; |
786 } | 785 } |
787 | 786 |
788 bool wasResized = wasViewportResized(); | 787 bool wasResized = wasViewportResized(); |
789 Document* document = m_frame->document(); | 788 Document* document = m_frame->document(); |
790 if (wasResized) | 789 if (wasResized) |
791 document->notifyResizeForViewportUnits(); | 790 document->notifyResizeForViewportUnits(); |
792 | 791 |
793 // Viewport-dependent or device-dependent media queries may cause us to need
completely different style information. | 792 // Viewport-dependent or device-dependent media queries may cause us to need
completely different style information. |
794 if (!document->styleResolver() | 793 if ((wasResized && document->styleEngine().mediaQueryAffectedByViewportChang
e()) |
795 || (wasResized && document->styleResolver()->mediaQueryAffectedByViewpor
tChange()) | 794 || (wasResized && m_frame->settings() && m_frame->settings()->resizeIsDe
viceSizeChange() && document->styleEngine().mediaQueryAffectedByDeviceChange()))
{ |
796 || (wasResized && m_frame->settings() && m_frame->settings()->resizeIsDe
viceSizeChange() && document->styleResolver()->mediaQueryAffectedByDeviceChange(
))) { | |
797 document->mediaQueryAffectingValueChanged(); | 795 document->mediaQueryAffectingValueChanged(); |
798 } else if (wasResized) { | 796 } else if (wasResized) { |
799 document->evaluateMediaQueryList(); | 797 document->evaluateMediaQueryList(); |
800 } | 798 } |
801 | 799 |
802 document->updateStyleAndLayoutTree(); | 800 document->updateStyleAndLayoutTree(); |
803 lifecycle().advanceTo(DocumentLifecycle::StyleClean); | 801 lifecycle().advanceTo(DocumentLifecycle::StyleClean); |
804 | 802 |
805 if (m_frame->isMainFrame() && !m_viewportScrollableArea) { | 803 if (m_frame->isMainFrame() && !m_viewportScrollableArea) { |
806 ScrollableArea& visualViewport = m_frame->host()->visualViewport(); | 804 ScrollableArea& visualViewport = m_frame->host()->visualViewport(); |
(...skipping 3308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4115 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); | 4113 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); |
4116 } | 4114 } |
4117 | 4115 |
4118 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4116 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
4119 { | 4117 { |
4120 ASSERT(!layoutViewItem().isNull()); | 4118 ASSERT(!layoutViewItem().isNull()); |
4121 return *layoutView(); | 4119 return *layoutView(); |
4122 } | 4120 } |
4123 | 4121 |
4124 } // namespace blink | 4122 } // namespace blink |
OLD | NEW |