| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/dom/StyleEngine.h" | 5 #include "core/dom/StyleEngine.h" |
| 6 | 6 |
| 7 #include "core/css/StyleSheetContents.h" | 7 #include "core/css/StyleSheetContents.h" |
| 8 #include "core/css/parser/CSSParserContext.h" |
| 8 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 9 #include "core/dom/NodeComputedStyle.h" | 10 #include "core/dom/NodeComputedStyle.h" |
| 10 #include "core/dom/shadow/ShadowRootInit.h" | 11 #include "core/dom/shadow/ShadowRootInit.h" |
| 11 #include "core/frame/FrameView.h" | 12 #include "core/frame/FrameView.h" |
| 12 #include "core/html/HTMLElement.h" | 13 #include "core/html/HTMLElement.h" |
| 13 #include "core/html/HTMLStyleElement.h" | 14 #include "core/html/HTMLStyleElement.h" |
| 14 #include "core/testing/DummyPageHolder.h" | 15 #include "core/testing/DummyPageHolder.h" |
| 15 #include "platform/heap/Heap.h" | 16 #include "platform/heap/Heap.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include <memory> | 18 #include <memory> |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 367 |
| 367 unsigned afterCount = styleEngine().styleForElementCount(); | 368 unsigned afterCount = styleEngine().styleForElementCount(); |
| 368 EXPECT_EQ(0u, afterCount - beforeCount); | 369 EXPECT_EQ(0u, afterCount - beforeCount); |
| 369 | 370 |
| 370 ASSERT_TRUE(t1->computedStyle()); | 371 ASSERT_TRUE(t1->computedStyle()); |
| 371 EXPECT_EQ(makeRGB(0, 128, 0), | 372 EXPECT_EQ(makeRGB(0, 128, 0), |
| 372 t1->computedStyle()->visitedDependentColor(CSSPropertyColor)); | 373 t1->computedStyle()->visitedDependentColor(CSSPropertyColor)); |
| 373 } | 374 } |
| 374 | 375 |
| 375 } // namespace blink | 376 } // namespace blink |
| OLD | NEW |