Commit graph

8624 commits

Author SHA1 Message Date
bors-servo
b6a593650b auto merge of #4392 : michaelwu/servo/fix-gonk-20141216, r=jdm 2014-12-16 13:31:08 -07:00
Adenilson Cavalcanti
c41fc31655 Adding tests for outset. 2014-12-16 12:16:43 -08:00
Adenilson Cavalcanti
92f4ab6394 Thanks to differences on rendering between CPU X GPU, there is a 1 pixel wide
difference in the position where the top border meets the right border (as
also the right border X bottom border).

The workaround to have a test that will work on both modes is to cover the
affected area with a white div. This patch adds inset test.
2014-12-16 12:09:31 -08:00
Adenilson Cavalcanti
0e24194d81 Inset and outset border coloring is incorrect on left side border.
This patch will fix this issue.
2014-12-16 12:01:43 -08:00
Matthew Rasmus
504f968b20 Implements :indeterminate pseudo-class
Addresses reviews
2014-12-16 11:34:04 -08:00
Matthew Rasmus
2d05ac537c Updated WPT to expect newly passing tests 2014-12-16 11:34:04 -08:00
Matthew Rasmus
0c8e1aeda3 Implements dirty value/checked flags for input
And modifies test-inputs.html to test.

Fixes wpt breaking mistake
2014-12-16 11:34:04 -08:00
Matthew Rasmus
38e4d86b14 Implements DefaultChecked and resets of checkboxes 2014-12-16 11:34:04 -08:00
Matthew Rasmus
a5c0bb708d htmltextarea: Fixed some value_changed issues
Also modified tests/html/textarea.html to allow for the testing of the
textarea's dirty value flag.
2014-12-16 11:34:04 -08:00
Matthew Rasmus
4d0a6a6bd6 Implements reset button 2014-12-16 11:34:04 -08:00
Matthew Rasmus
7e0c39a82d Implements FormControl for HTMLTextAreaElement 2014-12-16 11:34:04 -08:00
Matthew Rasmus
a3b3295d80 Adds reset method to FormControl 2014-12-16 11:34:04 -08:00
Matthew Rasmus
f0ce2af89c Implements basic form resetting
What can this do? Reset `<input type=text>` fields back to their default
value through a call to a form's reset method. That's all for now!

Fixes compile error after rebase
2014-12-16 11:33:56 -08:00
bors-servo
fcaa45fb67 auto merge of #4380 : mttr/servo/textarea_rows_and_cols, r=jdm
...with a bit of a caveat: sizing has the same problem as seen in #4378, and it is _significantly_ more noticeable when using `rows`.

Fixes #4291
2014-12-16 12:09:50 -07:00
Matthew Rasmus
f932a6947a Implements HTMLInputElement.defaultValue
...and changes SetValue to update the input text instead of the content
attr.

Also includes a comment summarizing everything I currently know with
respect to an input elements checkedness vs its IDL attributes vs its
content attributes.
2014-12-16 11:06:56 -08:00
Matthew Rasmus
f686943eb4 Fix crash in textinput 2014-12-16 11:06:55 -08:00
Matthew Rasmus
fc0748f50e Makes layout respect <textarea> rows attribute
review addresssing
2014-12-16 11:02:01 -08:00
Matthew Rasmus
2c7f6076d1 Makes layout respect <textarea> cols attribute 2014-12-16 10:44:15 -08:00
Michael Wu
f6cc413a48 Update Cargo.lock to fix gonk build 2014-12-16 13:30:32 -05:00
bors-servo
905c30d697 auto merge of #4390 : Ms2ger/servo/derefs, r=jdm 2014-12-16 09:22:02 -07:00
bors-servo
508924771e auto merge of #4389 : Ms2ger/servo/transmute, r=jdm 2014-12-16 08:54:51 -07:00
Ms2ger
ac95d12037 Remove some manual deref() / deref_mut() calls. 2014-12-16 16:41:33 +01:00
bors-servo
cd1ccacf5e auto merge of #4386 : glennw/servo/update-cocoa, r=metajack 2014-12-16 08:24:49 -07:00
Ms2ger
eafa8b48fc Fix bogus transmute. 2014-12-16 15:15:00 +01:00
bors-servo
746b262ff4 auto merge of #4374 : thiagopnts/servo/dispatch-event, r=Ms2ger
servo/pull/4369 with the right commit.
2014-12-16 06:36:47 -07:00
thiagopnts
79487252ca Add auxiliary method to EventTargetHelpers for events without target
fixup! Add auxiliary method to EventTargetHelpers for events without target
2014-12-16 10:01:38 -02:00
bors-servo
38a4e71502 auto merge of #4387 : ebalint/servo/codegen, r=Ms2ger
If we added a "readonly attribute Uint8ClampedArray arrayAttribute" in a webidl, codegen created the binding method like this: "fn ArrayAttribute(self) -> * mut JSObject;" but called it with a "*mut JSContext" parameter.
2014-12-16 04:06:56 -07:00
Edit Balint
3036c8d21d Fixed codegen error regarding Uint8ClampedArray 2014-12-16 11:03:01 +01:00
Glenn Watson
748de2f7ac Update cocoa (needed for newer glutin) 2014-12-16 14:48:41 +10:00
bors-servo
fb5c1bef6f auto merge of #4385 : pcwalton/servo/page-double-borrow, r=jdm
This was my fault. It comes up on almost any page after scrolling a bit.

