OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/style/ComputedStyle.h" | 5 #include "core/style/ComputedStyle.h" |
6 | 6 |
7 #include "core/style/ClipPathOperation.h" | 7 #include "core/style/ClipPathOperation.h" |
8 #include "core/style/ShapeValue.h" | 8 #include "core/style/ShapeValue.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #if OS(MACOSX) | 64 #if OS(MACOSX) |
65 ASSERT_EQ(4, style->outlineOutsetExtent()); | 65 ASSERT_EQ(4, style->outlineOutsetExtent()); |
66 #else | 66 #else |
67 ASSERT_EQ(3, style->outlineOutsetExtent()); | 67 ASSERT_EQ(3, style->outlineOutsetExtent()); |
68 #endif | 68 #endif |
69 } | 69 } |
70 | 70 |
71 TEST(ComputedStyleTest, Preserve3dForceStackingContext) { | 71 TEST(ComputedStyleTest, Preserve3dForceStackingContext) { |
72 RefPtr<ComputedStyle> style = ComputedStyle::create(); | 72 RefPtr<ComputedStyle> style = ComputedStyle::create(); |
73 style->setTransformStyle3D(TransformStyle3DPreserve3D); | 73 style->setTransformStyle3D(TransformStyle3DPreserve3D); |
74 style->setOverflowX(OverflowHidden); | 74 style->setOverflowX(EOverflow::Hidden); |
75 style->setOverflowY(OverflowHidden); | 75 style->setOverflowY(EOverflow::Hidden); |
76 style->updateIsStackingContext(false, false); | 76 style->updateIsStackingContext(false, false); |
77 EXPECT_EQ(TransformStyle3DFlat, style->usedTransformStyle3D()); | 77 EXPECT_EQ(TransformStyle3DFlat, style->usedTransformStyle3D()); |
78 EXPECT_TRUE(style->isStackingContext()); | 78 EXPECT_TRUE(style->isStackingContext()); |
79 } | 79 } |
80 | 80 |
81 } // namespace blink | 81 } // namespace blink |
OLD | NEW |