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

Side by Side Diff: Source/WebCore/page/FrameView.cpp

Issue 9812042: Revert 106232 - .: Manual test of number of resize events emitted during page generation. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « ManualTests/resize-events.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 // Now set our scrollbar state for the layout. 1052 // Now set our scrollbar state for the layout.
1053 ScrollbarMode currentHMode = horizontalScrollbarMode(); 1053 ScrollbarMode currentHMode = horizontalScrollbarMode();
1054 ScrollbarMode currentVMode = verticalScrollbarMode(); 1054 ScrollbarMode currentVMode = verticalScrollbarMode();
1055 1055
1056 if (m_firstLayout || (hMode != currentHMode || vMode != currentVMode )) { 1056 if (m_firstLayout || (hMode != currentHMode || vMode != currentVMode )) {
1057 if (m_firstLayout) { 1057 if (m_firstLayout) {
1058 setScrollbarsSuppressed(true); 1058 setScrollbarsSuppressed(true);
1059 1059
1060 m_firstLayout = false; 1060 m_firstLayout = false;
1061 m_firstLayoutCallbackPending = true; 1061 m_firstLayoutCallbackPending = true;
1062 m_lastLayoutSize = LayoutSize(layoutWidth(), layoutHeight()) ; 1062 m_lastLayoutSize = LayoutSize(width(), height());
1063 m_lastZoomFactor = root->style()->zoom(); 1063 m_lastZoomFactor = root->style()->zoom();
1064 1064
1065 // Set the initial vMode to AlwaysOn if we're auto. 1065 // Set the initial vMode to AlwaysOn if we're auto.
1066 if (vMode == ScrollbarAuto) 1066 if (vMode == ScrollbarAuto)
1067 setVerticalScrollbarMode(ScrollbarAlwaysOn); // This cau ses a vertical scrollbar to appear. 1067 setVerticalScrollbarMode(ScrollbarAlwaysOn); // This cau ses a vertical scrollbar to appear.
1068 // Set the initial hMode to AlwaysOff if we're auto. 1068 // Set the initial hMode to AlwaysOff if we're auto.
1069 if (hMode == ScrollbarAuto) 1069 if (hMode == ScrollbarAuto)
1070 setHorizontalScrollbarMode(ScrollbarAlwaysOff); // This causes a horizontal scrollbar to disappear. 1070 setHorizontalScrollbarMode(ScrollbarAlwaysOff); // This causes a horizontal scrollbar to disappear.
1071 1071
1072 setScrollbarModes(hMode, vMode); 1072 setScrollbarModes(hMode, vMode);
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 for (unsigned i = 0; i < maxUpdateWidgetsIterations; i++) { 2301 for (unsigned i = 0; i < maxUpdateWidgetsIterations; i++) {
2302 if (updateWidgets()) 2302 if (updateWidgets())
2303 break; 2303 break;
2304 } 2304 }
2305 2305
2306 scrollToAnchor(); 2306 scrollToAnchor();
2307 2307
2308 m_actionScheduler->resume(); 2308 m_actionScheduler->resume();
2309 2309
2310 if (!root->printing()) { 2310 if (!root->printing()) {
2311 LayoutSize currentSize = LayoutSize(layoutWidth(), layoutHeight()); 2311 LayoutSize currentSize = LayoutSize(width(), height());
2312 float currentZoomFactor = root->style()->zoom(); 2312 float currentZoomFactor = root->style()->zoom();
2313 bool resized = !m_firstLayout && (currentSize != m_lastLayoutSize || cur rentZoomFactor != m_lastZoomFactor); 2313 bool resized = !m_firstLayout && (currentSize != m_lastLayoutSize || cur rentZoomFactor != m_lastZoomFactor);
2314 m_lastLayoutSize = currentSize; 2314 m_lastLayoutSize = currentSize;
2315 m_lastZoomFactor = currentZoomFactor; 2315 m_lastZoomFactor = currentZoomFactor;
2316 if (resized) 2316 if (resized)
2317 m_frame->eventHandler()->sendResizeEvent(); 2317 m_frame->eventHandler()->sendResizeEvent();
2318 } 2318 }
2319 } 2319 }
2320 2320
2321 void FrameView::postLayoutTimerFired(Timer<FrameView>*) 2321 void FrameView::postLayoutTimerFired(Timer<FrameView>*)
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
3278 } 3278 }
3279 3279
3280 AXObjectCache* FrameView::axObjectCache() const 3280 AXObjectCache* FrameView::axObjectCache() const
3281 { 3281 {
3282 if (frame() && frame()->document() && frame()->document()->axObjectCacheExis ts()) 3282 if (frame() && frame()->document() && frame()->document()->axObjectCacheExis ts())
3283 return frame()->document()->axObjectCache(); 3283 return frame()->document()->axObjectCache();
3284 return 0; 3284 return 0;
3285 } 3285 }
3286 3286
3287 } // namespace WebCore 3287 } // namespace WebCore
OLDNEW
« no previous file with comments | « ManualTests/resize-events.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698