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

Side by Side Diff: Source/web/tests/ScrollingCoordinatorChromiumTest.cpp

Issue 145133006: Remove the recalc style timer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moar raf Created 6 years, 11 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 | « Source/core/dom/Document.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 void navigateTo(const std::string& url) 82 void navigateTo(const std::string& url)
83 { 83 {
84 FrameTestHelpers::loadFrame(webViewImpl()->mainFrame(), url); 84 FrameTestHelpers::loadFrame(webViewImpl()->mainFrame(), url);
85 Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests( ); 85 Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests( );
86 } 86 }
87 87
88 void forceFullCompositingUpdate() 88 void forceFullCompositingUpdate()
89 { 89 {
90 webViewImpl()->layout();
90 RenderLayerCompositor* compositor = frame()->contentRenderer()->composit or(); 91 RenderLayerCompositor* compositor = frame()->contentRenderer()->composit or();
91 compositor->updateCompositingLayers(); 92 compositor->updateCompositingLayers();
92 } 93 }
93 94
94 void registerMockedHttpURLLoad(const std::string& fileName) 95 void registerMockedHttpURLLoad(const std::string& fileName)
95 { 96 {
96 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL.c_str()), WebString::fromUTF8(fileName.c_str())); 97 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL.c_str()), WebString::fromUTF8(fileName.c_str()));
97 } 98 }
98 99
99 WebLayer* getRootScrollLayer() 100 WebLayer* getRootScrollLayer()
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) 467 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash)
467 { 468 {
468 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); 469 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html");
469 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); 470 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html");
470 forceFullCompositingUpdate(); 471 forceFullCompositingUpdate();
471 // This test document setup an iframe with scrollbars, then switch to 472 // This test document setup an iframe with scrollbars, then switch to
472 // an empty document by javascript. 473 // an empty document by javascript.
473 } 474 }
474 475
475 } // namespace 476 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698