Commit graph

3223 commits

Author SHA1 Message Date
bors-servo
943ab4a4f0 auto merge of #1473 : metajack/servo/rustup-20131219, r=jdm 2014-01-12 19:16:21 -08:00
Jack Moffitt
a7ef1cd35e Upgrade to latest Rust. 2014-01-12 19:45:45 -07:00
bors-servo
e8b0eae09e auto merge of #1472 : brunoabinader/servo/document-head, r=jdm
Use children() instead of traverse_preorder(), and avoid having
GetHead() in both Document and HTMLDocument.

Closes #1465.
2014-01-08 14:39:57 -08:00
Bruno de Oliveira Abinader
b5eba001ef Fix to avoid attribute name clash between Document/HTMLDocument
Use children() instead of traverse_preorder(), and avoid having
GetHead() in both Document and HTMLDocument.

Closes #1465.
2014-01-08 16:44:47 -04:00
bors-servo
728fb9a7de auto merge of #1470 : SimonSapin/servo/before-after, r=metajack
No behavior change (hopefully).

a16087d is the core of what I wanted to do, following up on #1464 (cc: @parkjaeman)
2014-01-08 09:58:29 -08:00
Simon Sapin
8d8a8ad6e7 De-duplicate some redundant code with a macro. 2014-01-08 16:08:42 +00:00
Simon Sapin
724fd7caaf Store selectors in Arc early to avoid some copying. 2014-01-08 15:58:52 +00:00
Simon Sapin
faeab3773e Simplify tracking of CSS rules source order in selector matching. 2014-01-08 14:59:10 +00:00
Simon Sapin
a16087da5f Selector mathing: Move the pseudo-elements buckets inside Stylist.
Refactor to have only one Stylist per document.
2014-01-08 14:54:16 +00:00
Simon Sapin
1d6f94fd96 Move selector matching tests and testing helpers into a #[cfg(test)] module. 2014-01-08 14:46:46 +00:00
Simon Sapin
146029bc06 Remove unused PerOriginRules struct. 2014-01-08 14:46:46 +00:00
Simon Sapin
8068823948 Make SelectorMap private. 2014-01-08 14:46:46 +00:00
Simon Sapin
1cdcaa940c Comment out parsing of ::firt-line and ::first-letter, they’re not supported yet. 2014-01-08 14:46:46 +00:00
Simon Sapin
7a9b917c4f Remove some trailing whitespace. 2014-01-08 13:43:30 +00:00
bors-servo
99157c6412 auto merge of #1464 : parkjaeman/servo/pseudo-element-selectors-matching, r=SimonSapin
CSS parsing and selector matching for pseudo element :before and :after
2014-01-08 05:37:20 -08:00
bors-servo
de36f37ac7 auto merge of #1409 : pcwalton/servo/fix-get-bounding-client-rect, r=jdm
This fixes the `getBoundingClientRect()` content test.

r? @jdm
2014-01-07 19:46:25 -08:00
Jaeman Park
62691cb6ef Change range to iter() and add comment for FirstLine and FirstLetter 2014-01-08 09:09:52 +09:00
bors-servo
a910e4ee8d auto merge of #1466 : brunoabinader/servo/document-head, r=kmcallister
Implementation details according to the specification below:
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head

This patch is for:
https://github.com/mozilla/servo/issues/1465

Closes #1465.
2014-01-07 12:07:32 -08:00
Bruno de Oliveira Abinader
17b35d52ff Implement Document::head()
Implementation details according to the specification below:
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head

This patch is for:
https://github.com/mozilla/servo/issues/1465
2014-01-07 15:51:45 -04:00
Jaeman Park
138e425607 CSS parsing/selector-matching for pseudo elements 2014-01-07 18:03:07 +09:00
bors-servo
608ee006ab auto merge of #1463 : ksh8281/servo/img_new_line, r=pcwalton
````
<div>
   test
   <img src="test.jpeg"/>
</div>
````

