Michael Howell
3c2210c5fc
Propogate transformed clipping regions to nested flows.
...
Fixes #10559
2016-04-13 11:50:50 -07:00
Michael Howell
6c9efbf383
Take transform:translate into account when computing clipping regions.
...
Note that this only works for translation; a more general fix would
require major changes to how display lists work.
Closes #10431 ?
2016-04-12 14:39:13 -07:00
bors-servo
3b7e426d33
Auto merge of #10485 - ConnorGBrewster:navigator_plugins, r=Ms2ger
...
Implement stub for NavigatorPlugins
This PR implements stub for NavigatorPlugins as outlined in #9991 .
r? @jdm
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10485 )
<!-- Reviewable:end -->
2016-04-11 21:17:16 +05:30
Connor Brewster
e83d29a7eb
Implemented stub for NavigatorPlugins
2016-04-11 09:14:46 -06:00
bors-servo
f9f3b7529b
Auto merge of #10513 - frewsxcv:is_the_html_body_element, r=Ms2ger
...
Extract out 'is the html body element' CSSOM concept.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10513 )
<!-- Reviewable:end -->
2016-04-11 20:36:31 +05:30
Corey Farwell
2c9b00ef6b
Extract out 'is the html body element' CSSOM concept.
2016-04-11 10:51:00 -04:00
bors-servo
6939ff53c4
Auto merge of #10519 - frewsxcv:links, r=KiChjang
...
Update 'Extensions to the HTMLElement Interface' CSSOM spec links.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10519 )
<!-- Reviewable:end -->
2016-04-11 19:57:08 +05:30
Corey Farwell
714236e7b2
Update 'Extensions to the HTMLElement Interface' CSSOM spec links.
2016-04-11 09:05:02 -04:00
bors-servo
07304235cc
Auto merge of #10502 - KiChjang:fix-open-url-base, r=Ms2ger
...
Add API base url method to global objects
This adds an `api_base_url` function to global objects, which fixes `open-url-base.htm` under XMLHttpRequest.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10502 )
<!-- Reviewable:end -->
2016-04-11 17:57:02 +05:30
Keith Yeung
c75079eff3
Add API base url method to global objects
2016-04-11 07:49:31 -04:00
Ms2ger
3f95e4c8e1
Use upcast() in XMLDocument methods.
2016-04-11 10:30:08 +02:00
Ms2ger
0633ca4144
Remove unused import from xmldocument.
2016-04-11 10:29:51 +02:00
Ms2ger
71f56d6744
Simplify PrecedingNodeIterator::next().
2016-04-11 10:29:32 +02:00
Ms2ger
0d732ebb5f
Implement Clone for Root.
2016-04-11 10:29:13 +02:00
Corey Farwell
11a3ce1257
Remove get_*
on getters as per RFC 0344.
...
https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis
https://github.com/servo/servo/issues/6224
2016-04-10 22:49:35 -04:00
Corey Farwell
3b376bb319
Remove superfluous end-of-file whitespace.
2016-04-10 22:03:27 -04:00
Corey Farwell
e397b30278
Remove dead link.
2016-04-10 22:03:03 -04:00
Nazım Can Altınova
d49a84c762
Replaced SendParam with BodyInit
2016-04-10 01:02:04 +03:00
bors-servo
5a3d6850c6
Auto merge of #10501 - canaltinova:master, r=KiChjang
...
Removed unused imports from methods.rs
Fixes #10500
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10501 )
<!-- Reviewable:end -->
2016-04-10 01:21:04 +05:30
Nazım Can Altınova
d22d1c4fc1
Removed unused imports from methods.rs
2016-04-09 22:09:11 +03:00
shubham_jain
6626c5cfd4
issue #10141 : Document::location set null for documents without a browsing context. r=Ms2ger
2016-04-09 22:54:07 +05:30
bors-servo
32e53b80e2
Auto merge of #10086 - KiChjang:table-rows, r=Manishearth
...
Implement HTMLTableElement#rows
Fixes #8084 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10086 )
<!-- Reviewable:end -->
2016-04-09 16:36:40 +05:30
Shiroy
ee9bb1f3c6
Avoid script execution when not found
...
Fix #8391
2016-04-09 09:57:35 +02:00
Patrick Walton
6a6b688fa8
layout: Make inner scroll wrappers acquire the overflow region of their
...
contents.
Makes Twitter pages show up when scrolling, if WebRender is not in use.
WebRender does not yet support overflow:scroll.
2016-04-08 18:18:49 -07:00
bors-servo
0a1efe4578
Auto merge of #10320 - malayaleecoder:master, r=KiChjang
...
Rename imm_child_iter() and child_iter().
Fixes #10286
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10320 )
<!-- Reviewable:end -->
2016-04-09 03:54:40 +05:30
bors-servo
4da38cdd7c
Auto merge of #10324 - perlun:rename-style-structs, r=bholley
...
Renamed the style structs
Renamed style structs.
The idea is to rename all style structs from Foo to ServoFoo, as described out in #10185 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10324 )
<!-- Reviewable:end -->
2016-04-09 01:24:28 +05:30
malayaleecoder
d4dcaf3167
Rename imm_child_iter() and child_iter(). Fixes #10286
2016-04-09 01:18:00 +05:30
Per Lundberg
96835c6d6f
Renamed style structs.
...
The idea is to rename all style structs from Foo to ServoFoo, as described out in #10185 .
2016-04-08 21:47:36 +03:00
bors-servo
217e45006b
Auto merge of #10471 - KiChjang:mime-macro, r=emilio
...
Use mime! macro in fetch methods
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10471 )
<!-- Reviewable:end -->
2016-04-08 22:00:15 +05:30
Keith Yeung
32f309c02e
Use mime! macro in fetch methods
2016-04-08 11:26:48 -04:00
bors-servo
a026e86267
Auto merge of #10444 - danlrobertson:fix9824, r=asajeffrey
...
Correct x and y input for origin_rect
Fix error in construction of the `origin_rect` for `UnioningFragmentBorderBoxIterator`.
r? @asajeffrey
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10444 )
<!-- Reviewable:end -->
2016-04-08 20:35:32 +05:30
bors-servo
2491af84fc
Auto merge of #10461 - bholley:per_product, r=SimonSapin
...
Add some machinery to allow us to disable CSS properties/values per-product
Here's an initial stab at solving the issues @SimonSapin brought up in #10408 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10461 )
<!-- Reviewable:end -->
2016-04-08 18:56:43 +05:30
UK992
7896a05543
Rename handler to hook
2016-04-08 13:10:30 +02:00
bors-servo
b6c4f51571
Auto merge of #10463 - amarant:10456-HTMLLegendElement-warnings, r=KiChjang
...
Issue #10456 Remove unused import warnings in HTMLLegendElement
Fixes #10456 .
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10463 )
<!-- Reviewable:end -->
2016-04-08 11:51:58 +05:30
bors-servo
f31aa5cb86
Auto merge of #10470 - Manishearth:kill-str-string, r=KiChjang
...
Remove str_to_string lint
Specialization makes all of the options equally efficient.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10470 )
<!-- Reviewable:end -->
2016-04-08 10:50:18 +05:30
bors-servo
bd2051d06a
Auto merge of #10469 - mbrubeck:layout-misc, r=pcwalton
...
Some minor layout cleanups
* Prevent unnecessary copying in `strip_leading_whitespace_if_necessary`
* Remove unused argument to `adjust_clipping_region_for_children` (silences a compiler warning)
r? @pcwalton
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10469 )
<!-- Reviewable:end -->
2016-04-08 10:10:11 +05:30
bors-servo
bead958500
Auto merge of #10465 - stjepang:rescue-jit-prefs, r=KiChjang
...
Fix rebasing error
This PR mistakenly removed JIT enabling/disabling by preference:
https://github.com/servo/servo/pull/10342/files
Look for `get_pref`.
I'm putting the missing piece of code into the appropriate place in
script_runtime.rs
r? @KiChjang
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10465 )
<!-- Reviewable:end -->
2016-04-08 09:29:07 +05:30
bors-servo
bcac1a3c95
Auto merge of #10423 - asajeffrey:constellation-pipeline-hardening, r=emilio,jdm
...
Removed sources of panic from piepline.rs.
Fixes #10422 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10423 )
<!-- Reviewable:end -->
2016-04-08 07:04:38 +05:30
Manish Goregaokar
efa84862af
Remove str_to_string lint
...
Specialization makes all of the options equally efficient.
2016-04-08 06:44:57 +05:30
Alan Jeffrey
01b6e4a2c1
Removed sources of panic from piepline.rs.
2016-04-07 19:44:36 -05:00
bors-servo
c191dff04e
Auto merge of #10361 - mbrubeck:empty-caret, r=pcwalton
...
Fixes for insertion point caret rendering
This contains several fixes for the code to position and render the insertion point. The main effect is that the insertion point is now rendered correctly when in an empty input field. See the individual commit messages for more detais. r? @pcwalton
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10361 )
<!-- Reviewable:end -->
2016-04-08 06:01:17 +05:30
Bobby Holley
4861d5add8
Add some machinery to allow us to disable CSS properties (or a subset of values for a property) on a per-product basis.
2016-04-07 16:31:31 -07:00
bors-servo
c0aa049b0a
Auto merge of #9688 - KiChjang:worker-terminate, r=jdm
...
Implement Worker#terminate() (fixes #4427 ).
Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.
Rebased #6652 , with some comments addressed.
Fixes #4427 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9688 )
<!-- Reviewable:end -->
2016-04-08 05:01:18 +05:30
Matt Brubeck
66806229ad
Prevent unnecessary copying in strip_leading_whitespace_if_necessary
2016-04-07 16:24:10 -07:00
Matt Brubeck
cac06e579c
Remove unused argument to adjust_clipping_region_for_children
2016-04-07 16:22:51 -07:00
Matt Brubeck
32aad0838e
Draw insertion point even for empty input fields
...
This allows text layout to generate an empty text fragment if the fragment
contains the insertion point for a text input box.
2016-04-07 16:09:35 -07:00
Matt Brubeck
831243af7c
Fix insertion point layout for text runs with multiple fragments
...
Before this fix, if a TextRun containing an insertion point was split into
multiple ScannedText fragments, text layout would draw an insertion point
inside of each of the fragments. This patch records the insertion point
position at most once per TextRun, and copies it only into the appropriate
ScannedText fragment.
2016-04-07 16:00:49 -07:00
Matt Brubeck
bcaa62e1bd
Slight refactoring of RunMapping flush method
2016-04-07 16:00:14 -07:00
Joe Wilm
229b176321
Implement Worker#terminate() ( fixes #4427 ).
...
Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.
2016-04-07 18:54:32 -04:00
Keith Yeung
54f139c5cf
Implement HTMLTableElement#rows
2016-04-07 18:37:42 -04:00