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

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

Issue 480803002: Merge CompositedScrollingForFrames into PreferCompositingToLCDText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/ScrollingCoordinatorChromiumTest.cpp ('k') | Source/web/tests/WebViewTest.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) 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 Document* document = toLocalFrame(webViewHelper->webViewImpl()->page()-> mainFrame())->document(); 163 Document* document = toLocalFrame(webViewHelper->webViewImpl()->page()-> mainFrame())->document();
164 document->ensureStyleResolver().viewportStyleResolver()->collectViewport Rules(ruleSet.get(), blink::ViewportStyleResolver::UserAgentOrigin); 164 document->ensureStyleResolver().viewportStyleResolver()->collectViewport Rules(ruleSet.get(), blink::ViewportStyleResolver::UserAgentOrigin);
165 document->ensureStyleResolver().viewportStyleResolver()->resolve(); 165 document->ensureStyleResolver().viewportStyleResolver()->resolve();
166 } 166 }
167 167
168 static void configueCompositingWebView(WebSettings* settings) 168 static void configueCompositingWebView(WebSettings* settings)
169 { 169 {
170 settings->setAcceleratedCompositingEnabled(true); 170 settings->setAcceleratedCompositingEnabled(true);
171 settings->setPreferCompositingToLCDTextEnabled(true); 171 settings->setPreferCompositingToLCDTextEnabled(true);
172 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); 172 settings->setAcceleratedCompositingForOverflowScrollEnabled(true);
173 settings->setCompositedScrollingForFramesEnabled(true);
174 } 173 }
175 174
176 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers ::WebViewHelper* webViewHelper) 175 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers ::WebViewHelper* webViewHelper)
177 { 176 {
178 webViewHelper->initializeAndLoad(url, true); 177 webViewHelper->initializeAndLoad(url, true);
179 webViewHelper->webView()->settings()->setDefaultFontSize(12); 178 webViewHelper->webView()->settings()->setDefaultFontSize(12);
180 webViewHelper->webView()->resize(WebSize(640, 480)); 179 webViewHelper->webView()->resize(WebSize(640, 480));
181 } 180 }
182 181
183 PassOwnPtr<blink::DragImage> nodeImageTestSetup(FrameTestHelpers::WebViewHel per* webViewHelper, const std::string& testcase) 182 PassOwnPtr<blink::DragImage> nodeImageTestSetup(FrameTestHelpers::WebViewHel per* webViewHelper, const std::string& testcase)
(...skipping 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after
6077 6076
6078 client.reset(); 6077 client.reset();
6079 // Try to load the request with cross origin access. Should succeed. 6078 // Try to load the request with cross origin access. Should succeed.
6080 options.crossOriginRequestPolicy = blink::AllowCrossOriginRequests; 6079 options.crossOriginRequestPolicy = blink::AllowCrossOriginRequests;
6081 blink::DocumentThreadableLoader::loadResourceSynchronously( 6080 blink::DocumentThreadableLoader::loadResourceSynchronously(
6082 *frame->document(), blink::ResourceRequest(resourceUrl), client, options , resourceLoaderOptions); 6081 *frame->document(), blink::ResourceRequest(resourceUrl), client, options , resourceLoaderOptions);
6083 EXPECT_FALSE(client.failed()); 6082 EXPECT_FALSE(client.failed());
6084 } 6083 }
6085 6084
6086 } // namespace 6085 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/ScrollingCoordinatorChromiumTest.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698