Reflow with full style damage when content changes

Fixes #664.
This commit is contained in:
Keegan McAllister 2013-12-09 12:34:33 -08:00
parent b61160490a
commit 962984fb3b
4 changed files with 25 additions and 15 deletions

View file

@ -23,6 +23,7 @@ use layout_interface::{ContentBoxQuery, ContentBoxResponse};
use layout_interface::{DocumentDamageLevel, HitTestQuery, HitTestResponse, LayoutQuery};
use layout_interface::{LayoutChan, MatchSelectorsDocumentDamage, QueryMsg, ReapLayoutDataMsg};
use layout_interface::{Reflow, ReflowDocumentDamage, ReflowForDisplay, ReflowGoal, ReflowMsg};
use layout_interface::ContentChangedDocumentDamage;
use layout_interface;
use dom::node::ScriptView;
@ -329,7 +330,7 @@ impl Page {
/// FIXME: This should basically never be used.
pub fn reflow_all(&mut self, goal: ReflowGoal, script_chan: ScriptChan, compositor: @ScriptListener) {
if self.frame.is_some() {
self.damage(MatchSelectorsDocumentDamage);
self.damage(ContentChangedDocumentDamage);
}
//FIXME: In the case where an initial reflow is required, we should always