| 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/ActiveStyleSheets.h" | 5 #include "core/css/ActiveStyleSheets.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8Binding.h" | 7 #include "bindings/core/v8/V8BindingForCore.h" |
| 8 #include "core/css/CSSStyleSheet.h" | 8 #include "core/css/CSSStyleSheet.h" |
| 9 #include "core/css/MediaQueryEvaluator.h" | 9 #include "core/css/MediaQueryEvaluator.h" |
| 10 #include "core/css/StyleSheetContents.h" | 10 #include "core/css/StyleSheetContents.h" |
| 11 #include "core/css/StyleSheetList.h" | 11 #include "core/css/StyleSheetList.h" |
| 12 #include "core/css/parser/CSSParserContext.h" | 12 #include "core/css/parser/CSSParserContext.h" |
| 13 #include "core/css/parser/MediaQueryParser.h" | 13 #include "core/css/parser/MediaQueryParser.h" |
| 14 #include "core/dom/StyleEngine.h" | 14 #include "core/dom/StyleEngine.h" |
| 15 #include "core/dom/shadow/ShadowRoot.h" | 15 #include "core/dom/shadow/ShadowRoot.h" |
| 16 #include "core/dom/shadow/ShadowRootInit.h" | 16 #include "core/dom/shadow/ShadowRootInit.h" |
| 17 #include "core/frame/FrameView.h" | 17 #include "core/frame/FrameView.h" |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 ActiveStyleSheetVector old_style_sheets; | 571 ActiveStyleSheetVector old_style_sheets; |
| 572 old_style_sheets.push_back( | 572 old_style_sheets.push_back( |
| 573 std::make_pair(css_sheet, &css_sheet->Contents()->GetRuleSet())); | 573 std::make_pair(css_sheet, &css_sheet->Contents()->GetRuleSet())); |
| 574 GetStyleEngine().ApplyRuleSetChanges(shadow_root, old_style_sheets, | 574 GetStyleEngine().ApplyRuleSetChanges(shadow_root, old_style_sheets, |
| 575 ActiveStyleSheetVector()); | 575 ActiveStyleSheetVector()); |
| 576 | 576 |
| 577 EXPECT_TRUE(GetStyleEngine().TreeBoundaryCrossingScopes().IsEmpty()); | 577 EXPECT_TRUE(GetStyleEngine().TreeBoundaryCrossingScopes().IsEmpty()); |
| 578 } | 578 } |
| 579 | 579 |
| 580 } // namespace blink | 580 } // namespace blink |
| OLD | NEW |