OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 } | 1091 } |
1092 | 1092 |
1093 static void configueCompositingWebView(WebSettings* settings) | 1093 static void configueCompositingWebView(WebSettings* settings) |
1094 { | 1094 { |
1095 settings->setForceCompositingMode(true); | 1095 settings->setForceCompositingMode(true); |
1096 settings->setAcceleratedCompositingEnabled(true); | 1096 settings->setAcceleratedCompositingEnabled(true); |
1097 settings->setAcceleratedCompositingForFixedPositionEnabled(true); | 1097 settings->setAcceleratedCompositingForFixedPositionEnabled(true); |
1098 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); | 1098 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); |
1099 settings->setAcceleratedCompositingForScrollableFramesEnabled(true); | 1099 settings->setAcceleratedCompositingForScrollableFramesEnabled(true); |
1100 settings->setCompositedScrollingForFramesEnabled(true); | 1100 settings->setCompositedScrollingForFramesEnabled(true); |
1101 settings->setFixedPositionCreatesStackingContext(true); | |
1102 } | 1101 } |
1103 | 1102 |
1104 TEST_F(WebViewTest, ShowPressOnTransformedLink) | 1103 TEST_F(WebViewTest, ShowPressOnTransformedLink) |
1105 { | 1104 { |
1106 OwnPtr<FakeCompositingWebViewClient> fakeCompositingWebViewClient = adoptPtr
(new FakeCompositingWebViewClient()); | 1105 OwnPtr<FakeCompositingWebViewClient> fakeCompositingWebViewClient = adoptPtr
(new FakeCompositingWebViewClient()); |
1107 FrameTestHelpers::WebViewHelper webViewHelper; | 1106 FrameTestHelpers::WebViewHelper webViewHelper; |
1108 WebViewImpl* webViewImpl = webViewHelper.initialize(true, 0, fakeCompositing
WebViewClient.get(), &configueCompositingWebView); | 1107 WebViewImpl* webViewImpl = webViewHelper.initialize(true, 0, fakeCompositing
WebViewClient.get(), &configueCompositingWebView); |
1109 | 1108 |
1110 int pageWidth = 640; | 1109 int pageWidth = 640; |
1111 int pageHeight = 480; | 1110 int pageHeight = 480; |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 testSelectionRootBounds("select_range_iframe_textarea_overflow.html", 1.0f); | 1740 testSelectionRootBounds("select_range_iframe_textarea_overflow.html", 1.0f); |
1742 | 1741 |
1743 // Basic page with scale factor. | 1742 // Basic page with scale factor. |
1744 testSelectionRootBounds("select_range_basic.html", 0.0f); | 1743 testSelectionRootBounds("select_range_basic.html", 0.0f); |
1745 testSelectionRootBounds("select_range_basic.html", 0.1f); | 1744 testSelectionRootBounds("select_range_basic.html", 0.1f); |
1746 testSelectionRootBounds("select_range_basic.html", 1.5f); | 1745 testSelectionRootBounds("select_range_basic.html", 1.5f); |
1747 testSelectionRootBounds("select_range_basic.html", 2.0f); | 1746 testSelectionRootBounds("select_range_basic.html", 2.0f); |
1748 } | 1747 } |
1749 | 1748 |
1750 } // namespace | 1749 } // namespace |
OLD | NEW |