Commit graph

5112 commits

Author SHA1 Message Date
Tetsuharu OHZEKI
c78216f688 Fix warning in gfx: "variable does not need to be mutable" 2014-06-22 20:40:51 +09:00
Josh Matthews
f6294a67c5 Merge pull request #2693 from Ms2ger/fix-indentation
Clean up the indentation of generated code.
2014-06-22 13:04:32 +02:00
Ms2ger
0731045249 Remove some spurious newlines from the generated code. 2014-06-21 20:07:09 +02:00
Ms2ger
1a349369f1 Merge pull request #2692 from Martiusweb/style_is_in_doc
HTMLStyleElement only applies CSS in the document; r=Ms2ger
2014-06-21 19:38:31 +02:00
Josh Matthews
5067ebac2a Merge pull request #2683 from Ms2ger/nointerfaceobject
Fix the implementation of NoInterfaceObject.
2014-06-21 18:47:39 +02:00
Martin Richard
c2345e930d HTMLStyleElement only applies CSS in the document
HTMLStyleElement will not parse a style element created in Javascript until it
is attached to the DOM.

I added a reftest for the given cases:

  * a style element is defined in the HTML code,
  * a style element is created in Javascript, CSS content is added to the
    element and the element is later attached to the document,
  * a style element is created in Javascript, attached to the document and
    later CSS content is added to the element,
  * a style element is created in Javascript, CSS content is added to the
  * element but the element is never attached to the document.
2014-06-21 18:17:19 +02:00
Simon Sapin
1e263f9dec Merge pull request #2688 from schaars/noscript
Do not display noscript element
2014-06-21 15:08:49 +02:00
Lars Bergstrom
7df50ae089 Merge pull request #2682 from bjz/assorted-cleanups
Assorted cleanups in gfx and layout
2014-06-21 08:07:14 -05:00
Lars Bergstrom
6c150724f4 Merge pull request #2666 from mbrubeck/pinch
Separate "desktop" and "mobile" zoom calculations.
2014-06-21 08:06:26 -05:00
Lars Bergstrom
dffc396cae Merge pull request #2687 from pcwalton/parallel-render
Parallel render
2014-06-21 07:56:23 -05:00
Ms2ger
5fb475617b Move the responsibility for indenting code from CGAbstractMethod.definition_body to its caller. 2014-06-21 14:48:23 +02:00
Ms2ger
46b9343459 Use CGIndenter for CGRegisterProtos.definition_body. 2014-06-21 14:44:08 +02:00
Ms2ger
f3a8f74d3c Use CGIndenter for CGClassConstructHook.definition_body. 2014-06-21 14:38:58 +02:00
Ms2ger
31ab6415c9 Use CGIndenter for CGAbstractClassHook.definition_body. 2014-06-21 14:36:35 +02:00
Ms2ger
504efb66fb Indent the contents of obj_toString correctly. 2014-06-21 14:25:08 +02:00
Ms2ger
eb4213f613 Indent the contents of get. 2014-06-21 14:22:14 +02:00
Ms2ger
b5ca6d9a37 Indent the contents of hasOwn. 2014-06-21 14:19:31 +02:00
Ms2ger
cf556cbbd6 Indent the contents of defineProperty. 2014-06-21 14:14:49 +02:00
Ms2ger
8ef51158ff Indent the contents of getOwnPropertyDescriptor. 2014-06-21 14:10:14 +02:00
Ms2ger
df552fca5d Use CGIndenter for CGProxyUnwrap.definition_body. 2014-06-21 13:57:54 +02:00
Ms2ger
5affa73aa1 Use CGIndenter for CGSpecialized{Method, Getter, Setter}.definition_body. 2014-06-21 13:57:39 +02:00
Ms2ger
437c025e99 Stop indenting in CGMethodCall. 2014-06-21 13:48:55 +02:00
Ms2ger
fa7a0aae75 Use CGIndenter for CGDefineDOMInterfaceMethod.definition_body. 2014-06-21 13:41:38 +02:00
Ms2ger
b717fbe868 Use CGIndenter for CGGetPerInterfaceObject.definition_body. 2014-06-21 13:38:57 +02:00
Ms2ger
44a609d563 Use CGIndenter for CGWrapMethod.definition_body. 2014-06-21 13:37:18 +02:00
Ms2ger
644df404f5 Return a CGThing from CGAbstractMethod.definition_body. 2014-06-21 13:34:37 +02:00
Ms2ger
6cf79732f9 Move the responsibility for indentation to CGAbstractBindingMethod.definition_body from its callees. 2014-06-21 13:24:51 +02:00
Pierre Louis Aublin
e5c01c6613 adding test for noscript 2014-06-21 13:20:31 +02:00
Pierre Louis Aublin
2f5d617b2f do not display noscript element 2014-06-21 12:48:47 +02:00
Pierre Louis Aublin
f4bb2e3e3f recompile servo when modifying the user-agent style sheet 2014-06-21 12:48:09 +02:00
Ms2ger
ab711fcf0c Merge pull request #2631 from Manishearth/xhr-spaces
Fix field-value checking to not throw for lone spaces; r=jdm
2014-06-21 11:08:20 +02:00
Manish Goregaokar
7d029ae7b2 Fix field-value checking to not throw for lone spaces 2014-06-21 09:33:17 +05:30
Patrick Walton
e5276f06e3 gfx: Don't crash if there is no graphics metadata. 2014-06-20 17:14:08 -07:00
Patrick Walton
faaf1f9c5a Revert "Revert "Merge pull request #2609 from brson/parallel-render""
This reverts commit 3f8f065b76.
2014-06-20 17:14:03 -07:00
Matt Brubeck
4fef0d1c1c Separate "desktop" and "mobile" zoom calculations.
This ensures that the layout viewport responds to each type of zoom correctly,
and lays the ground for CSS Media Queries and CSS Device Adaption.

