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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngineTest.cpp

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: fix compile Created 3 years, 12 months 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
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/dom/StyleEngine.h" 5 #include "core/dom/StyleEngine.h"
6 6
7 #include "core/css/StyleSheetContents.h" 7 #include "core/css/StyleSheetContents.h"
8 #include "core/css/parser/CSSParserContext.h"
8 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
9 #include "core/dom/NodeComputedStyle.h" 10 #include "core/dom/NodeComputedStyle.h"
10 #include "core/dom/shadow/ShadowRootInit.h" 11 #include "core/dom/shadow/ShadowRootInit.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/html/HTMLStyleElement.h" 14 #include "core/html/HTMLStyleElement.h"
14 #include "core/testing/DummyPageHolder.h" 15 #include "core/testing/DummyPageHolder.h"
15 #include "platform/heap/Heap.h" 16 #include "platform/heap/Heap.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 #include <memory> 18 #include <memory>
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 367
367 unsigned afterCount = styleEngine().styleForElementCount(); 368 unsigned afterCount = styleEngine().styleForElementCount();
368 EXPECT_EQ(0u, afterCount - beforeCount); 369 EXPECT_EQ(0u, afterCount - beforeCount);
369 370
370 ASSERT_TRUE(t1->computedStyle()); 371 ASSERT_TRUE(t1->computedStyle());
371 EXPECT_EQ(makeRGB(0, 128, 0), 372 EXPECT_EQ(makeRGB(0, 128, 0),
372 t1->computedStyle()->visitedDependentColor(CSSPropertyColor)); 373 t1->computedStyle()->visitedDependentColor(CSSPropertyColor));
373 } 374 }
374 375
375 } // namespace blink 376 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698