| 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() : m_dummy(DummyPageHolder::create(IntSize(800, 600))) { | 20 FontBuilderTest() : m_dummy(DummyPageHolder::create(IntSize(800, 600))) { |
| 21 settings().setDefaultFontSize(16.0f); | 21 settings().setDefaultFontSize(16.0f); |
| 22 } | 22 } |
| 23 | 23 |
| 24 Document& document() { return m_dummy->document(); } | 24 Document& document() { return m_dummy->document(); } |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 FunctionPair(fontVariantCapsBase, fontVariantCapsValue), | 200 FunctionPair(fontVariantCapsBase, fontVariantCapsValue), |
| 201 FunctionPair(fontVariantLigaturesBase, fontVariantLigaturesValue), | 201 FunctionPair(fontVariantLigaturesBase, fontVariantLigaturesValue), |
| 202 FunctionPair(fontVariantNumericBase, fontVariantNumericValue), | 202 FunctionPair(fontVariantNumericBase, fontVariantNumericValue), |
| 203 FunctionPair(fontTextRenderingBase, fontTextRenderingValue), | 203 FunctionPair(fontTextRenderingBase, fontTextRenderingValue), |
| 204 FunctionPair(fontKerningBase, fontKerningValue), | 204 FunctionPair(fontKerningBase, fontKerningValue), |
| 205 FunctionPair(fontFontSmoothingBase, fontFontSmoothingValue), | 205 FunctionPair(fontFontSmoothingBase, fontFontSmoothingValue), |
| 206 FunctionPair(fontSizeBase, fontSizeValue), | 206 FunctionPair(fontSizeBase, fontSizeValue), |
| 207 FunctionPair(fontScriptBase, fontScriptValue))); | 207 FunctionPair(fontScriptBase, fontScriptValue))); |
| 208 | 208 |
| 209 } // namespace blink | 209 } // namespace blink |
| OLD | NEW |