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/fetch/CSSStyleSheetResource.h" | 5 #include "core/loader/resource/CSSStyleSheetResource.h" |
6 | 6 |
7 #include "core/css/CSSCrossfadeValue.h" | 7 #include "core/css/CSSCrossfadeValue.h" |
8 #include "core/css/CSSImageValue.h" | 8 #include "core/css/CSSImageValue.h" |
9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
10 #include "core/css/CSSProperty.h" | 10 #include "core/css/CSSProperty.h" |
11 #include "core/css/CSSSelectorList.h" | 11 #include "core/css/CSSSelectorList.h" |
12 #include "core/css/CSSStyleSheet.h" | 12 #include "core/css/CSSStyleSheet.h" |
13 #include "core/css/StylePropertySet.h" | 13 #include "core/css/StylePropertySet.h" |
14 #include "core/css/StyleRule.h" | 14 #include "core/css/StyleRule.h" |
15 #include "core/css/StyleSheetContents.h" | 15 #include "core/css/StyleSheetContents.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // The underlying |contents| for the stylesheet resource must have a | 90 // The underlying |contents| for the stylesheet resource must have a |
91 // matching reference status. | 91 // matching reference status. |
92 EXPECT_TRUE(memoryCache()->contains(imageResource)); | 92 EXPECT_TRUE(memoryCache()->contains(imageResource)); |
93 EXPECT_FALSE(memoryCache()->contains(cssResource)); | 93 EXPECT_FALSE(memoryCache()->contains(cssResource)); |
94 EXPECT_FALSE(contents->isReferencedFromResource()); | 94 EXPECT_FALSE(contents->isReferencedFromResource()); |
95 EXPECT_FALSE(cssResource->restoreParsedStyleSheet(parserContext)); | 95 EXPECT_FALSE(cssResource->restoreParsedStyleSheet(parserContext)); |
96 } | 96 } |
97 | 97 |
98 } // namespace | 98 } // namespace |
99 } // namespace blink | 99 } // namespace blink |
OLD | NEW |