diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-06-21 13:01:44 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-06-21 19:55:02 +0200 |
commit | 6fefe522a393d579805426a7fe71bcf3da87f071 (patch) | |
tree | 084f719383b7227bae1fb41347fa63035c7fb4fa /components/script/dom/webglrenderingcontext.rs | |
parent | 1b2fd3fe8536e4f73b0c31d89fa0d3bdd01f74df (diff) | |
download | servo-6fefe522a393d579805426a7fe71bcf3da87f071.tar.gz servo-6fefe522a393d579805426a7fe71bcf3da87f071.zip |
style: Assert we never style a root element from another document.
Right now when calling getComputedStyle with an element from another document,
we return the style using the pres context of that document, not of the document
of the window getComputedStyle was called on, so this holds.
But it will stop holding if we ever change this, so assert it doesn't happen.
Bug: 1374062
Reviewed-By: Manishearth
MozReview-Commit-ID: 3g8yQWWdsen
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
0 files changed, 0 insertions, 0 deletions