mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
parent
8f2a3a64f1
commit
987c9e63aa
6 changed files with 48 additions and 2 deletions
|
@ -60,6 +60,9 @@ impl HTMLMetaElement {
|
|||
}
|
||||
|
||||
fn apply_viewport(&self) {
|
||||
if !::util::prefs::get_pref("layout.viewport.enabled").as_boolean().unwrap_or(false) {
|
||||
return;
|
||||
}
|
||||
let element = self.upcast::<Element>();
|
||||
if let Some(content) = element.get_attribute(&ns!(""), &atom!("content")).r() {
|
||||
let content = content.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue