mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Implement getters and setters for img width and height properties
This commit is contained in:
parent
7fb96c1574
commit
42c6a53148
9 changed files with 174 additions and 25 deletions
|
@ -9,7 +9,7 @@ use dom::document::AbstractDocument;
|
|||
use dom::node::{AbstractNode, ScriptView};
|
||||
use dom::navigator::Navigator;
|
||||
|
||||
use layout_interface::ReflowForScriptQuery;
|
||||
use layout_interface::ReflowForDisplay;
|
||||
use script_task::{ExitMsg, FireTimerMsg, Page, ScriptChan};
|
||||
use servo_msg::compositor_msg::ScriptListener;
|
||||
|
||||
|
@ -168,7 +168,10 @@ impl Window {
|
|||
|
||||
pub fn content_changed(&self) {
|
||||
unsafe {
|
||||
(*self.page).reflow_all(ReflowForScriptQuery, self.script_chan.clone(), self.compositor);
|
||||
// FIXME This should probably be ReflowForQuery, not Display. All queries currently
|
||||
// currently rely on the display list, which means we can't destroy it by
|
||||
// doing a query reflow.
|
||||
(*self.page).reflow_all(ReflowForDisplay, self.script_chan.clone(), self.compositor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue