| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "core/rendering/RenderLayerBacking.h" | 28 #include "core/rendering/RenderLayerBacking.h" |
| 29 | 29 |
| 30 #include <gtest/gtest.h> | 30 #include <gtest/gtest.h> |
| 31 #include "Document.h" | |
| 32 #include "FrameTestHelpers.h" | 31 #include "FrameTestHelpers.h" |
| 33 #include "URLTestHelpers.h" | 32 #include "URLTestHelpers.h" |
| 34 #include "WebCompositorInitializer.h" | 33 #include "WebCompositorInitializer.h" |
| 35 #include "WebDocument.h" | 34 #include "WebDocument.h" |
| 36 #include "WebElement.h" | 35 #include "WebElement.h" |
| 37 #include "WebFrameClient.h" | 36 #include "WebFrameClient.h" |
| 38 #include "WebFrameImpl.h" | 37 #include "WebFrameImpl.h" |
| 39 #include "WebSettings.h" | 38 #include "WebSettings.h" |
| 40 #include "WebViewClient.h" | 39 #include "WebViewClient.h" |
| 41 #include "WebViewImpl.h" | 40 #include "WebViewImpl.h" |
| 41 #include "core/dom/Document.h" |
| 42 #include "core/page/FrameView.h" | 42 #include "core/page/FrameView.h" |
| 43 #include <public/Platform.h> | 43 #include <public/Platform.h> |
| 44 #include <public/WebUnitTestSupport.h> | 44 #include <public/WebUnitTestSupport.h> |
| 45 | 45 |
| 46 using namespace WebKit; | 46 using namespace WebKit; |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 layerElement = document->getElementById("layer-solid-color"); | 129 layerElement = document->getElementById("layer-solid-color"); |
| 130 renderer = toRenderLayerModelObject(layerElement->renderer()); | 130 renderer = toRenderLayerModelObject(layerElement->renderer()); |
| 131 // RenderLayerBacking::graphicsLayer's background color is unset if SolidCol
orLayer is created. | 131 // RenderLayerBacking::graphicsLayer's background color is unset if SolidCol
orLayer is created. |
| 132 EXPECT_EQ(Color(), renderer->layer()->backing()->graphicsLayer()->background
Color()); | 132 EXPECT_EQ(Color(), renderer->layer()->backing()->graphicsLayer()->background
Color()); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace WebCore | 137 } // namespace WebCore |
| OLD | NEW |