Until we have proper touch support, mobile-style "pinch" zoom can be simulated
by holding Ctrl while scrolling with a mousewheel or trackpad gesture.
2014-06-20 16:33:57 -07:00
Brian Anderson
afb6bf48e7 Merge pull request #2685 from larsbergstrom/revert_2609
Revert "Merge pull request #2609 from brson/parallel-render"
2014-06-20 15:55:46 -07:00
Lars Bergstrom
3f8f065b76 Revert "Merge pull request #2609 from brson/parallel-render"
This reverts commit 850bd2891d, reversing
changes made to 5b0feac32a.
2014-06-20 17:43:14 -05:00
Patrick Walton
850bd2891d Merge pull request #2609 from brson/parallel-render
Render in parallel
2014-06-20 11:44:12 -07:00
Patrick Walton
5b0feac32a Merge pull request #2667 from mrobinson/overflow
Add overflow to child layer size
2014-06-20 11:36:59 -07:00
Brendan Zabarauskas
e5cf89d4f3 Clean up skip_while iteration 2014-06-20 11:35:34 -07:00
Brendan Zabarauskas
762669b5c6 Use Option::expect instead of pattern matching in try_append_to_line_by_new_line 2014-06-20 10:50:40 -07:00
Ms2ger
93220523b0 Make AttrList NoInterfaceObject (fixes #1223). 2014-06-20 19:21:47 +02:00
Ms2ger
8df0f981fe Keep calling the DefineDOMInterface method for NoInterfaceObject interfaces.
DefineDOMInterface also creates the proxy handler for proxy classes, so it
should be called in this case as well.
2014-06-20 19:21:47 +02:00
Brendan Zabarauskas
344af248e7 Remove some unnecessary mutable references 2014-06-20 10:17:45 -07:00
Brendan Zabarauskas
520675b237 Make move mutation out of compute_minimum_ascent_and_descent 2014-06-20 10:06:50 -07:00
Brendan Zabarauskas
61216c301d Use Option functions to make logic clearer 2014-06-20 10:06:50 -07:00
Brendan Zabarauskas
a351710004 Use iterators to make some logic clearer 2014-06-20 10:06:50 -07:00
Ms2ger
5acbea5199 Pass the interface object-related arguments to CreateInterfaceObjects2 together in an Option.
This clarifies the code and fixes our support of NoInterfaceObject interfaces.
2014-06-20 18:47:31 +02:00
Ms2ger
f11e7ee0a9 Generate code for NoInterfaceObject interfaces in InterfaceTypes and InheritTypes.
There is no reason for those interfaces to be excluded.
2014-06-20 17:52:20 +02:00
Lars Bergstrom
1a8d1edf43 Merge pull request #2679 from larsbergstrom/IRC_notifications
Enable IRC notifications from Travis CI
2014-06-20 10:33:51 -05:00