| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/rendering/TextPainter.h" | 6 #include "core/paint/TextPainter.h" |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CSSValueKeywords.h" | 9 #include "core/CSSValueKeywords.h" |
| 10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
| 11 #include "core/frame/Settings.h" | 11 #include "core/frame/Settings.h" |
| 12 #include "core/rendering/RenderText.h" | 12 #include "core/rendering/RenderText.h" |
| 13 #include "core/rendering/RenderingTestHelper.h" | 13 #include "core/rendering/RenderingTestHelper.h" |
| 14 #include "core/rendering/style/ShadowData.h" | 14 #include "core/rendering/style/ShadowData.h" |
| 15 #include "core/rendering/style/ShadowList.h" | 15 #include "core/rendering/style/ShadowList.h" |
| 16 #include <gtest/gtest.h> | 16 #include <gtest/gtest.h> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 TextPainter::Style textStyle = TextPainter::textPaintingStyle( | 121 TextPainter::Style textStyle = TextPainter::textPaintingStyle( |
| 122 *renderText(), renderText()->style(), false /* forceBlackText */, true /
* isPrinting */); | 122 *renderText(), renderText()->style(), false /* forceBlackText */, true /
* isPrinting */); |
| 123 EXPECT_EQ(Color(255, 220, 220).dark(), textStyle.fillColor); | 123 EXPECT_EQ(Color(255, 220, 220).dark(), textStyle.fillColor); |
| 124 EXPECT_EQ(Color(220, 255, 220).dark(), textStyle.strokeColor); | 124 EXPECT_EQ(Color(220, 255, 220).dark(), textStyle.strokeColor); |
| 125 EXPECT_EQ(Color(220, 220, 255).dark(), textStyle.emphasisMarkColor); | 125 EXPECT_EQ(Color(220, 220, 255).dark(), textStyle.emphasisMarkColor); |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace | 128 } // namespace |
| 129 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |