Index: Source/core/layout/style/SVGLayoutStyleTest.cpp |
diff --git a/Source/core/layout/style/SVGLayoutStyleTest.cpp b/Source/core/layout/style/SVGLayoutStyleTest.cpp |
index c4709a47a683f6278c0a51506ab57a9f0e73979c..7f0c90f5ca47c40ee497a1356917d89afd9d6397 100644 |
--- a/Source/core/layout/style/SVGLayoutStyleTest.cpp |
+++ b/Source/core/layout/style/SVGLayoutStyleTest.cpp |
@@ -5,26 +5,12 @@ |
#include "config.h" |
#include "core/layout/style/SVGLayoutStyle.h" |
-#include "core/svg/SVGLength.h" |
- |
#include <gtest/gtest.h> |
using namespace blink; |
namespace { |
-// Ensures RefPtrWillBePersistent values are compared by their values, not by pointers. |
-#define TEST_STYLE_REFPTRWILLBEPERSISTENT_VALUE_NO_DIFF(type, fieldName) \ |
- { \ |
- RefPtr<SVGLayoutStyle> svg1 = SVGLayoutStyle::create(); \ |
- RefPtr<SVGLayoutStyle> svg2 = SVGLayoutStyle::create(); \ |
- RefPtrWillBePersistent<type> value1 = type::create(); \ |
- RefPtrWillBePersistent<type> value2 = value1->clone(); \ |
- svg1->set##fieldName(value1); \ |
- svg2->set##fieldName(value2); \ |
- EXPECT_FALSE(svg1->diff(svg2.get()).hasDifference()); \ |
- } |
- |
// Ensures RefPtr values are compared by their values, not by pointers. |
#define TEST_STYLE_REFPTR_VALUE_NO_DIFF(type, fieldName) \ |
{ \ |
@@ -53,7 +39,7 @@ TEST(SVGLayoutStyleTest, StrokeStyleShouldCompareValue) |
{ |
TEST_STYLE_VALUE_NO_DIFF(float, StrokeOpacity); |
TEST_STYLE_VALUE_NO_DIFF(float, StrokeMiterLimit); |
- TEST_STYLE_REFPTRWILLBEPERSISTENT_VALUE_NO_DIFF(SVGLength, StrokeWidth); |
+ TEST_STYLE_VALUE_NO_DIFF(UnzoomedLength, StrokeWidth); |
TEST_STYLE_VALUE_NO_DIFF(Length, StrokeDashOffset); |
TEST_STYLE_REFPTR_VALUE_NO_DIFF(SVGDashArray, StrokeDashArray); |