Ms2ger
811ea395bc
Avoid creating a vector in can_share_style_with.
2015-04-27 20:25:19 +02:00
Ms2ger
e3440c8a59
Move bgcolor over to the new infrastructure.
...
Note that I call is_htmltabledatacellelement in
synthesize_presentational_hints_for_legacy_attributes, rather than
is_htmltablecellelement (which was used in
get_simple_color_attribute_for_layout), because that function was never called
for th elements.
2015-04-26 22:25:11 +02:00
Ms2ger
582ee1c2b3
Create a new infrastructure for presentational hints.
2015-04-26 21:25:06 +02:00
Ms2ger
852d973a70
Sort imports in element.rs.
2015-04-26 19:28:09 +02:00
bors-servo
1389be3782
Auto merge of #5847 - Ms2ger:slice, r=SimonSapin
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5847 )
<!-- Reviewable:end -->
2015-04-26 05:30:28 -05:00
Ms2ger
9185c3de79
Remove as_mut_slice() calls.
2015-04-26 11:09:03 +02:00
Ms2ger
a862479ca8
Remove as_slice() calls from script.
2015-04-26 10:52:55 +02:00
bors-servo
aef48baeb4
Auto merge of #5844 - pgonda:removing-poping-dispatch_event, r=Ms2ger
...
fixes for #5843
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5844 )
<!-- Reviewable:end -->
2015-04-26 02:53:45 -05:00
Peter
d0f451c2e1
Removed unessary poping in dispatch_event, fixes #5843
2015-04-25 20:22:04 -04:00
bors-servo
ef536372cd
Auto merge of #5842 - dhananjay92:i5838, r=Manishearth
...
Solves Issue #5838 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5842 )
<!-- Reviewable:end -->
2015-04-25 12:50:19 -05:00
Dhananjay Nakrani
bed9fc101b
Add more directories into './mach grep' command.
2015-04-25 10:47:41 -07:00
Dhananjay Nakrani
27943c0ea5
Add a './mach grep' command. [Issue #5838 ]
2015-04-25 10:06:49 -07:00
bors-servo
50eb08bcf7
Auto merge of #5841 - jdm:compositeopflaky, r=Ms2ger
...
...further investigation.
#5803 has been frustrating recently.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5841 )
<!-- Reviewable:end -->
2015-04-25 09:45:04 -05:00
Josh Matthews
43ec47fa6e
Disable canvas_compositing_globalcompositeoperation_001-ref.htm pending further investigation.
2015-04-25 10:34:09 -04:00
bors-servo
b22a6c8095
Auto merge of #5840 - Ms2ger:attrvalue-slice, r=SimonSapin
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5840 )
<!-- Reviewable:end -->
2015-04-25 08:59:26 -05:00
Ms2ger
41cc0a939e
Replace the Str implementation for AttrValue by a Deref implementation.
2015-04-25 15:24:27 +02:00
Ms2ger
4108af0c11
Introduce AttrValue::atom().
2015-04-25 15:13:03 +02:00
bors-servo
1f9de5ee2c
Auto merge of #5779 - nox:css-escape, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5779 )
<!-- Reviewable:end -->
2015-04-25 05:42:41 -05:00
Anthony Ramine
31a26fa384
Implement the CSS interface
2015-04-25 12:36:38 +02:00
Anthony Ramine
7e7b421db9
Fix generation of static JS methods
...
They now take a global argument.
2015-04-25 12:23:39 +02:00
bors-servo
f010c83313
Auto merge of #5836 - pcwalton:input-size, r=mbrubeck
...
HTML5 § 4.10.5.3.2 doesn't explicitly say to do this, but all other
browser engines seem to do it.
Improves the Google home page.
r? @mbrubeck
2015-04-24 20:06:41 -05:00
Patrick Walton
79336d21b5
style: Disregard the size
attribute for input elements other than text
...
or password fields.
HTML5 § 4.10.5.3.2 doesn't explicitly say to do this, but all other
browser engines seem to do it.
Improves the Google home page.
2015-04-24 17:33:53 -07:00
bors-servo
211ee668fa
Auto merge of #5816 - pcwalton:more-jumpiness, r=mbrubeck
...
Fixes the "jumpiness" seen on the Google home page, Wikipedia, and many
other places.
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5816 )
<!-- Reviewable:end -->
2015-04-24 15:17:07 -05:00
Patrick Walton
8741d9e8c4
layout: Use a flag to record whether we need to perform a line break if
...
wrapping on newlines rather than searching for a newline character.
Since the newline character might have been stripped out during
whitespace stripping, this was incorrect.
Fixes the "jumpiness" seen on the Google home page, Wikipedia, and many
other places.
2015-04-24 13:16:34 -07:00
bors-servo
3d6d102fd1
Auto merge of #5799 - jgraham:wptrunner_upgrade, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5799 )
<!-- Reviewable:end -->
2015-04-24 12:50:07 -05:00
James Graham
291ac06c01
Update web-platform-tests expected data to revision 2a9fd810bb18610b422dbc3998ab74aa1bffae95
2015-04-24 18:31:05 +01:00
bors-servo
79be3b9676
Auto merge of #5827 - Ms2ger:slice, r=mbrubeck
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5827 )
<!-- Reviewable:end -->
2015-04-24 12:12:53 -05:00
Ms2ger
6a55ae06d7
Remove some as_slice calls.
2015-04-24 17:44:47 +02:00
Ms2ger
4ee89363fb
Define the binary search methods on [T] rather than &[T].
2015-04-24 17:44:45 +02:00
James Graham
f837e575fe
Update to latest wptrunner (036c9931).
2015-04-24 15:37:45 +01:00
bors-servo
88d9c1b257
Auto merge of #5823 - servo:meta, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5823 )
<!-- Reviewable:end -->
2015-04-24 08:28:47 -05:00
Dhananjay Nakrani
731411660c
Implement HTMLMetaElement.{name,content} ( fixes #5663 ).
2015-04-24 14:45:51 +02:00
bors-servo
471ce46f57
Auto merge of #5817 - Adenilson:squashWarning, r=glennw
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5817 )
<!-- Reviewable:end -->
2015-04-24 07:44:51 -05:00
bors-servo
07aa6306f5
Auto merge of #5819 - mbrubeck:notify-more, r=jdm
...
The 300 second threshold was originally from the Gecko/Firefox build system. It doesn't fit Servo builds, which are shorter, and often hover right around the 300 second mark (making the notification unpredictable).
2015-04-23 23:24:06 -05:00
bors-servo
ef1e50aa77
Auto merge of #5818 - Jinwoo-Song:removeUnused, r=mbrubeck
...
Simple patch to remove unused enum, ScriptDevtoolControlMsg.
r? @jdm
cc @yichoi
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5818 )
<!-- Reviewable:end -->
2015-04-23 22:50:32 -05:00
Jinwoo Song
df406b996b
Remove unused ScriptDevtoolControlMsg enum
2015-04-24 10:19:16 +09:00
Adenilson Cavalcanti
7ebb30edb5
Squashing a warning on WebDriver.
2015-04-23 14:20:01 -07:00
bors-servo
e66f761cba
Auto merge of #5782 - Adenilson:fixInlineFiltered01, r=pcwalton
...
It will create a StackingContext for inline elements that may need it, I'm looking for feedback on this.
Not for commit, as there are some tests failing.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5782 )
<!-- Reviewable:end -->
2015-04-23 14:38:05 -05:00
Adenilson Cavalcanti
4f210eb8fe
Fixing inline elements filtering rendering.
...
It required to move create_stacking_context() outside of BlockFlow,
as a method of FragmentDisplayListBuilding. This allowed the reuse
for inline fragments that need a stacking context.
As we now create stacking contexts (SC) for inline elements, this stresses
the code in Fragment that calculates the need for a SC.
For while, we create a SC only if there are filters associated with the
Inline element. Companion issue is #5812 .
2015-04-23 12:32:18 -07:00
Matt Brubeck
79894f7ec5
Show a notification for all builds > 30 sec.
...
The 300 second threshold was originally from the Gecko/Firefox build system.
It doesn't fit Servo builds, which are shorter, and often hover right around
the 300 second mark (making the notification unpredictable).
2015-04-23 11:42:09 -07:00
bors-servo
38ac11d0b8
Auto merge of #5808 - jgraham:webdriver_execute_script, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5808 )
<!-- Reviewable:end -->
2015-04-23 13:41:11 -05:00
James Graham
c2fc6e311a
Add script execution support via WebDriver
2015-04-23 16:14:27 +01:00
bors-servo
1b08211a5e
Auto merge of #5806 - nox:splittext, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5806 )
<!-- Reviewable:end -->
2015-04-23 09:38:48 -05:00
Anthony Ramine
163d97d270
Implement Text.splitText()
2015-04-23 16:36:50 +02:00
bors-servo
d037187213
Auto merge of #5768 - nox:document-title, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5768 )
<!-- Reviewable:end -->
2015-04-23 05:20:45 -05:00
Anthony Ramine
4e95a8c4c9
Implement SVG support for Document.title
2015-04-23 12:19:12 +02:00
bors-servo
68f03c9dbb
Auto merge of #5805 - pcwalton:whitespace-effect-on-minimum-inline-sizes, r=glennw
...
Improves Amazon.
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5805 )
<!-- Reviewable:end -->
2015-04-22 20:23:17 -05:00
bors-servo
43d666f94b
Auto merge of #5802 - mmatyas:indentfix, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5802 )
<!-- Reviewable:end -->
2015-04-22 19:49:30 -05:00
Patrick Walton
f8b9b31680
layout: Take the white-space
property into account when computing
...
intrinsic sizes of inline flows.
Improves Amazon.
2015-04-22 17:45:16 -07:00
bors-servo
ac0645c236
Auto merge of #5767 - glennw:image-cache, r=larsbergstrom,jdm
...
* Simpler image cache API for clients to use.
* Significantly fewer threads.
* One thread for image cache task (multiplexes commands, decoder threads and async resource requests).
* 4 threads for decoder worker tasks.
* Removed ReflowEvent hacks in script and layout tasks.
* Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe.
* Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow.
* Add reflow batching for when multiple images load quickly.
* Reduces the number of paints loading wikipedia from ~95 to ~35.
* Reasonably simple to add proper prefetch support in a follow up PR.
* Async loaded images always construct Image fragments now, instead of generic.
* Image fragments support the image not being present.
* Simpler implementation of synchronous image loading for reftests.
* Removed image holder.
* image.onload support.
* image NaturalWidth and NaturalHeight support.
* Updated WPT expectations.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5767 )
<!-- Reviewable:end -->
2015-04-22 19:16:46 -05:00