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 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void setSize(FontDescription&, const FontDescription::Size&); | 93 void setSize(FontDescription&, const FontDescription::Size&); |
94 void updateOrientation(FontDescription&, const ComputedStyle&); | 94 void updateOrientation(FontDescription&, const ComputedStyle&); |
95 // This function fixes up the default font size if it detects that the curre
nt generic font family has changed. -dwh | 95 // This function fixes up the default font size if it detects that the curre
nt generic font family has changed. -dwh |
96 void checkForGenericFamilyChange(const FontDescription&, FontDescription&); | 96 void checkForGenericFamilyChange(const FontDescription&, FontDescription&); |
97 void updateSpecifiedSize(FontDescription&, const ComputedStyle&); | 97 void updateSpecifiedSize(FontDescription&, const ComputedStyle&); |
98 void updateComputedSize(FontDescription&, const ComputedStyle&); | 98 void updateComputedSize(FontDescription&, const ComputedStyle&); |
99 void updateAdjustedSize(FontDescription&, const ComputedStyle&, FontSelector
*); | 99 void updateAdjustedSize(FontDescription&, const ComputedStyle&, FontSelector
*); |
100 | 100 |
101 float getComputedSizeFromSpecifiedSize(FontDescription&, float effectiveZoom
, float specifiedSize); | 101 float getComputedSizeFromSpecifiedSize(FontDescription&, float effectiveZoom
, float specifiedSize); |
102 | 102 |
103 const Document& m_document; | 103 RawPtrWillBeMember<const Document> m_document; |
104 FontDescription m_fontDescription; | 104 FontDescription m_fontDescription; |
105 | 105 |
106 enum class PropertySetFlag { | 106 enum class PropertySetFlag { |
107 Weight, | 107 Weight, |
108 Size, | 108 Size, |
109 Stretch, | 109 Stretch, |
110 Family, | 110 Family, |
111 FeatureSettings, | 111 FeatureSettings, |
112 Script, | 112 Script, |
113 Style, | 113 Style, |
(...skipping 11 matching lines...) Expand all Loading... |
125 | 125 |
126 void set(PropertySetFlag flag) { m_flags |= (1 << unsigned(flag)); } | 126 void set(PropertySetFlag flag) { m_flags |= (1 << unsigned(flag)); } |
127 bool isSet(PropertySetFlag flag) const { return m_flags & (1 << unsigned(fla
g)); } | 127 bool isSet(PropertySetFlag flag) const { return m_flags & (1 << unsigned(fla
g)); } |
128 | 128 |
129 unsigned m_flags; | 129 unsigned m_flags; |
130 }; | 130 }; |
131 | 131 |
132 } | 132 } |
133 | 133 |
134 #endif | 134 #endif |
OLD | NEW |