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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 static void configueCompositingWebView(WebSettings* settings) | 160 static void configueCompositingWebView(WebSettings* settings) |
161 { | 161 { |
162 settings->setForceCompositingMode(true); | 162 settings->setForceCompositingMode(true); |
163 settings->setAcceleratedCompositingEnabled(true); | 163 settings->setAcceleratedCompositingEnabled(true); |
164 settings->setAcceleratedCompositingForFixedPositionEnabled(true); | 164 settings->setAcceleratedCompositingForFixedPositionEnabled(true); |
165 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); | 165 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); |
166 settings->setAcceleratedCompositingForScrollableFramesEnabled(true); | 166 settings->setAcceleratedCompositingForScrollableFramesEnabled(true); |
167 settings->setCompositedScrollingForFramesEnabled(true); | 167 settings->setCompositedScrollingForFramesEnabled(true); |
168 settings->setFixedPositionCreatesStackingContext(true); | |
169 } | 168 } |
170 | 169 |
171 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers
::WebViewHelper* webViewHelper) | 170 void initializeTextSelectionWebView(const std::string& url, FrameTestHelpers
::WebViewHelper* webViewHelper) |
172 { | 171 { |
173 webViewHelper->initializeAndLoad(url, true); | 172 webViewHelper->initializeAndLoad(url, true); |
174 webViewHelper->webView()->settings()->setDefaultFontSize(12); | 173 webViewHelper->webView()->settings()->setDefaultFontSize(12); |
175 webViewHelper->webView()->resize(WebSize(640, 480)); | 174 webViewHelper->webView()->resize(WebSize(640, 480)); |
176 } | 175 } |
177 | 176 |
178 std::string m_baseURL; | 177 std::string m_baseURL; |
(...skipping 5213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5392 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); | 5391 EXPECT_EQ(2U, container->percentHeightDescendants()->size()); |
5393 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA
nonymous)); | 5392 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightInA
nonymous)); |
5394 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir
ectChild)); | 5393 EXPECT_TRUE(container->percentHeightDescendants()->contains(percentHeightDir
ectChild)); |
5395 | 5394 |
5396 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB
lock(); | 5395 WebCore::RenderBlock* anonymousBlock = percentHeightInAnonymous->containingB
lock(); |
5397 EXPECT_TRUE(anonymousBlock->isAnonymous()); | 5396 EXPECT_TRUE(anonymousBlock->isAnonymous()); |
5398 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); | 5397 EXPECT_FALSE(anonymousBlock->hasPercentHeightDescendants()); |
5399 } | 5398 } |
5400 | 5399 |
5401 } // namespace | 5400 } // namespace |
OLD | NEW |