OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 , m_viewportMetaNonUserScalableQuirk(false) | 59 , m_viewportMetaNonUserScalableQuirk(false) |
60 , m_clobberUserAgentInitialScaleQuirk(false) | 60 , m_clobberUserAgentInitialScaleQuirk(false) |
61 , m_pinchOverlayScrollbarThickness(0) | 61 , m_pinchOverlayScrollbarThickness(0) |
62 , m_mainFrameResizesAreOrientationChanges(false) | 62 , m_mainFrameResizesAreOrientationChanges(false) |
63 { | 63 { |
64 ASSERT(settings); | 64 ASSERT(settings); |
65 } | 65 } |
66 | 66 |
67 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) | 67 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) |
68 { | 68 { |
69 m_settings->setStandardFontFamily(font, script); | 69 m_settings->genericFontFamilySettings().setStandard(font, script); |
70 } | 70 } |
71 | 71 |
72 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri
pt) | 72 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri
pt) |
73 { | 73 { |
74 m_settings->setFixedFontFamily(font, script); | 74 m_settings->genericFontFamilySettings().setFixed(font, script); |
75 } | 75 } |
76 | 76 |
77 void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode scri
pt) | 77 void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode scri
pt) |
78 { | 78 { |
79 m_settings->setSerifFontFamily(font, script); | 79 m_settings->genericFontFamilySettings().setSerif(font, script); |
80 } | 80 } |
81 | 81 |
82 void WebSettingsImpl::setSansSerifFontFamily(const WebString& font, UScriptCode
script) | 82 void WebSettingsImpl::setSansSerifFontFamily(const WebString& font, UScriptCode
script) |
83 { | 83 { |
84 m_settings->setSansSerifFontFamily(font, script); | 84 m_settings->genericFontFamilySettings().setSansSerif(font, script); |
85 } | 85 } |
86 | 86 |
87 void WebSettingsImpl::setCursiveFontFamily(const WebString& font, UScriptCode sc
ript) | 87 void WebSettingsImpl::setCursiveFontFamily(const WebString& font, UScriptCode sc
ript) |
88 { | 88 { |
89 m_settings->setCursiveFontFamily(font, script); | 89 m_settings->genericFontFamilySettings().setCursive(font, script); |
90 } | 90 } |
91 | 91 |
92 void WebSettingsImpl::setFantasyFontFamily(const WebString& font, UScriptCode sc
ript) | 92 void WebSettingsImpl::setFantasyFontFamily(const WebString& font, UScriptCode sc
ript) |
93 { | 93 { |
94 m_settings->setFantasyFontFamily(font, script); | 94 m_settings->genericFontFamilySettings().setFantasy(font, script); |
95 } | 95 } |
96 | 96 |
97 void WebSettingsImpl::setPictographFontFamily(const WebString& font, UScriptCode
script) | 97 void WebSettingsImpl::setPictographFontFamily(const WebString& font, UScriptCode
script) |
98 { | 98 { |
99 m_settings->setPictographFontFamily(font, script); | 99 m_settings->genericFontFamilySettings().setPictograph(font, script); |
100 } | 100 } |
101 | 101 |
102 void WebSettingsImpl::setDefaultFontSize(int size) | 102 void WebSettingsImpl::setDefaultFontSize(int size) |
103 { | 103 { |
104 m_settings->setDefaultFontSize(size); | 104 m_settings->setDefaultFontSize(size); |
105 #if OS(WIN) | 105 #if OS(WIN) |
106 // RenderTheme is a singleton that needs to know the default font size to | 106 // RenderTheme is a singleton that needs to know the default font size to |
107 // draw some form controls. We let it know each time the size changes. | 107 // draw some form controls. We let it know each time the size changes. |
108 WebCore::RenderThemeChromiumWin::setDefaultFontSize(size); | 108 WebCore::RenderThemeChromiumWin::setDefaultFontSize(size); |
109 #endif | 109 #endif |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 { | 772 { |
773 m_settings->setUseSolidColorScrollbars(enabled); | 773 m_settings->setUseSolidColorScrollbars(enabled); |
774 } | 774 } |
775 | 775 |
776 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) | 776 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) |
777 { | 777 { |
778 m_mainFrameResizesAreOrientationChanges = enabled; | 778 m_mainFrameResizesAreOrientationChanges = enabled; |
779 } | 779 } |
780 | 780 |
781 } // namespace blink | 781 } // namespace blink |
OLD | NEW |