Bogdan Cuza
45145108da
Measure heap memory usage for more types. Fixes #6951
2015-08-13 21:44:41 +03:00
David Zbarsky
a3ee46fc9c
Make CSSStyleDeclaration setters rethrow errors instead of unwrapping and crashing.
2015-08-11 00:34:41 -04:00
Simon Sapin
06ba62b012
Remove some PropertyDeclaration cloning.
2015-07-31 08:09:25 +02:00
Simon Sapin
d2bd070dc3
Refactor CSSStyleDeclaration::setProperty to not synthesize a name: value
string to parse.
2015-07-31 08:09:24 +02:00
Simon Sapin
1033886409
Fix CSSStyleDeclaration.setPropertyPriority
...
Before, it was a complicated no-op. (`parse_style_attribute` expects
input like `a: b; c: d;`, when given just a name it return an empty
vector.)
2015-07-31 08:08:36 +02:00
David Zbarsky
36145d0686
Return None as style for elements not in a document
2015-07-30 12:36:08 -04:00
David Zbarsky
e484d6b5e3
Implement getComputedStyle
2015-07-29 20:17:50 -04:00
Bogdan Cuza
233a769c67
Add spec links
2015-07-28 13:28:41 +02:00
Michael Wu
675267b782
Upgrade to SM 39
2015-06-19 18:42:48 -04:00
Simon Sapin
5428226e04
Remove usage of String::from_str, deprecated in #6377
2015-06-15 15:37:14 +02:00
Anthony Ramine
7197052c0d
Uniformise root() methods
...
They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable
and ResultRootable.
2015-04-28 09:22:45 +02:00
Corey Farwell
cc4a64e1fe
Add/update comments with links to spec
...
Extracted out of #5649
* add more hyperlinks to associated specification for structs/methods
* follow redirects and update links
* replace broken links
* removal of WHATWG multipage page name since the page name is not
guaranteed to be stable
2015-04-14 18:03:13 -04:00
Eric Hegnes
e398725242
Consistently name enum members in dom::bindings::error::Error
...
Fixes #5521
2015-04-05 00:09:40 -04:00
Corey Farwell
86c254ab6f
Cleanup script::dom::cssstyledeclarations
...
* Group imports
* Convert seralization helper function to use `Iterator::fold`
* Remove basically pointless `serialize_value` helper function
* Wrap lines longer than 100 chars
* Add URLs to spec
2015-03-30 12:38:06 -04:00
Corey Farwell
d838fcce30
Remove some unnecessary uses of as_slice
...
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:
* `String` -> `str`
* `Atom` -> `str`
The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Josh Matthews
c816975750
Documentation and cleanup.
2015-03-03 16:25:40 -05:00
Josh Matthews
e2c4f5ed67
Move everything unrelated to the frame tree out of Page and into Document or Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
2015-03-03 16:25:40 -05:00
Ms2ger
6d30ec77c8
Replace uint/int by usize/isize in various places.
2015-02-20 14:45:47 +01:00
Simon Sapin
d13d36f57f
End the libstyle 'pub use' madness.
2015-01-30 15:08:29 +01:00
Ms2ger
505159a464
Import the util crate as util rather than servo_util.
...
This used to conflict with the util crate from the standard library, which
has long since been removed.
The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Manish Goregaokar
b68b7e87c8
self import
2015-01-28 13:46:00 +05:30
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
Bruno de Oliveira Abinader
dc008977f9
Share supported CSS properties between style and CSSStyleDeclaration
...
Avoids duplicated code when implementing the CSS properties accessors in
CSSStyleDeclaration WebIDL. Servo internal CSS properties are not
accessible.
CSS property "float" is unnacessible because we currently lack support
for BinaryName IDL annotation (#4435 ).
Fixes #4429 , #4430 .
2015-01-19 13:21:03 -04:00
Ms2ger
ff96d8ccd4
Remove unsound Root::deref() calls in CSSStyleDeclaration.
2015-01-01 20:36:44 +01:00
Ms2ger
1dad710063
Replace Root::deref() calls by Root::r() calls where possible.
...
This changes those calls that were already sound.
2015-01-01 20:36:43 +01:00
Ms2ger
b6117a57aa
Replace the remaining to_string calls by into_string calls.
2014-12-31 10:34:44 +01:00
ProgramFOX
18d8ee6ce0
Added readonly flag for CSSStyleDeclaration
2014-12-28 17:39:07 +01:00
Manish Goregaokar
50c246bdc5
Fix warnings post-upgrade
2014-12-27 03:28:35 +05:30
thiagopnts
eacbe331c9
Replace bool attribute in Element::update_inline_style with a descriptive enum
2014-12-24 13:23:58 -02:00
Adam Sunderland
674fe910c1
Add GetPropertyPriority to CSSStyleDeclaration
...
Tweak getPropertyPriority to match recommendations
Adding Tests for Style Priority
Use else if
Adding Content Test for GetPropertyPriority
Revert "Adding Tests for Style Priority"
This reverts commit 8666a37f833b06c3e43f27acd8a9678e94425e55.
2014-12-23 11:41:33 -06:00
ProgramFOX
07d37af37e
Implemented CSSStyleDeclaration.setPropertyPriority
...
Implemented CSSStyleDeclaration.setPropertyPriority, resolves #4433
2014-12-23 17:14:45 +01:00
Tetsuharu OHZEKI
a7bb436177
script: Remove glob imports added in #4405
2014-12-19 04:52:48 +09:00
Josh Matthews
0a54665444
Add missing supported CSS properties.
2014-12-18 12:54:03 -05:00
Josh Matthews
6bffc10445
Address review comments.
2014-12-18 12:54:03 -05:00
Josh Matthews
c8557c44a9
Merge CSS2Properties and CSSStyleDeclaration.
2014-12-18 12:54:03 -05:00
Josh Matthews
fab2e63b59
Slight simplification.
2014-12-18 12:54:02 -05:00
Josh Matthews
3cfe8ab53e
Address review comments.
2014-12-18 12:54:02 -05:00
Josh Matthews
9d82e06e64
Implement RemoveProperty, SetProperty, and supported property indices.
2014-12-18 12:54:02 -05:00
Josh Matthews
6f8a9b6d46
Implement setting element style properties. Improve serialization to return initial values when unspecified.
2014-12-18 12:54:02 -05:00
Josh Matthews
505e1855a3
Implement something like CSS value serialization. Fetch actual inline style declarations from owning elements.
2014-12-18 12:54:02 -05:00
Josh Matthews
2e14b653bf
Add a style property to HTMLElement.
2014-12-18 12:54:02 -05:00
Josh Matthews
2cfa8e85a6
Stub in some uses of getPropertyValue and sketch out its implementation.
2014-12-18 12:54:02 -05:00
Josh Matthews
4da0ca8ace
Add stub CSS2Properties type.
2014-12-18 12:54:02 -05:00
Cameron Zwarich
1c5d58180d
Add the basic CSSStyleDeclaration CSSOM interface.
...
This just includes the .webidl file (with some of the functionality
commented out) and the stub implementations for the bindings.
This is another step towards #1721 .
2014-12-18 12:54:02 -05:00