OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * Copyright (C) 2015 Collabora Ltd. All rights reserved. | 5 * Copyright (C) 2015 Collabora Ltd. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
28 #include "core/frame/LocalFrame.h" | 28 #include "core/frame/LocalFrame.h" |
29 #include "core/frame/Settings.h" | 29 #include "core/frame/Settings.h" |
30 #include "core/layout/TextAutosizer.h" | 30 #include "core/layout/TextAutosizer.h" |
31 #include "core/style/ComputedStyle.h" | 31 #include "core/style/ComputedStyle.h" |
32 #include "platform/FontFamilyNames.h" | 32 #include "platform/FontFamilyNames.h" |
33 #include "platform/fonts/FontDescription.h" | 33 #include "platform/fonts/FontDescription.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
| 37 FontBuilder::FontBuilder() |
| 38 { |
| 39 } |
| 40 |
37 FontBuilder::FontBuilder(const Document& document) | 41 FontBuilder::FontBuilder(const Document& document) |
38 : m_document(&document) | 42 : m_document(&document) |
39 , m_flags(0) | 43 , m_flags(0) |
40 { | 44 { |
41 ASSERT(document.frame()); | 45 ASSERT(document.frame()); |
42 } | 46 } |
43 | 47 |
44 void FontBuilder::setInitial(float effectiveZoom) | 48 void FontBuilder::setInitial(float effectiveZoom) |
45 { | 49 { |
46 ASSERT(m_document->settings()); | 50 ASSERT(m_document->settings()); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 setSize(fontDescription, FontDescription::Size(FontSize::initialKeywordSize(
), 0.0f, false)); | 409 setSize(fontDescription, FontDescription::Size(FontSize::initialKeywordSize(
), 0.0f, false)); |
406 updateSpecifiedSize(fontDescription, documentStyle); | 410 updateSpecifiedSize(fontDescription, documentStyle); |
407 updateComputedSize(fontDescription, documentStyle); | 411 updateComputedSize(fontDescription, documentStyle); |
408 | 412 |
409 updateOrientation(fontDescription, documentStyle); | 413 updateOrientation(fontDescription, documentStyle); |
410 documentStyle.setFontDescription(fontDescription); | 414 documentStyle.setFontDescription(fontDescription); |
411 documentStyle.font().update(fontSelector); | 415 documentStyle.font().update(fontSelector); |
412 } | 416 } |
413 | 417 |
414 } // namespace blink | 418 } // namespace blink |
OLD | NEW |