r? @jdm
2014-12-15 20:54:44 -07:00
bors-servo
e0ec21e814 auto merge of #4381 : Manishearth/servo/performancenow, r=jdm 2014-12-15 20:00:53 -07:00
Manish Goregaokar
eec68faa41 Fix window.performance.now() 2014-12-16 08:28:11 +05:30
bors-servo
8e31e5f987 auto merge of #4289 : pcwalton/servo/hacker-news, r=SimonSapin
This patch provides some of the groundwork for column spans greater than
1. It implements the column-span CSS property as well as the
corresponding colspan attribute; although the former is not
well-specified outside of CSS multi-column layout, INTRINSIC refers to
it. Although width is distributed to spanning columns, they do not yet
contribute minimum and preferred widths; this will be implemented in a
follow-up.

The parsing for the legacy bgcolor and border attributes is
implemented according to the WHATWG HTML specification.

Additionally, this patch cleans up some miscellaneous formatting issues,
refactors layout/css somewhat to eliminate needless levels of
indirection, and cleans up the handling of table rowgroups.

New Hacker News screenshot: http://i.imgur.com/hnl2a7E.png
2014-12-15 19:33:46 -07:00
Patrick Walton
34d76fef28 script: Fix double-borrow error
This was my fault. It comes up on almost any page after scrolling a bit.
2014-12-15 18:21:51 -08:00
bors-servo
88ec52dd61 auto merge of #4371 : pcwalton/servo/line-breaking-improvements, r=mbrubeck
This commit removes the "merge-fragments" pass from inline reflow,
instead merging "on the fly". This ended up being simpler, as well as
more fine grained. Additionally, this patch makes the line breaker no
longer clone every fragment (!)

This functionality will be used in the implementation of
`text-overflow`.

r? @mbrubeck
2014-12-15 19:09:49 -07:00
Patrick Walton
a1ea44b294 style: Address review comments relating to bgcolor and column spans 2014-12-15 18:09:44 -08:00
Patrick Walton
17835ba0cb style: Implement quirks mode rules. 2014-12-15 17:41:51 -08:00
Patrick Walton
56b78de5bc style: Implement basic column spans.
This patch provides some of the groundwork for column spans greater than
1. It implements the column-span CSS property (prefixed so as not to be
exposed to content) as well as the corresponding colspan attribute;
although the former is not well-specified outside of CSS multi-column
layout, INTRINSIC refers to it. Although width is distributed to
spanning columns, they do not yet contribute minimum and preferred
widths; this will be implemented in a follow-up.

Additionally, this patch cleans up some miscellaneous formatting issues
and improves the handling of table rowgroups.
2014-12-15 17:41:51 -08:00
Patrick Walton
14bafb11be style: Parse the legacy bgcolor attribute per the HTML5 specification.
Additionally, this patch cleans up some miscellaneous formatting issues.
2014-12-15 17:41:44 -08:00
Patrick Walton
10f1ed5e31 style: Parse the legacy border attribute per the legacy HTML specification.
Additionally, this patch cleans up some miscellaneous formatting issues
and refactors files in `layout/css/` somewhat to eliminate needless
levels of indirection. It also fixes our handling of presentational
hints that only apply if border is nonzero.
2014-12-15 17:41:37 -08:00
Patrick Walton
e0e14c60d6 style: Move presentational hint synthesis into legacy.rs. 2014-12-15 17:41:25 -08:00
bors-servo
112ef5c484 auto merge of #4310 : pcwalton/servo/lists, r=SimonSapin
The exact rendering is ill-spec'd. Some things are ugly (especially the
width and height of list style images) but they are infrequently used
and I believe this implementation matches the spec. Numeric lists are
not supported yet, since they will require a separate layout pass.

The implementation is a subclass of `BlockFlow`, on advice from Robert
O'Callahan.

r? @SimonSapin
2014-12-15 17:42:48 -07:00
Patrick Walton
3029fbab92 layout: Implement basic lists and the CSS1 list properties.
The exact rendering is ill-spec'd. Some things are ugly (especially the
width and height of list style images) but they are infrequently used
and I believe this implementation matches the spec. Numeric lists are
not supported yet, since they will require a separate layout pass.

The implementation is a subclass of `BlockFlow`, on advice from Robert
O'Callahan.
2014-12-15 16:25:06 -08:00
bors-servo
7805fe19ed auto merge of #4318 : pcwalton/servo/box-shadow-redux, r=SimonSapin
r? @SimonSapin
2014-12-15 16:31:14 -07:00
bors-servo
5f2684d2f8 auto merge of #3844 : pcwalton/servo/script-layout-synchronization, r=jdm
This fixes race conditions whereby layout and script could be running
simultaneously.

r? @jdm 
cc @cgaebel
2014-12-15 15:31:21 -07:00
Patrick Walton
a200b139b6 script: Add some workarounds for image cache task races 2014-12-15 14:16:20 -08:00
Patrick Walton
d101c1dd91 script: Improve dirty propagation and fix script-layout synchronization.
This fixes race conditions whereby layout and script could be running
simultaneously.
2014-12-15 14:16:04 -08:00
bors-servo
d75e85261f auto merge of #4375 : michaelwu/servo/fix-gonk-20141215, r=glennw
This updates azure to pick up a gonk fix - https://github.com/servo/rust-azure/pull/120 and adds a stub function to the window.
2014-12-15 15:06:59 -07:00
Patrick Walton
3ba0abd8ff gfx: Implement box-shadow per CSS-BACKGROUNDS. 2014-12-15 13:39:06 -08:00
bors-servo
4e187af2f1 auto merge of #4373 : Ms2ger/servo/blob-type, r=Manishearth 2014-12-15 13:16:05 -07:00