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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 m_settings->genericFontFamilySettings().setStandard(font, script); | 68 m_settings->genericFontFamilySettings().setStandard(font, script); |
69 m_settings->notifyGenericFontFamilyChange(); | 69 m_settings->notifyGenericFontFamilyChange(); |
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->genericFontFamilySettings().setFixed(font, script); | 74 m_settings->genericFontFamilySettings().setFixed(font, script); |
75 m_settings->notifyGenericFontFamilyChange(); | 75 m_settings->notifyGenericFontFamilyChange(); |
76 } | 76 } |
77 | 77 |
| 78 void WebSettingsImpl::setForceZeroLayoutHeight(bool enabled) |
| 79 { |
| 80 m_settings->setForceZeroLayoutHeight(enabled); |
| 81 } |
| 82 |
78 void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode scri
pt) | 83 void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode scri
pt) |
79 { | 84 { |
80 m_settings->genericFontFamilySettings().setSerif(font, script); | 85 m_settings->genericFontFamilySettings().setSerif(font, script); |
81 m_settings->notifyGenericFontFamilyChange(); | 86 m_settings->notifyGenericFontFamilyChange(); |
82 } | 87 } |
83 | 88 |
84 void WebSettingsImpl::setSansSerifFontFamily(const WebString& font, UScriptCode
script) | 89 void WebSettingsImpl::setSansSerifFontFamily(const WebString& font, UScriptCode
script) |
85 { | 90 { |
86 m_settings->genericFontFamilySettings().setSansSerif(font, script); | 91 m_settings->genericFontFamilySettings().setSansSerif(font, script); |
87 m_settings->notifyGenericFontFamilyChange(); | 92 m_settings->notifyGenericFontFamilyChange(); |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 { | 710 { |
706 m_settings->setUseSolidColorScrollbars(enabled); | 711 m_settings->setUseSolidColorScrollbars(enabled); |
707 } | 712 } |
708 | 713 |
709 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) | 714 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) |
710 { | 715 { |
711 m_mainFrameResizesAreOrientationChanges = enabled; | 716 m_mainFrameResizesAreOrientationChanges = enabled; |
712 } | 717 } |
713 | 718 |
714 } // namespace blink | 719 } // namespace blink |
OLD | NEW |