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 2722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 currentSize = fixedLayoutSize(); | 2733 currentSize = fixedLayoutSize(); |
2734 else | 2734 else |
2735 currentSize = visibleContentRect(IncludeScrollbars).size(); | 2735 currentSize = visibleContentRect(IncludeScrollbars).size(); |
2736 float currentZoomFactor = renderView->style()->zoom(); | 2736 float currentZoomFactor = renderView->style()->zoom(); |
2737 bool resized = !m_firstLayout && (currentSize != m_lastViewportSize || c
urrentZoomFactor != m_lastZoomFactor); | 2737 bool resized = !m_firstLayout && (currentSize != m_lastViewportSize || c
urrentZoomFactor != m_lastZoomFactor); |
2738 m_lastViewportSize = currentSize; | 2738 m_lastViewportSize = currentSize; |
2739 m_lastZoomFactor = currentZoomFactor; | 2739 m_lastZoomFactor = currentZoomFactor; |
2740 if (resized) { | 2740 if (resized) { |
2741 m_frame->eventHandler()->sendResizeEvent(); | 2741 m_frame->eventHandler()->sendResizeEvent(); |
2742 | 2742 |
2743 #if ENABLE(INSPECTOR) | |
2744 if (InspectorInstrumentation::hasFrontends()) { | 2743 if (InspectorInstrumentation::hasFrontends()) { |
2745 if (page) { | 2744 if (page) { |
2746 if (page->mainFrame() == m_frame) { | 2745 if (page->mainFrame() == m_frame) { |
2747 if (InspectorClient* inspectorClient = page->inspectorCo
ntroller()->inspectorClient()) | 2746 if (InspectorClient* inspectorClient = page->inspectorCo
ntroller()->inspectorClient()) |
2748 inspectorClient->didResizeMainFrame(m_frame.get()); | 2747 inspectorClient->didResizeMainFrame(m_frame.get()); |
2749 } | 2748 } |
2750 } | 2749 } |
2751 } | 2750 } |
2752 #endif | |
2753 } | 2751 } |
2754 } | 2752 } |
2755 } | 2753 } |
2756 | 2754 |
2757 void FrameView::postLayoutTimerFired(Timer<FrameView>*) | 2755 void FrameView::postLayoutTimerFired(Timer<FrameView>*) |
2758 { | 2756 { |
2759 performPostLayoutTasks(); | 2757 performPostLayoutTasks(); |
2760 } | 2758 } |
2761 | 2759 |
2762 void FrameView::autoSizeIfEnabled() | 2760 void FrameView::autoSizeIfEnabled() |
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4034 { | 4032 { |
4035 #if USE(ACCELERATED_COMPOSITING) | 4033 #if USE(ACCELERATED_COMPOSITING) |
4036 if (TiledBacking* tiledBacking = this->tiledBacking()) | 4034 if (TiledBacking* tiledBacking = this->tiledBacking()) |
4037 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); | 4035 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); |
4038 #else | 4036 #else |
4039 UNUSED_PARAM(flag); | 4037 UNUSED_PARAM(flag); |
4040 #endif | 4038 #endif |
4041 } | 4039 } |
4042 | 4040 |
4043 } // namespace WebCore | 4041 } // namespace WebCore |
OLD | NEW |