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/css/resolver/FontBuilder.h" | 5 #include "core/css/resolver/FontBuilder.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/css/CSSFontSelector.h" | 8 #include "core/css/CSSFontSelector.h" |
8 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
9 #include "core/dom/StyleEngine.h" | 10 #include "core/dom/StyleEngine.h" |
10 #include "core/frame/Settings.h" | 11 #include "core/frame/Settings.h" |
11 #include "core/style/ComputedStyle.h" | 12 #include "core/style/ComputedStyle.h" |
12 #include "core/testing/DummyPageHolder.h" | 13 #include "core/testing/DummyPageHolder.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include <memory> | |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class FontBuilderTest { | 18 class FontBuilderTest { |
19 public: | 19 public: |
20 FontBuilderTest() : dummy_(DummyPageHolder::Create(IntSize(800, 600))) { | 20 FontBuilderTest() : dummy_(DummyPageHolder::Create(IntSize(800, 600))) { |
21 GetSettings().SetDefaultFontSize(16.0f); | 21 GetSettings().SetDefaultFontSize(16.0f); |
22 } | 22 } |
23 | 23 |
24 Document& GetDocument() { return dummy_->GetDocument(); } | 24 Document& GetDocument() { return dummy_->GetDocument(); } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 FunctionPair(FontVariantCapsBase, FontVariantCapsValue), | 202 FunctionPair(FontVariantCapsBase, FontVariantCapsValue), |
203 FunctionPair(FontVariantLigaturesBase, FontVariantLigaturesValue), | 203 FunctionPair(FontVariantLigaturesBase, FontVariantLigaturesValue), |
204 FunctionPair(FontVariantNumericBase, FontVariantNumericValue), | 204 FunctionPair(FontVariantNumericBase, FontVariantNumericValue), |
205 FunctionPair(FontTextRenderingBase, FontTextRenderingValue), | 205 FunctionPair(FontTextRenderingBase, FontTextRenderingValue), |
206 FunctionPair(FontKerningBase, FontKerningValue), | 206 FunctionPair(FontKerningBase, FontKerningValue), |
207 FunctionPair(FontFontSmoothingBase, FontFontSmoothingValue), | 207 FunctionPair(FontFontSmoothingBase, FontFontSmoothingValue), |
208 FunctionPair(FontSizeBase, FontSizeValue), | 208 FunctionPair(FontSizeBase, FontSizeValue), |
209 FunctionPair(FontScriptBase, FontScriptValue))); | 209 FunctionPair(FontScriptBase, FontScriptValue))); |
210 | 210 |
211 } // namespace blink | 211 } // namespace blink |
OLD | NEW |