| 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 "core/css/RuleFeature.h" | 7 #include "core/css/RuleFeature.h" |
| 8 #include "core/css/RuleSet.h" | 8 #include "core/css/RuleSet.h" |
| 9 #include "core/css/parser/CSSParser.h" | 9 #include "core/css/parser/CSSParser.h" |
| 10 #include "core/css/parser/CSSParserContext.h" |
| 10 #include "core/dom/Document.h" | 11 #include "core/dom/Document.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/testing/DummyPageHolder.h" | 14 #include "core/testing/DummyPageHolder.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include <memory> | 16 #include <memory> |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 | 19 |
| 19 class SharedStyleFinderTest : public ::testing::Test { | 20 class SharedStyleFinderTest : public ::testing::Test { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 ASSERT_TRUE(b); | 176 ASSERT_TRUE(b); |
| 176 | 177 |
| 177 EXPECT_FALSE(a->isDragged()); | 178 EXPECT_FALSE(a->isDragged()); |
| 178 EXPECT_FALSE(b->isDragged()); | 179 EXPECT_FALSE(b->isDragged()); |
| 179 | 180 |
| 180 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*a)); | 181 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*a)); |
| 181 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*b)); | 182 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*b)); |
| 182 } | 183 } |
| 183 | 184 |
| 184 } // namespace blink | 185 } // namespace blink |
| OLD | NEW |