Handle <meta name=viewport> elements when added to document

This commit is contained in:
James Gilbertson 2015-05-25 20:05:09 -06:00 committed by Jamie Gilbertson
parent 61f7a0a1ee
commit d0ace58452
6 changed files with 107 additions and 5 deletions

View file

@ -28,6 +28,7 @@ use string_cache::Atom;
use style::animation::PropertyAnimation;
use style::media_queries::MediaQueryList;
use style::stylesheets::Stylesheet;
use style::viewport::ViewportRule;
use url::Url;
pub use dom::node::TrustedNodeAddress;
@ -39,6 +40,9 @@ pub enum Msg {
/// Adds the given stylesheet to the document.
LoadStylesheet(Url, MediaQueryList, PendingAsyncLoad, Box<StylesheetLoadResponder + Send>),
/// Adds a @viewport rule (translated from a <META name="viewport"> element) to the document.
AddMetaViewport(ViewportRule),
/// Puts a document into quirks mode, causing the quirks mode stylesheet to be loaded.
SetQuirksMode,