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

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareDataTest.cpp

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Remove any cases that are forcing the newStyle on the old LayoutObject Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ElementRareDataTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementRareDataTest.cpp b/third_party/WebKit/Source/core/dom/ElementRareDataTest.cpp
deleted file mode 100644
index 8bc5bfa6b6a3637bdb56b325388babf75cd94aff..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/dom/ElementRareDataTest.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/dom/ElementRareData.h"
-
-#include "core/layout/LayoutInline.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace blink {
-
-TEST(ElementRareDataTest, ComputedStyleStorage)
-{
- // Without LayoutObject
- ElementRareData* rareData = ElementRareData::create(nullptr);
- RefPtr<ComputedStyle> style = ComputedStyle::create();
- rareData->setComputedStyle(style);
- EXPECT_EQ(style.get(), rareData->computedStyle());
-
- // With LayoutObject
- LayoutObject* layoutObject = new LayoutInline(nullptr);
- rareData = ElementRareData::create(layoutObject);
- rareData->setComputedStyle(style);
- EXPECT_EQ(style.get(), rareData->computedStyle());
-
- rareData->setLayoutObject(nullptr);
- delete layoutObject;
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698