Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Side by Side Diff: third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: fix compile Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/css/CSSStyleSheet.h" 7 #include "core/css/CSSStyleSheet.h"
8 #include "core/css/MediaQueryEvaluator.h" 8 #include "core/css/MediaQueryEvaluator.h"
9 #include "core/css/StyleSheetContents.h" 9 #include "core/css/StyleSheetContents.h"
10 #include "core/css/StyleSheetList.h" 10 #include "core/css/StyleSheetList.h"
11 #include "core/css/parser/CSSParserMode.h" 11 #include "core/css/parser/CSSParserContext.h"
12 #include "core/dom/StyleEngine.h" 12 #include "core/dom/StyleEngine.h"
13 #include "core/dom/shadow/ShadowRoot.h" 13 #include "core/dom/shadow/ShadowRoot.h"
14 #include "core/dom/shadow/ShadowRootInit.h" 14 #include "core/dom/shadow/ShadowRootInit.h"
15 #include "core/frame/FrameView.h" 15 #include "core/frame/FrameView.h"
16 #include "core/html/HTMLElement.h" 16 #include "core/html/HTMLElement.h"
17 #include "core/testing/DummyPageHolder.h" 17 #include "core/testing/DummyPageHolder.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace blink { 20 namespace blink {
21 21
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 ActiveStyleSheetVector oldStyleSheets; 460 ActiveStyleSheetVector oldStyleSheets;
461 oldStyleSheets.push_back( 461 oldStyleSheets.push_back(
462 std::make_pair(cssSheet, &cssSheet->contents()->ruleSet())); 462 std::make_pair(cssSheet, &cssSheet->contents()->ruleSet()));
463 styleEngine().applyRuleSetChanges(shadowRoot, oldStyleSheets, 463 styleEngine().applyRuleSetChanges(shadowRoot, oldStyleSheets,
464 ActiveStyleSheetVector()); 464 ActiveStyleSheetVector());
465 465
466 EXPECT_TRUE(styleEngine().treeBoundaryCrossingScopes().isEmpty()); 466 EXPECT_TRUE(styleEngine().treeBoundaryCrossingScopes().isEmpty());
467 } 467 }
468 468
469 } // namespace blink 469 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698