Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Side by Side Diff: Source/web/WebSettingsImpl.cpp

Issue 382543003: Add a force-layout-height-to-zero layout mode to WebViewImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: make it a setting Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698