Sam Gibson
6d1624f9d0
Add additional WPT tests for maxlength parser set
2015-12-03 14:00:57 +11:00
Sam Gibson
85b99f8ba4
Fix typo in error message
2015-12-03 14:00:56 +11:00
Sam Gibson
ecc7035de6
Correct the default max length
2015-12-03 14:00:55 +11:00
Sam Gibson
2ba1750c40
Resolves long-running merge conflicts
2015-12-03 14:00:53 +11:00
Sam Gibson
eecdfdf6c1
Makes int_getter macro, and uses -1 as default maxlength instead of maxint
2015-12-03 14:00:52 +11:00
Sam Gibson
d26c555e2a
Adds support for input element's maxlength attr
...
servo/servo#7320
servo/servo#7004
2015-12-03 14:00:51 +11:00
Emilio Cobos Álvarez
3af24ed119
webgl: Fix texturing
...
These two tiny changes were making WebGL textures not work.
It was not seen in our texturing test since we render to a texture by
default, and that texture was bound to `gl::TEXTURE_2D`.
2015-12-03 02:53:37 +01:00
Jitendra Jain
af7c0837f4
Implement final_mime_type and final_charset helpers and use in text_response
2015-12-02 20:06:59 -05:00
Eli Friedman
e42dcb3712
Remove unnecessary conversion to/from DOMString for localName.
2015-12-02 13:42:45 -08:00
Simon Martin
2b332a2138
Issue #8113 : Support file, about and data schemes as form action.
2015-12-02 22:41:24 +01:00
Anthony Ramine
60976406cc
Implement [Unforgeable]
...
This is mostly stolen from Gecko. As there, we define the unforgeable members
on an object stored in the slots of the prototype object. They are then copied
onto instance objects when they are instantiated. It should be noted that
proxy objects see their unforgeable memebers defined on their expando object.
Unforgeable attributes aren't properly inherited in codegen (in a similar
fashion as getters and setters as filed in #5875 ) and require to be redefined
in derived interfaces. Fortunately, there are currently no such interfaces.
No unforgeable members can be included into the TestBinding interfaces for good
measure because they are not compatible with setters.
Given the unforgeable holder object has the same prototype as actual instances
of the interface, the finalize hook needs to check its slot pointer for nullity
before dropping it.
The new failing test isn't related to Unforgeable attributes, but to the fact
that all Document instances currently have a Location, even if their window
isn't in a browsing context.
2015-12-02 22:15:11 +01:00
GauriGNaik
afdc60fa57
Make log_css_error in parser.rs take a &ParserContext argument and call this method
2015-12-02 16:03:04 -05:00
Simon Sapin
aa1eba4f5a
Use skia and deps from crates.io.
...
Fix https://github.com/servo/skia/issues/70
2015-12-02 19:07:59 +01:00
Simon Martin
f79e1521b2
Issue #8462 : Add support for BufferSubData, CompressedTexImage2D and
...
CompressedSubTexImage2D and re-enable individual webgl WPT tests.
2015-12-01 20:40:42 +01:00
bors-servo
65108348aa
Auto merge of #8714 - frewsxcv:body-fgcolor, r=Ms2ger
...
Implement attribute 'fgColor' on 'document'
The 'text' attribute was implemented on `<body>` in #7841
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8714 )
<!-- Reviewable:end -->
2015-12-01 21:40:58 +05:30
David Zbarsky
302f41d34b
Reset canvas state when changing bitmap dimensions
2015-11-30 21:23:51 -08:00
bors-servo
b4906aa008
Auto merge of #8755 - glennw:vsync, r=pcwalton
...
Add debug option to disable vsync for profiling.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8755 )
<!-- Reviewable:end -->
2015-12-01 05:26:00 +05:30
Glenn Watson
6c8905126f
Add debug option to disable vsync for profiling.
2015-12-01 09:52:13 +10:00
Corey Farwell
320263199f
Implement attribute 'fgColor' on 'document'
...
The 'text' attribute was implemented on '<body>' in #7841
2015-11-30 18:19:07 -05:00
Josh Matthews
c23cbd4163
Dispatch load events for cross origin iframes. Resolves #6672 .
2015-11-30 17:37:16 -05:00
bors-servo
2a125b5613
Auto merge of #8731 - eefriedman:root-lint-pattern, r=Manishearth
...
Fix false positive in unrooted_must_root lint.
Encountered in #8725 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8731 )
<!-- Reviewable:end -->
2015-12-01 00:24:03 +05:30
Eli Friedman
962c06e9da
Fix false positive in unrooted_must_root lint.
...
Encountered in #8725 .
2015-11-30 10:53:32 -08:00
bors-servo
595bda478e
Auto merge of #8752 - Manishearth:om-nom, r=metajack
...
Make `path_matches` match the spec (fixes cookies)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8752 )
<!-- Reviewable:end -->
2015-11-30 23:18:39 +05:30
Manish Goregaokar
f8d906be10
Make path_matches
match the spec (fixes cookies)
2015-11-30 22:01:33 +05:30
bors-servo
29c42a9f78
Auto merge of #8751 - nox:rm-prototype-slot, r=Ms2ger
...
Remove unused slot in prototype object (fixes #8588 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8751 )
<!-- Reviewable:end -->
2015-11-30 19:27:57 +05:30
Anthony Ramine
7547bcac24
Remove unused slot in prototype object ( fixes #8588 )
2015-11-30 14:48:24 +01:00
bors-servo
0f72049363
Auto merge of #8705 - jsanders:fix-sleep-ms-deprecations, r=metajack,Wafflespeanut
...
Use thread::sleep instead of deprecated sleep_ms
Similarly, change one instance of `thread::park_timeout_ms`.
Fixes #8694
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8705 )
<!-- Reviewable:end -->
2015-11-30 09:20:15 +05:30
Yanir Seroussi
ad9accf8e7
Implement unspecified websocket close code (fixes issue #8158 )
2015-11-30 11:20:41 +11:00
bors-servo
a877a56e0e
Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r=jgraham
...
Webdriver - GetWindowSize/IsEnabled/IsSelected
Added handlers for https://github.com/servo/servo/issues/8623 :
GetWindowSize
IsEnabled(WebElement)
IsSelected(WebElement)
I am not sure how to actually verify my webdriver code works, if someone can give advice I would make the necessary changes.
Thanks!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8661 )
<!-- Reviewable:end -->
2015-11-30 03:42:54 +05:30
David Raifaizen
8d451076e1
Removed duplicate webdriver_traits file and added webdriver handler for GetWindowSize, IsSelected and IsEnabled
2015-11-29 15:48:23 -05:00
James Sanders
3659218c59
Use thread::sleep instead of deprecated sleep_ms
...
Similarly, change one instance of `thread::park_timeout_ms`.
Fixes #8694
2015-11-29 13:41:04 -07:00
Jason Schein
ccb8d070ad
Make OnErrorEventHandlerNonNull return 'any' instead of 'boolean'.
2015-11-29 00:10:32 -08:00
bors-servo
2d164f2beb
Auto merge of #8729 - dzbarsky:canvas_webidl, r=dzbarsky
...
Update Canvas webIDL to spec
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8729 )
<!-- Reviewable:end -->
2015-11-29 09:32:28 +05:30
David Zbarsky
ee3f7ad451
Update Canvas webIDL to spec
2015-11-28 20:03:48 -08:00
Bobby Holley
cf33f00018
Generalize the rest of layout to operate on generic Layout*.
...
There wasn't a good way to split this up, unfortunately.
With this change, the only remaining usage of the Servo-specific structures is
in layout_task, where the root node is received from the script task. \o/
2015-11-28 18:01:02 -08:00
Bobby Holley
77a8091996
Generalize css/matching.rs to operate on generic Layout*.
2015-11-28 18:01:02 -08:00
Bobby Holley
3aeaff35de
Switch ChildrenIterator to be an associated type.
...
If we use ThreadsafeLayoutNodeChildrenIterator directly as the return type of children(),
we need to export the DangerousThreadSafeLayoutNode which the iterator implementation
relies upon.
2015-11-28 18:01:02 -08:00
Bobby Holley
2cfe4de09b
Constrain the ConcreteLayoutFoo associated types to provide full tri-ality among the types.
...
Otherwise we end up with this problem: http://is.gd/ACBLAU
2015-11-28 18:01:02 -08:00
Corey Farwell
feb16463ef
Add tracking issues for body/document attributes
2015-11-28 17:53:59 -05:00
bors-servo
d48d8b3ea1
Auto merge of #8713 - GuillaumeGomez:features, r=Manishearth
...
Remove stabilized features
Fixes #8706 .
cc @KiChjang
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8713 )
<!-- Reviewable:end -->
2015-11-28 21:58:43 +05:30
bors-servo
eadaf30af3
Auto merge of #8703 - eefriedman:dom-getter-setter-atom, r=frewsxcv
...
Compute attribute name atoms at compile-time.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8703 )
<!-- Reviewable:end -->
2015-11-28 20:40:07 +05:30
bors-servo
dbff1ab336
Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanut
...
Ensure crate are alphabetically sorted
cc @nox
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692 )
<!-- Reviewable:end -->
2015-11-28 19:34:11 +05:30
bors-servo
b4213e6d8e
Auto merge of #8698 - servo:rustup_2015-11-26, r=Manishearth
...
Upgrade to rustc 1.6.0-nightly (1805bba39 2015-11-26)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8698 )
<!-- Reviewable:end -->
2015-11-28 12:11:52 +05:30
Guillaume Gomez
e1e2b61049
Remove stabilized features
2015-11-28 05:48:03 +01:00
bors-servo
d50b87edec
Auto merge of #8702 - mrobinson:fragments, r=pcwalton
...
Build Fragments without the RECONSTRUCT_FLOW bit
The RECONSTRUCT_FLOW restyle damage bit shouldn't apply to newly
constructed flow tree elements. It is explicitly removed for Flows, but
not for Fragments. This causes RECONSTRUCT_FLOW to bubble up to Flows
that contain any Fragments at all. Instead explicitly remove the
RECONSTRUCT_FLOW bit when creating a new Fragment.
There isn't a good way to test this currently, but all tests should
continue to pass.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8702 )
<!-- Reviewable:end -->
2015-11-28 10:04:28 +05:30
Guillaume Gomez
6e7de62b38
Add check up on extern crate order and sort extern crates alphabetically
2015-11-28 03:11:08 +01:00
bors-servo
fa7e1d07ff
Auto merge of #8688 - Ms2ger:compositing, r=pcwalton
...
Some compositing cleanup.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8688 )
<!-- Reviewable:end -->
2015-11-28 07:26:14 +05:30
bors-servo
c0be03f2af
Auto merge of #8701 - nerith:attribute, r=jdm
...
Remove `#[allow(raw_pointer_derive)]` attributes
The attributes are unused.
Fixes #8699 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8701 )
<!-- Reviewable:end -->
2015-11-28 06:07:46 +05:30
Eli Friedman
c02c0576c8
Compute attribute name atoms at compile-time.
2015-11-27 15:42:34 -08:00
Martin Robinson
12db4594dd
Build Fragments without the RECONSTRUCT_FLOW bit
...
The RECONSTRUCT_FLOW restyle damage bit shouldn't apply to newly
constructed flow tree elements. It is explicitly removed for Flows, but
not for Fragments. This causes RECONSTRUCT_FLOW to bubble up to Flows
that contain any Fragments at all. Instead explicitly remove the
RECONSTRUCT_FLOW bit when creating a new Fragment.
There isn't a good way to test this currently, but all tests should
continue to pass.
2015-11-27 22:27:21 +01:00