if reduce window size, img is disapper.
this pr fixes this case.
2014-01-06 22:25:27 -08:00
patrick kim
117f55069c fix try_to_append_line for ImageBox 2014-01-07 14:57:07 +09:00
bors-servo
7be2125f96 auto merge of #1461 : ksh8281/servo/block_black_boxes, r=SimonSapin
fix for anonymous boxes.
http://www.w3.org/TR/CSS2/visuren.html#anonymous-block-level
2014-01-06 17:25:30 -08:00
patrick kim
9b100241fd fix comment 2014-01-06 19:30:24 +09:00
patrick kim
454374276f add comment 2014-01-06 19:17:09 +09:00
patrick kim
c538a90a14 remove unused import 2014-01-06 19:10:24 +09:00
patrick kim
cfd44e4082 remove block exception 2014-01-06 19:08:08 +09:00
patrick kim
8eb39aafd4 fix for anonymous block boxes 2014-01-06 17:51:49 +09:00
bors-servo
eff3cd8660 auto merge of #1460 : Ms2ger/servo/set_attribute-no-lowercase, r=jdm
In particular, for SetAttributeNS, we should not change the case.
2014-01-04 10:49:25 -08:00
Ms2ger
4c0e7dda7b Make Element::set_attribute not lower-case the name argument.
In particular, for SetAttributeNS, we should not change the case.
2014-01-04 18:06:57 +01:00
bors-servo
cb795d814f auto merge of #1459 : Ms2ger/servo/attr-new, r=jdm 2014-01-04 07:25:20 -08:00
bors-servo
fdea007a7d auto merge of #1458 : Ms2ger/servo/unused-import, r=jdm 2014-01-04 07:04:24 -08:00
Ms2ger
76a9d59632 Avoid mixing up local name and name when creating attributes. 2014-01-04 11:05:10 +01:00
Ms2ger
e34375cf52 Correctly guard an import in servo.rc. 2014-01-04 10:58:54 +01:00
bors-servo
8cdfbf3fae auto merge of #1443 : khodzha/servo/child_elements, r=jdm
implemented child_elements to filter children with is_element predicate
2014-01-03 14:16:27 -08:00
bors-servo
9340b1892d auto merge of #1455 : SimonSapin/servo/font-style, r=kmcallister
* Using .connect(", ") just to use .split(",") later is silly. Keep it a vector.
* The 'font-style' property can not be both italic and oblique. Use an enum instead of two booleans.
2014-01-03 13:28:27 -08:00
bors-servo
6dbdcd55ac auto merge of #1447 : june0cho/servo/fix_crash_on_local_bookmark, r=kmcallister
Local bookmark which is implemented in #1262 is not currently working when executing URL with hashtag(e.g. `test_local_bookmark.html#h3`, `acid2.html#top`).
Local bookmark has two matching processes(http://www.w3.org/TR/html5/browsers.html#scroll-to-fragid). Among two, this commit fixes the crash on ID attribute, and still has crash on `a` element with `name` attribute.
As a result, with this commit, `test_local_bookmark.html#h3` works well, but `acid2.html#top` still does not work.
2014-01-03 10:40:28 -08:00
Shamir Khodzha
8bb1724c1e implemented iterator for child elements 2014-01-03 21:52:22 +04:00
bors-servo
08152ef45c auto merge of #1456 : Ms2ger/servo/remove-attrs-hashmap, r=jdm 2014-01-03 09:28:30 -08:00
Ms2ger
29897580e1 Remove the hashmap for attributes. 2014-01-03 18:24:00 +01:00
bors-servo
90f44738a4 auto merge of #1445 : webconv/servo/PR_android, r=kmcallister
1. We've aimed to android 4.3 Jellybean devices like Galaxy 10.1 and Galaxy Nexus, etc. I think it could still support android 4.1
2. Needs android ndk r9(not r9b) and latest android sdk
3. Needs some device list update on sdk for apk build.
4. Currently we can not build android port on mac because compiler build problem like https://github.com/mozilla/rust/pull/10921. Hopefully I expect that it could be resolved at next rust upgrade.
2014-01-03 07:40:48 -08:00
Simon Sapin
447cc64a40 Remove some trailing whitespace 2014-01-03 15:11:17 +00:00
Simon Sapin
5372212161 Refactor FontStyle and really fix #193
* Using .connect(", ") just to use .split(",") later is silly.
Keep it a vector.
* The 'font-style' property can not be both italic and oblique.
Use an enum instead of two booleans.
2014-01-03 15:11:17 +00:00
bors-servo
da14203f91 auto merge of #1454 : deokjinkim/servo/font_style, r=jdm
Add oblique style to pattern to find proper font.
2014-01-03 06:52:30 -08:00
bors-servo
f4d7e7d339 auto merge of #1453 : SimonSapin/servo/dead-code, r=larsbergstrom
Turns out it wasn’t actually used anymore.
2014-01-03 06:31:34 -08:00
bors-servo
2fa4699274 auto merge of #1449 : zmike/servo/master, r=larsbergstrom
this fixes issue #522 (maybe?) by not cleaning/resetting submodules which are dirty. it does not block completion of configure.
2014-01-03 06:04:36 -08:00
Deokjin Kim
ddcbb3f038 Support oblique(font-style) for linux and android
Add oblique style to pattern to find proper font.
2014-01-03 21:06:55 +09:00
bors-servo
528d362d09 auto merge of #1446 : sammykim/servo/load_url, r=SimonSapin
1. We must remove trailing whitespace. It makes crash.
2014-01-03 02:25:38 -08:00
Simon Sapin
facac01524 Remove a dead function.
Turns out it wasn’t actually used anymore.
2014-01-03 10:13:08 +00:00
bors-servo
7203f78cb0 auto merge of #1451 : ksh8281/servo/fix_unit_of_clientrect, r=jdm
this pr fixes #1076
2014-01-03 01:46:37 -08:00