Emilio Cobos Álvarez
2a499d5a0b
layout: Stop storing PrecomputedStyleData in LayoutNode
...
Use the SharedStyleContext instead.
2016-04-29 22:54:48 +02:00
Joel Santos
adf68626bd
Fixed line-height for input and textarea + use correct font
...
* [fix] Input line height and styling
* [new] Input line height ref test
* [fix] Test for input in manifest
* Updated CSS tests with new expected failures.
2016-04-29 23:25:26 +03:00
Ms2ger
10eff2f98b
Submit legacy Document::body tests to wpt.
2016-04-29 10:43:07 +02:00
bors-servo
3836c2c4cb
Auto merge of #10159 - pcwalton:iframes-know-their-pipelines, r=jdm
...
script: Make iframes know their pipeline IDs at all times, even after navigation.
Since WebRender uses the pipeline ID stored in the iframe element to
determine which pipeline to display, it had better be kept up to date!
Closes #9919 .
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/10159 )
<!-- Reviewable:end -->
2016-04-28 12:44:39 -07:00
Patrick Walton
7bd257089c
script: Make iframes know their pipeline IDs at all times, even after
...
navigation.
Since WebRender uses the pipeline ID stored in the iframe element to
determine which pipeline to display, it had better be kept up to date!
Closes #9919 .
2016-04-28 10:53:13 -07:00
Patrick Walton
6b6587a73b
layout: Translate floats flowing out of blocks to compensate for inline
...
direction margins.
Improves Reddit /r/rust.
2016-04-28 10:25:49 -07:00
Josh Matthews
be72363a32
Move canvas rendering test to WPT.
2016-04-28 11:26:06 -04:00
Daosheng Mu
f97e6ab9ca
Add test for canvases without contexts.
2016-04-28 07:04:34 +08:00
bors-servo
31a440867d
Auto merge of #10722 - notriddle:table_cell_valign, r=SimonSapin
...
layout: Add support for vertical alignment within table cells.
Fixes #10621
<!-- 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/10722 )
<!-- Reviewable:end -->
2016-04-26 11:04:41 -07:00
bors-servo
97a45dc30c
Auto merge of #10684 - Swatinem:hide_svg, r=Ms2ger
...
do not render svg children, fixes #10646
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/10684 )
<!-- Reviewable:end -->
2016-04-25 05:55:42 -07:00
Arpad Borsos
606b11c0ec
do not render svg children, fixes #10646
2016-04-25 14:28:43 +02:00
bors-servo
47a0f58f98
Auto merge of #10654 - notriddle:no_resize_on_initial_load, r=asajeffrey
...
compositing/script: Do not dispatch the resize event when initially l…
…oading.
No bug report corresponds to this, but I noticed it while trying to
reduce #10593
<!-- 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/10654 )
<!-- Reviewable:end -->
2016-04-22 14:25:51 -07:00
Michael Howell
7940b22158
compositing/script: Do not dispatch the resize event when initially loading.
...
No bug report corresponds to this, but I noticed it while trying to
reduce #10593
2016-04-22 13:36:43 -07:00
bors-servo
f1defb446e
Auto merge of #10443 - emilio:webgl-teximage2d-overload, r=jdm
...
webgl: Implement the pending texImage2D overload, and add more validation
This is a large-ish refactor of the Texture2D code, but it should be
easier to read and of course more correct.
I tried to annotate every error condition with a spec paragraph.
I made just a reftest to ensure this works as intended, since I expect #10373 to land pretty soon.
<!-- 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/10443 )
<!-- Reviewable:end -->
2016-04-22 11:25:29 -07:00
Josh Matthews
055a852f18
Disable sslfail.html pending further investigation in #10760 .
2016-04-22 11:34:23 -04:00
Ms2ger
abcd4b654f
Update web-platform-tests to revision 0a518aaff73532a26e175789f7e75fa99593ac64
2016-04-21 12:30:36 +02:00
Michael Howell
8953207f83
Add support for vertical alignment within table cells.
...
Fixes #10621
2016-04-20 14:40:02 -07:00
Josh Matthews
d888ed368d
Make new test use local resources only.
2016-04-20 12:38:38 -04:00
Ravi Shankar
16096f1a9c
Added 'about:sslfail' and a reftest for SSL failure
2016-04-20 12:38:37 -04:00
Emilio Cobos Álvarez
5eb59935e3
webgl: Add test for Texture2d's ArrayBufferView overload
2016-04-19 13:25:43 +02:00
Corey Farwell
07209c75db
Rename net.mime.sniff
pref to network.mime.sniff
.
...
Gecko uses the `network` prefix for network related items. Might be good
to mirror that here.
2016-04-17 16:15:24 -04:00
Matt Brubeck
782e713472
Update margins when merging inline fragments
...
Fixes #10633 .
2016-04-16 14:13:16 -07:00
bors-servo
86778a0d71
Auto merge of #10644 - pcwalton:absolute-ib-split, r=mbrubeck
...
layout: Make absolutely-positioned blocks not generate {ib} splits.
Improves YouTube.
Closes #10642 .
r? @mbrubeck
<!-- 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/10644 )
<!-- Reviewable:end -->
2016-04-16 06:58:47 +05:30
Patrick Walton
e840c7aaa0
layout: Make absolutely-positioned blocks not generate {ib} splits.
...
Improves YouTube.
Closes #10642 .
2016-04-15 17:27:25 -07:00
Michael Howell
2ecadc913a
Add reftest for #10625
2016-04-15 16:01:32 -07:00
Patrick Walton
f69931552b
layout: Disallow margins from collapsing through block formatting
...
contexts per CSS 2.1 § 8.3.1.
Closes #10449 .
2016-04-14 17:24:26 -07:00
Patrick Walton
a3fd226341
layout: Disallow margins from collapsing through blocks with clearance
...
per CSS 2.1 § 8.3.1.
Fixes the test failure in #10458 .
2016-04-14 17:24:24 -07:00
bors-servo
84f01d1d7b
Auto merge of #10579 - notriddle:overflow_premature_clip, r=pcwalton
...
Propogate transformed clipping regions to nested flows.
Fixes #10559
<!-- 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/10579 )
<!-- Reviewable:end -->
2016-04-14 03:32:33 +05:30
Michael Howell
3c2210c5fc
Propogate transformed clipping regions to nested flows.
...
Fixes #10559
2016-04-13 11:50:50 -07:00
Emilio Cobos Álvarez
3d4aa46bcf
layout: tests: Add tests for max/min inline block size
...
And update existing expectations
2016-04-13 05:44:27 +02:00
bors-servo
7e63c1be63
Auto merge of #10486 - notriddle:overflow_premature_clip, r=pcwalton
...
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 ?
<!-- 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/10486 )
<!-- Reviewable:end -->
2016-04-13 07:12:38 +05:30
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
61865f66b5
Auto merge of #10505 - amarant:10491-HTMLInputElement-attr, r=KiChjang
...
Issue #10491 add HTMLInputElement attributes that reflect content ide…
…ntically
it uses a new version of string-cache https://github.com/servo/string-cache/pull/148
<!-- 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/10505 )
<!-- Reviewable:end -->
2016-04-12 05:58:16 +05:30
bors-servo
f0014bd9cd
Auto merge of #10224 - emilio:shader-type-validations, r=jdm
...
webgl: Add attribute validations and other nits
Fixes https://github.com/servo/servo/issues/9958
Depends on a bunch of prs, and needs a test.
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/10224 )
<!-- Reviewable:end -->
2016-04-12 05:18:49 +05:30
Arnaud Marant
9b8f183cba
Issue #10491 add HTMLInputElement attributes that reflect content identically
...
it uses a new version of string-cache https://github.com/servo/string-cache/pull/148
2016-04-12 00:15:57 +02:00
Patrick Walton
18fbf8cf30
gfx: Clamp the font size we supply to Core Text to 0.01pt.
...
Core Text treats a font size of 0.0 as 12.0, which is obviously not what
we want.
Improves Twitter.
Improves Reddit /r/rust.
Closes #10492 .
2016-04-11 13:52:41 -07:00
bors-servo
608533cb4a
Auto merge of #10490 - danlrobertson:correct-size, r=SimonSapin
...
Add tests and clean up `FlexFlow::(block|inline)_mode_assign_inline_sizes`
Clean up `block_mode_assign_inline_sizes` and `inline_mode_assign_inline_sizes` and add extra css tests.
r? @SimonSapin
<!-- 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/10490 )
<!-- Reviewable:end -->
2016-04-11 22:11:07 +05:30
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
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
Daniel Robertson
e0454e0b65
Add tests and clean up *_mode_assign_inline_sizes
...
Clean up block_mode_assign_inline_sizes and
inline_mode_assign_inline_sizes and add extra css tests.
2016-04-09 01:13:30 -04: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
Matt Brubeck
e72ae2c25a
Basic insertion point reftest
2016-04-07 16:09:44 -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
bors-servo
eda8784c34
Auto merge of #10438 - KiChjang:text-decoration-fix, r=mbrubeck
...
Properly inherit text decorations
Fixes #8684 .
Fixes #8783 .
<!-- 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/10438 )
<!-- Reviewable:end -->
2016-04-08 03:39:41 +05:30
Keith Yeung
b8971867f8
Properly inherit text decorations
2016-04-07 17:16:45 -04:00
bors-servo
cb943b016f
Auto merge of #10419 - notriddle:whitespace_border, r=mbrubeck
...
Whitespace stripping should not result in a dangling, open border.
No open issue (found it while working on #7681 ).
<!-- 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/10419 )
<!-- Reviewable:end -->
2016-04-06 15:30:51 +05:30
Michael Howell
2b75ef09f7
Whitespace stripping should not result in a dangling, open border.
2016-04-05 11:39:49 -07:00
bors-servo
0ff8adb097
Auto merge of #9811 - paulrouget:forceTouch, r=mbrubeck
...
forcetouch events
https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html
Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9811 )
<!-- Reviewable:end -->
2016-04-05 21:07:05 +05:30
Paul Rouget
df6e7394d4
forcetouch events support
...
This enables Apple forcetouch DOM events. It requires the preference dom.forcetouch.enabled.
The DOM events are described here:
- https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html
The Cocoa mechanism is documented here:
- https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/#//apple_ref/doc/uid/20000016-SW274
2016-04-05 18:42:28 +08:00