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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2816873002: Update PaintLayer size during layout, not after.
Patch Set: Speculatively remove call to UpdateScrollbars() Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // not take the user away from the current page. 344 // not take the user away from the current page.
345 void DidCommitLoad(bool is_new_navigation, bool is_navigation_within_page); 345 void DidCommitLoad(bool is_new_navigation, bool is_navigation_within_page);
346 346
347 void PostLayoutResize(WebLocalFrameImpl* webframe); 347 void PostLayoutResize(WebLocalFrameImpl* webframe);
348 348
349 // Indicates two things: 349 // Indicates two things:
350 // 1) This view may have a new layout now. 350 // 1) This view may have a new layout now.
351 // 2) Calling updateAllLifecyclePhases() is a no-op. 351 // 2) Calling updateAllLifecyclePhases() is a no-op.
352 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this 352 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this
353 // notification unless the view did not need a layout. 353 // notification unless the view did not need a layout.
354 void ResizeAfterLayout(WebLocalFrameImpl*);
354 void LayoutUpdated(WebLocalFrameImpl*); 355 void LayoutUpdated(WebLocalFrameImpl*);
355 356
356 void DidChangeContentsSize(); 357 void DidChangeContentsSize();
357 void PageScaleFactorChanged(); 358 void PageScaleFactorChanged();
358 void MainFrameScrollOffsetChanged(); 359 void MainFrameScrollOffsetChanged();
359 360
360 // Returns true if popup menus should be rendered by the browser, false if 361 // Returns true if popup menus should be rendered by the browser, false if
361 // they should be rendered by WebKit (which is the default). 362 // they should be rendered by WebKit (which is the default).
362 static bool UseExternalPopupMenus(); 363 static bool UseExternalPopupMenus();
363 364
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; 742 Persistent<ResizeViewportAnchor> resize_viewport_anchor_;
742 }; 743 };
743 744
744 // We have no ways to check if the specified WebView is an instance of 745 // We have no ways to check if the specified WebView is an instance of
745 // WebViewImpl because WebViewImpl is the only implementation of WebView. 746 // WebViewImpl because WebViewImpl is the only implementation of WebView.
746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
747 748
748 } // namespace blink 749 } // namespace blink
749 750
750 #endif 751 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698