mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Handle <meta name=viewport> elements when added to document
This commit is contained in:
parent
61f7a0a1ee
commit
d0ace58452
6 changed files with 107 additions and 5 deletions
|
@ -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,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue