OLD | NEW |
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
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); | |
173 } | 172 } |
174 | 173 |
175 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers
::WebViewHelper* webViewHelper) | 174 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers
::WebViewHelper* webViewHelper) |
176 { | 175 { |
177 webViewHelper->initializeAndLoad(url, true); | 176 webViewHelper->initializeAndLoad(url, true); |
178 webViewHelper->webView()->settings()->setDefaultFontSize(12); | 177 webViewHelper->webView()->settings()->setDefaultFontSize(12); |
179 webViewHelper->webView()->resize(WebSize(640, 480)); | 178 webViewHelper->webView()->resize(WebSize(640, 480)); |
180 } | 179 } |
181 | 180 |
182 PassOwnPtr<blink::DragImage> nodeImageTestSetup(FrameTestHelpers::WebViewHel
per* webViewHelper, const std::string& testcase) | 181 PassOwnPtr<blink::DragImage> nodeImageTestSetup(FrameTestHelpers::WebViewHel
per* webViewHelper, const std::string& testcase) |
(...skipping 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6076 | 6075 |
6077 client.reset(); | 6076 client.reset(); |
6078 // Try to load the request with cross origin access. Should succeed. | 6077 // Try to load the request with cross origin access. Should succeed. |
6079 options.crossOriginRequestPolicy = blink::AllowCrossOriginRequests; | 6078 options.crossOriginRequestPolicy = blink::AllowCrossOriginRequests; |
6080 blink::DocumentThreadableLoader::loadResourceSynchronously( | 6079 blink::DocumentThreadableLoader::loadResourceSynchronously( |
6081 *frame->document(), blink::ResourceRequest(resourceUrl), client, options
, resourceLoaderOptions); | 6080 *frame->document(), blink::ResourceRequest(resourceUrl), client, options
, resourceLoaderOptions); |
6082 EXPECT_FALSE(client.failed()); | 6081 EXPECT_FALSE(client.failed()); |
6083 } | 6082 } |
6084 | 6083 |
6085 } // namespace | 6084 } // namespace |
OLD | NEW |