| 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/css/resolver/SharedStyleFinder.h" | 5 #include "core/css/resolver/SharedStyleFinder.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/css/RuleFeature.h" | 8 #include "core/css/RuleFeature.h" |
| 8 #include "core/css/RuleSet.h" | 9 #include "core/css/RuleSet.h" |
| 9 #include "core/css/parser/CSSParser.h" | 10 #include "core/css/parser/CSSParser.h" |
| 10 #include "core/css/parser/CSSParserContext.h" | 11 #include "core/css/parser/CSSParserContext.h" |
| 11 #include "core/dom/Document.h" | 12 #include "core/dom/Document.h" |
| 12 #include "core/dom/shadow/ShadowRoot.h" | 13 #include "core/dom/shadow/ShadowRoot.h" |
| 13 #include "core/dom/shadow/ShadowRootInit.h" | 14 #include "core/dom/shadow/ShadowRootInit.h" |
| 14 #include "core/frame/FrameView.h" | 15 #include "core/frame/FrameView.h" |
| 15 #include "core/html/HTMLElement.h" | 16 #include "core/html/HTMLElement.h" |
| 16 #include "core/testing/DummyPageHolder.h" | 17 #include "core/testing/DummyPageHolder.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include <memory> | |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class SharedStyleFinderTest : public ::testing::Test { | 22 class SharedStyleFinderTest : public ::testing::Test { |
| 23 protected: | 23 protected: |
| 24 SharedStyleFinderTest() = default; | 24 SharedStyleFinderTest() = default; |
| 25 ~SharedStyleFinderTest() override = default; | 25 ~SharedStyleFinderTest() override = default; |
| 26 | 26 |
| 27 Document& document() { return m_dummyPageHolder->document(); } | 27 Document& document() { return m_dummyPageHolder->document(); } |
| 28 | 28 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 Element* b = document().getElementById("b"); | 208 Element* b = document().getElementById("b"); |
| 209 | 209 |
| 210 EXPECT_TRUE(a->assignedSlot()); | 210 EXPECT_TRUE(a->assignedSlot()); |
| 211 EXPECT_TRUE(b->assignedSlot()); | 211 EXPECT_TRUE(b->assignedSlot()); |
| 212 | 212 |
| 213 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*a)); | 213 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*a)); |
| 214 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*b)); | 214 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*b)); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace blink | 217 } // namespace blink |
| OLD | NEW |