| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "public/web/WebDocument.h" | 7 #include "public/web/WebDocument.h" |
| 8 | 8 |
| 9 #include "core/CSSPropertyNames.h" | 9 #include "core/CSSPropertyNames.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 11 #include "core/dom/NodeRenderStyle.h" | 11 #include "core/dom/NodeRenderStyle.h" |
| 12 #include "core/frame/LocalFrame.h" | 12 #include "core/frame/LocalFrame.h" |
| 13 #include "core/html/HTMLElement.h" | 13 #include "core/html/HTMLElement.h" |
| 14 #include "core/page/Page.h" |
| 14 #include "core/rendering/style/RenderStyle.h" | 15 #include "core/rendering/style/RenderStyle.h" |
| 15 #include "platform/graphics/Color.h" | 16 #include "platform/graphics/Color.h" |
| 16 #include "web/tests/FrameTestHelpers.h" | 17 #include "web/tests/FrameTestHelpers.h" |
| 17 | 18 |
| 18 #include <gtest/gtest.h> | 19 #include <gtest/gtest.h> |
| 19 | 20 |
| 20 using WebCore::Color; | 21 using WebCore::Color; |
| 21 using WebCore::Document; | 22 using WebCore::Document; |
| 22 using WebCore::HTMLElement; | 23 using WebCore::HTMLElement; |
| 23 using WebCore::RenderStyle; | 24 using WebCore::RenderStyle; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 coreDoc->updateRenderTreeIfNeeded(); | 54 coreDoc->updateRenderTreeIfNeeded(); |
| 54 | 55 |
| 55 style = bodyElement->renderStyle(); | 56 style = bodyElement->renderStyle(); |
| 56 ASSERT(style); | 57 ASSERT(style); |
| 57 | 58 |
| 58 // Inserted stylesheet applied. | 59 // Inserted stylesheet applied. |
| 59 ASSERT_EQ(Color(0, 128, 0), style->visitedDependentColor(WebCore::CSSPropert
yColor)); | 60 ASSERT_EQ(Color(0, 128, 0), style->visitedDependentColor(WebCore::CSSPropert
yColor)); |
| 60 } | 61 } |
| 61 | 62 |
| 62 } | 63 } |
| OLD | NEW |