aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* auto merge of #5206 : Ms2ger/servo/pre-rustup-codegen-cleanup, r=jdm,SimonSapinbors-servo2015-03-132-17/+15
|\
| * Don't define empty FooMethods traits.Ms2ger2015-03-132-11/+9
| |
| * Remove unused lifetime parameters to dictionaries.Ms2ger2015-03-131-6/+6
| | | | | | | | They were used for Root members, but those no longer use lifetimes.
* | auto merge of #4417 : pcwalton/servo/border-spacing, r=larsbergstrombors-servo2015-03-123-0/+23
|\ \ | |/ |/| | | | | | | | | | | Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. r? @SimonSapin
| * layout: Implement `border-spacing` per CSS 2.1 § 17.6.1 and the legacyPatrick Walton2015-03-123-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `cellspacing` attribute per HTML5 § 14.3.9. Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. This commit also fixes two nasty issues in table layout: * In fixed layout, extra space would not be divided among columns that had auto width but had nonzero minimum width. * In automatic layout, extra space would be distributed to constrained columns as well even if unconstrained columns with percentage equal to zero were present.
* | Fix #2108 by renaming unwrap functions to native_from_reflectorChris Double2015-03-125-13/+13
| | | | | | | | | | | | | | | | | | | | As noted by @bholley. "unwrap" is confusing because we are both stripping off wrappers *and* getting a native from a reflector. Changing the "unwrap" usage to "native_from_reflector" for clarity. This renames 'unwrap' to 'native_from_reflector' and 'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
* | Remove redundant force_relayout calls.Md. Enzam Hossain2015-03-111-8/+0
| |
* | Perform reflow if load events dirty any nodes.Glenn Watson2015-03-112-2/+8
|/ | | | This fixes some test failures that begin occurring when other events (such as resize) are fixed to only occur when needed.
* auto merge of #5185 : mmatyas/servo/canvas_arc, r=pcwaltonbors-servo2015-03-102-1/+6
|\ | | | | | | | | This patch enables the use of `arc()` on the canvas. I couldn't add reftest this time, as it involves some antialiasing issues, and so the reference doesn't match.
| * Canvas: added arc().Mátyás Mustoha2015-03-092-1/+6
| |
* | auto merge of #5182 : zslayton/servo/master, r=jdmbors-servo2015-03-1025-262/+178
|\ \ | | | | | | | | | | | | | | | Opening this PR to invite feedback. Of the many `match` statement candidates for conversion to `if let`, several included `if` guards. Since `if let` doesn't support this syntax, I used nested if statements. If this is undesirable, say the word and I can revert those cases to `match`.
| * | Use new `if let` syntax wherever possible. Fixes #4153.Zack Slayton2015-03-1025-262/+178
| |/
* | auto merge of #5160 : pcwalton/servo/counters-redux, r=SimonSapinbors-servo2015-03-091-0/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases. Reconstructed from #5138 via raw diffing. r? @SimonSapin
| * | layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1Patrick Walton2015-03-091-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | § 12.3-12.5. Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases.
* / Subsume ScriptMsg::WorkerDispatchErrorEvent into ScriptMsg::RunnableMsg via ↵Avi Weinstock2015-03-092-7/+30
|/ | | | introduction of Worker::WorkerErrorHandler (Closes #5171).
* auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdmbors-servo2015-03-062-9/+55
|\
| * Implements reflow events debugging.Adenilson Cavalcanti2015-03-062-9/+55
| | | | | | | | | | Start servo with -Z relayout-event and you should have reflow events printed to the terminal.
* | auto merge of #5054 : psdh/servo/scriptimplementation, r=jdmbors-servo2015-03-063-9/+39
|\ \ | | | | | | | | | Fixes #4089
| * | implement missing steps from "prepare a script" algorithmPrabhjyot Singh Sodhi2015-03-063-9/+39
| | | | | | | | | | | | Fixes #4089
* | | ScriptTask::mouse_over_targets is not traced #4985Guro Bokum2015-03-061-1/+2
| | |
* | | auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2gerbors-servo2015-03-053-7/+7
|\ \ \ | |_|/ |/| | | | | Fixes #5112, #3960
| * | Added type parameter to PartialEq on JSRef (fixes #5112, #3960)Keith Yeung2015-03-033-7/+7
| |/
* | Due to changes on Page/Window interfaces, we no longer have useAdenilson Cavalcanti2015-03-042-10/+5
| | | | | | | | for flush_layout().
* | Separate disposing of layout data from the GCing of the DOM object ↵Josh Matthews2015-03-032-0/+12
| | | | | | | | reflectors. Change the order of operations when shutting down the script task to ensure that Window globals aren't used after they've been GCed.
* | Documentation and cleanup.Josh Matthews2015-03-035-12/+8
| |
* | Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-0320-164/+547
| | | | | | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* | auto merge of #5124 : Adenilson/servo/cleanupWarning01, r=Ms2gerbors-servo2015-03-031-1/+1
|\ \
| * | Cleanup compilation warning.Adenilson Cavalcanti2015-03-021-1/+1
| |/
* | Revert "layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1"Simon Sapin2015-03-031-5/+0
| | | | | | | | This reverts commit 30fd28d1077fbb3f47140f6ab1252c0d24f44d23.
* | auto merge of #5133 : servo/servo/background-size, r=SimonSapinbors-servo2015-03-031-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `background-size` per CSS-BACKGROUNDS § 3.9. Nearest neighbor interpolation is used for `crisp-edges`, like Firefox. A note has been added that we could do better if we wanted to. Multiple backgrounds are not yet supported. Rebase of #4368. Fixes #4368.
| * | layout: Implement `image-rendering` per CSS-IMAGES-3 § 5.3 andPatrick Walton2015-03-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | `background-size` per CSS-BACKGROUNDS § 3.9. Nearest neighbor interpolation is used for `crisp-edges`, like Firefox. A note has been added that we could do better if we wanted to. Multiple backgrounds are not yet supported.
* | | auto merge of #5067 : servo/servo/counters, r=SimonSapinbors-servo2015-03-031-0/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases. Moved from #4544, because Critic. Fixes #4544.
| * | layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1Patrick Walton2015-03-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | § 12.3-12.5. Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases.
* | | layout: Implement `overflow-x` and `overflow-y` per CSS-OVERFLOW § 3.Patrick Walton2015-03-031-0/+2
|/ / | | | | | | Fragmentation is not yet supported.
* / Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778).Avi Weinstock2015-03-031-1/+3
|/
* auto merge of #5086 : glennw/servo/reap-more-stuff, r=jdmbors-servo2015-03-021-32/+15
|\ | | | | | | | | | | Also introduce a clear() function to layout data which will be used to clear items such as compositor layouts. Clear the layout data when a node becomes display:none.
| * Reap layout data whenever a node is removed from the tree.Glenn Watson2015-03-031-32/+15
| | | | | | | | | | | | Also introduce a clear() function to layout data which will be used to clear items such as compositor layouts. Clear the layout data when a node becomes display:none.
* | auto merge of #4475 : pcwalton/servo/text-shadow, r=mbrubeckbors-servo2015-03-021-0/+1
|\ \ | | | | | | | | | | | | | | | r? @mbrubeck Depends on servo/rust-geom#64.
| * | layout: Implement `text-shadow` per CSS-TEXT-DECORATION-3 § 4.Patrick Walton2015-03-021-0/+1
| | |
* | | auto merge of #5089 : mmatyas/servo/canvas_lineto, r=jdmbors-servo2015-03-022-1/+5
|\ \ \ | | | | | | | | | | | | This patch enables the use of `lineTo()` on the canvas.
| * | | Canvas: added lineTo().Mátyás Mustoha2015-03-022-1/+5
| |/ /
* | | auto merge of #5110 : Ms2ger/servo/defaultvalue-strings, r=jdmbors-servo2015-03-022-13/+6
|\ \ \ | |/ / |/| |
| * | Fix string default values.Ms2ger2015-03-022-13/+6
| | |
* | | auto merge of #5111 : KiChjang/servo/step-1-anchor, r=Manishearthbors-servo2015-03-012-2/+21
|\ \ \ | |/ / |/| | | | | Fixes #4871
| * | Implementation of step 1 activation behavior of htmlanchorelement (fixes #4871)Keith Yeung2015-03-022-2/+21
| |/ | | | | | | Fixed issues
* | auto merge of #5103 : Ms2ger/servo/from_actual, r=jdmbors-servo2015-02-281-1/+1
|\ \
| * | Use the correct lifetime bounds for FooCast::from_actual.Ms2ger2015-02-281-1/+1
| | |
* | | auto merge of #5073 : JIoJIaJIu/servo/handle_mouse_event, r=jdmbors-servo2015-02-281-0/+73
|\ \ \
| * | | Move body of ScriptTask::handle_mouse_move_event into a method on #5073Guro Bokum2015-02-281-0/+73
| | | |
* | | | auto merge of #5099 : Ms2ger/servo/exceptions, r=saneyukibors-servo2015-02-286-64/+60
|\ \ \ \ | |_|/ / |/| | |