servo/components/script/dom
Jack Moffitt 2507bfb2cf Suppress reflows before RefreshTick or FirstLoad
This fixes a bug where partially loaded content is displayed to the user
before it should be, usually before stylesheets have loaded. This commit
supresses reflows until either FirstLoad or RefreshTick, whichever comes
first.

Unfortunately, hit_test and mouse_over did not do reflows if they were
necessary, and so by suppressing the initial spurious reflows, these
methods started to panic without a display list to query. This patch
also transforms these into queries similar to the other existing
queries.
2016-03-03 15:17:46 -07:00
..
bindings Auto merge of #9837 - nox:deterministic-raf, r=mbrubeck 2016-03-02 21:24:38 +05:30
webidls Auto merge of #9825 - creativcoder:remove-contructor-xmldoc, r=KiChjang 2016-03-03 17:41:03 +05:30
activation.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
attr.rs Implement SetNamedItem, SetNamedItemNS, SetAttributeNode and SetAttributeNodeNS 2016-01-28 12:35:44 +01:00
blob.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
browsingcontext.rs Make fill_property_descriptor take a flags argument 2016-02-23 17:14:27 +01:00
canvasgradient.rs Parse currentColor as Canvas2D color 2015-11-21 11:59:19 -08:00
canvaspattern.rs Add origin-clean flag tracking for canvas 2015-12-17 11:40:38 -08:00
canvasrenderingcontext2d.rs Update some canvas properties as enums instead of DOMString 2016-02-19 22:19:09 +05:30
characterdata.rs Properly propagate changes when range or trees are mutated 2015-12-25 23:35:57 +01:00
closeevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
comment.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
console.rs Implement console#time and console#timeEnd methods 2016-01-25 14:21:32 -05:00
create.rs Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
crypto.rs Say farewell to in-tree HeapSizeOf 2016-02-04 22:03:32 +01:00
css.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
cssstyledeclaration.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
customevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
dedicatedworkerglobalscope.rs task -> thread 2016-01-10 17:58:13 +09:00
document.rs Suppress reflows before RefreshTick or FirstLoad 2016-03-03 15:17:46 -07:00
documentfragment.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
documenttype.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domexception.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domimplementation.rs Make it possible for XMLDocuments to have a browsing context. 2016-02-20 18:03:14 +01:00
domparser.rs Store a pointer to the browsing context in the Document. 2016-02-11 13:08:11 +01:00
dompoint.rs Add DOMQuad element 2015-12-18 17:37:10 +01:00
dompointreadonly.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domquad.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
domrect.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domrectlist.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domrectreadonly.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domstringmap.rs Reduce 'match' body, remove unnecessary clone 2016-01-05 16:55:37 -08:00
domtokenlist.rs Implement value for DOMTokenList 2016-02-29 16:07:03 +01:00
element.rs Implement removeAttributeNode 2016-02-26 21:18:24 +01:00
errorevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
event.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
eventdispatcher.rs Refactor dispatch_event according to the spec (fixes #9178) 2016-02-29 10:42:09 +01:00
eventsource.rs Silence a warning in EventSourceReadyState. 2016-01-07 09:45:12 +01:00
eventtarget.rs Rename various bindings in event dispatching 2016-02-29 10:42:06 +01:00
file.rs Remove global field from Blob 2016-01-10 21:20:31 -05:00
filelist.rs merge from master 2015-11-03 19:01:23 +09:00
filereader.rs Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files 2016-02-17 21:25:12 +01:00
focusevent.rs Implement focus and blur events 2016-02-18 03:49:31 +01:00
formdata.rs Make use of From<String> for Atom 2016-02-24 17:52:13 +01:00
htmlanchorelement.rs Use Url.join instead of UrlParser.base_url(...).parse (#9002) 2015-12-18 17:02:41 +01:00
htmlappletelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlareaelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlaudioelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlbaseelement.rs Auto merge of #8506 - nox:finish-ranges, r=dzbarsky 2015-12-26 04:08:15 +05:30
htmlbodyelement.rs Compile raw inline event handlers lazily. Resolves #8489. 2016-02-11 15:44:52 +01:00
htmlbrelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlbuttonelement.rs Update rust-selectors 2016-02-03 02:11:31 +01:00
htmlcanvaselement.rs Add WebRender integration to Servo. 2016-02-18 10:35:29 +10:00
htmlcollection.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
htmldataelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldatalistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldetailselement.rs Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to TaskSource 2016-02-14 15:29:44 +01:00
htmldialogelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldirectoryelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldivelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldlistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlelement.rs use return value of invoking event handlers to cancel the event 2016-02-26 10:17:57 -05:00
htmlembedelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlfieldsetelement.rs Update rust-selectors 2016-02-03 02:11:31 +01:00
htmlfontelement.rs refactor, moving functions into attr and htmlfontelemend fixes #9639 #9638 2016-02-15 22:33:14 +00:00
htmlformcontrolscollection.rs Fix #9508: Beautify our union enums constructors 2016-02-07 02:55:21 +03:00
htmlformelement.rs Implement planned navigation 2016-02-18 06:37:32 -05:00
htmlframeelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlframesetelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlheadelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlheadingelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlhrelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlhtmlelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmliframeelement.rs Auto merge of #9740 - paulrouget:mozbrowserconnected, r=jdm 2016-02-25 15:56:24 +05:30
htmlimageelement.rs Use presentation hints correctly for the dimensions of <img>. 2016-02-25 14:04:06 -05:00
htmlinputelement.rs Get input value IDL attribute matching spec 2016-02-25 18:59:34 -05:00
htmllabelelement.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
htmllegendelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmllielement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmllinkelement.rs Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to TaskSource 2016-02-14 15:29:44 +01:00
htmlmapelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlmediaelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlmetaelement.rs Refactor style to be completely backend-independent 2016-02-13 16:05:14 +01:00
htmlmeterelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlmodelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlobjectelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlolistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmloptgroupelement.rs Update rust-selectors 2016-02-03 02:11:31 +01:00
htmloptionelement.rs Update rust-selectors 2016-02-03 02:11:31 +01:00
htmloutputelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlparagraphelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlparamelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlpreelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlprogresselement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlquoteelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlscriptelement.rs Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to TaskSource 2016-02-14 15:29:44 +01:00
htmlselectelement.rs Update rust-selectors 2016-02-03 02:11:31 +01:00
htmlsourceelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlspanelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlstyleelement.rs Refactor style to be completely backend-independent 2016-02-13 16:05:14 +01:00
htmltablecaptionelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablecellelement.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
htmltablecolelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltabledatacellelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltableelement.rs Move parse_integer and parse_unsigned_integer from util::str to style::attr 2016-02-17 07:05:39 +01:00
htmltableheadercellelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablerowelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablesectionelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltemplateelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltextareaelement.rs Update rust-selectors 2016-02-03 02:11:31 +01:00
htmltimeelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltitleelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltrackelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlulistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlunknownelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlvideoelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
imagedata.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
keyboardevent.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
location.rs add origin to location and url api 2016-01-21 11:06:41 -08:00
macros.rs use return value of invoking event handlers to cancel the event 2016-02-26 10:17:57 -05:00
messageevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
mod.rs Fix some errors in the DOM documentation. 2016-02-27 11:22:26 -05:00
mouseevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
namednodemap.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
navigator.rs more refactoring 2015-10-30 20:26:29 +09:00
navigatorinfo.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
node.rs Refactor mouseover code to be more performant 2016-03-02 20:14:15 +01:00
nodeiterator.rs Get rid of a bunch of explicit derefs 2015-11-03 19:51:46 -08:00
nodelist.rs Implement NamedItem and NamedGetter on HTMLFormControlsCollection 2016-01-28 18:33:51 -05:00
performance.rs merge from master 2015-11-03 19:01:23 +09:00
performancetiming.rs Add DOM-related performance timing properties 2015-11-13 17:51:34 -05:00
processinginstruction.rs Explicitly customise flags of new nodes where needed 2015-10-15 17:30:41 +02:00
progressevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
radionodelist.rs Implement NamedItem and NamedGetter on HTMLFormControlsCollection 2016-01-28 18:33:51 -05:00
range.rs Auto merge of #9799 - nox:range-extractcontents, r=KiChjang 2016-02-29 05:11:28 +05:30
screen.rs more refactoring 2015-10-30 20:26:29 +09:00
servohtmlparser.rs Update html5ever to 0.5.0 2016-02-08 16:58:18 -05:00
servoxmlparser.rs task -> thread 2016-01-10 17:58:13 +09:00
storage.rs Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files 2016-02-17 21:25:12 +01:00
storageevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
testbinding.rs Fixing issue with uniontypes not created with primitive types 2016-02-18 11:08:47 +01:00
testbindingproxy.rs Use DOMString::new() somewhat consistently. 2015-11-04 12:09:10 +01:00
text.rs Properly propagate changes when range or trees are mutated 2015-12-25 23:35:57 +01:00
textdecoder.rs conversion: Extrapolate array_buffer_view_data 2016-01-04 15:19:29 +01:00
textencoder.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
touch.rs more refactoring 2015-10-30 20:26:29 +09:00
touchevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
touchlist.rs merge from master 2015-11-03 19:01:23 +09:00
treewalker.rs Get rid of a bunch of explicit derefs 2015-11-03 19:51:46 -08:00
uievent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
url.rs add origin to location and url api 2016-01-21 11:06:41 -08:00
urlhelper.rs add origin to location and url api 2016-01-21 11:06:41 -08:00
urlsearchparams.rs Fix #9508: Beautify our union enums constructors 2016-02-07 02:55:21 +03:00
userscripts.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
validitystate.rs more refactoring 2015-10-30 20:26:29 +09:00
values.rs Consolidate magic number representing max unsigned long 2015-10-10 13:46:11 -04:00
virtualmethods.rs Move comment about removing steps 2016-02-13 14:22:10 -05:00
webglactiveinfo.rs Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
webglbuffer.rs Issue #8738: bufferSubData and texImage2D argument sanity checks. 2015-12-26 18:56:48 +01:00
webglcontextevent.rs Implement From<DOMString> for Atom 2016-02-24 17:52:17 +01:00
webglframebuffer.rs merge from master 2015-11-03 19:01:23 +09:00
webglobject.rs more refactoring 2015-10-30 20:26:29 +09:00
webglprogram.rs webgl: Check shader compilation status on use_program. 2016-01-13 15:28:36 +01:00
webglrenderbuffer.rs merge from master 2015-11-03 19:01:23 +09:00
webglrenderingcontext.rs Add WebRender integration to Servo. 2016-02-18 10:35:29 +10:00
webglshader.rs webgl: Check shader compilation status on use_program. 2016-01-13 15:28:36 +01:00
webglshaderprecisionformat.rs more refactoring 2015-10-30 20:26:29 +09:00
webgltexture.rs webgl: Fix texturing 2015-12-03 02:53:37 +01:00
webgluniformlocation.rs webgl: Track uniformlocation's program 2016-01-13 13:41:30 +01:00
websocket.rs Trigger WebSocket error event 2016-02-26 09:43:12 +01:00
window.rs Suppress reflows before RefreshTick or FirstLoad 2016-03-03 15:17:46 -07:00
worker.rs Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files 2016-02-17 21:25:12 +01:00
workerglobalscope.rs Clean up of script timer code. 2016-02-20 22:43:16 +01:00
workerlocation.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
workernavigator.rs more refactoring 2015-10-30 20:26:29 +09:00
xmldocument.rs Suppress reflows before RefreshTick or FirstLoad 2016-03-03 15:17:46 -07:00
xmlhttprequest.rs swap w3c spec link for whatwg, removed user-agent from disallowed headers 2016-02-26 11:04:34 -05:00
xmlhttprequesteventtarget.rs Introduce trait Castable 2015-10-21 11:37:16 +02:00
xmlhttprequestupload.rs more refactoring 2015-10-30 20:26:29 +09:00