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

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

Issue 239533002: Combine settings about compositing scrollable frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 document->ensureStyleResolver().viewportStyleResolver()->collectViewport Rules(ruleSet.get(), WebCore::ViewportStyleResolver::UserAgentOrigin); 171 document->ensureStyleResolver().viewportStyleResolver()->collectViewport Rules(ruleSet.get(), WebCore::ViewportStyleResolver::UserAgentOrigin);
172 document->ensureStyleResolver().viewportStyleResolver()->resolve(); 172 document->ensureStyleResolver().viewportStyleResolver()->resolve();
173 } 173 }
174 174
175 static void configueCompositingWebView(WebSettings* settings) 175 static void configueCompositingWebView(WebSettings* settings)
176 { 176 {
177 settings->setForceCompositingMode(true); 177 settings->setForceCompositingMode(true);
178 settings->setAcceleratedCompositingEnabled(true); 178 settings->setAcceleratedCompositingEnabled(true);
179 settings->setAcceleratedCompositingForFixedPositionEnabled(true); 179 settings->setAcceleratedCompositingForFixedPositionEnabled(true);
180 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); 180 settings->setAcceleratedCompositingForOverflowScrollEnabled(true);
181 settings->setAcceleratedCompositingForScrollableFramesEnabled(true);
182 settings->setCompositedScrollingForFramesEnabled(true); 181 settings->setCompositedScrollingForFramesEnabled(true);
183 } 182 }
184 183
185 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers ::WebViewHelper* webViewHelper) 184 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers ::WebViewHelper* webViewHelper)
186 { 185 {
187 webViewHelper->initializeAndLoad(url, true); 186 webViewHelper->initializeAndLoad(url, true);
188 webViewHelper->webView()->settings()->setDefaultFontSize(12); 187 webViewHelper->webView()->settings()->setDefaultFontSize(12);
189 webViewHelper->webView()->resize(WebSize(640, 480)); 188 webViewHelper->webView()->resize(WebSize(640, 480));
190 } 189 }
191 190
(...skipping 5202 matching lines...) Expand 10 before | Expand all | Expand 10 after
5394 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); 5393 EXPECT_EQ(2U, container->percentHeightDescendants()->size());
5395 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA nonymous)); 5394 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA nonymous));
5396 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir ectChild)); 5395 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir ectChild));
5397 5396
5398 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB lock(); 5397 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB lock();
5399 EXPECT_TRUE(anonymousBlock->isAnonymous()); 5398 EXPECT_TRUE(anonymousBlock->isAnonymous());
5400 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); 5399 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants());
5401 } 5400 }
5402 5401
5403 } // namespace 5402 } // 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