Commit Graph

5737 Commits

Author SHA1 Message Date
Robert O'Callahan
e113d1c408 Bug 880854. Part 2: Support reflows/frame reconstruction in print/print-preview documents by promoting them to frame reconstruction of the whole document. r=mats
--HG--
extra : rebase_source : e81c5cd0f9da7bbcd876669c4b9de46dac825a5d
2013-06-18 23:41:30 +12:00
L. David Baron
c37788e291 Bug 693496: Fix ABORT by being consistent that canonical form calc() values need not have a percent part. r=dholbert
The additional tests hit the ABORT without the patch and pass with the patch.
2013-06-18 14:31:21 -07:00
Matt Woodrow
ccb554f4cf Bug 876626 - Make CanAnimateProperty correclty respect the CanAnimate_AllowPartial flag. r=dzbarsky 2013-06-18 20:03:20 +12:00
Nicholas Cameron
a14102618a Bug 849399. Invalidate existing style rule if we start a transition. r=dbaron 2013-06-18 14:18:55 +12:00
L. David Baron
4cb93c7005 Bug 757554: Reject uses of reserved 'not', 'only', 'and', and 'or' as a media type. r=heycam 2013-06-17 14:26:08 -07:00
L. David Baron
d8bcb54fbd Bug 882573 patch 4: Make nsHTMLStyleSheet and nsHTMLCSSStyleSheet stop implementing nsIStyleSheet. r=heycam
Note that this removes the Reset method and the mURL and mDocument
members (and arguments to set them) from nsHTMLCSSStyleSheet.

On the other hand, from nsHTMLStyleSheet it only removes mURL (and
equivalent arguments), and nsHTMLStyleSheet keeps the SetOwningDocument
method that was previously part of nsIStyleSheet (but no longer virtual).
2013-06-13 22:34:37 -07:00
L. David Baron
f753ac02c0 Bug 882573 patch 3: Stop putting the presentational hint and style attribute style sheets in the style set's list of style sheets; put them only in the list of rule processors. r=heycam 2013-06-13 22:34:37 -07:00
L. David Baron
cf9ba9869a Bug 882573 patch 2: Add a separate DirtyRuleProcessors method to nsStyleSet, and use it from existing methods. r=heycam 2013-06-13 22:34:37 -07:00
Ehsan Akhgari
0bea732a0a Bug 882948 follow-up - Fix the typo that actually breaks the build (not my day...) 2013-06-13 21:40:44 -04:00
Ehsan Akhgari
fc5812ea0f Bug 882948 follow-up: Also implement the -moz-windows-theme: aero-lite media query 2013-06-13 20:47:19 -04:00
Ehsan Akhgari
73a8948502 Bug 882948 - Add widget level support for AeroLite for Winodws Server 2012/2013; r=roc 2013-06-13 18:41:26 -04:00
Andrew McCreight
0718a98afd Bug 829817 - Cycle collect nsCSSPageRule. r=dbaron 2013-06-13 15:13:13 -07:00
Ryan VanderMeulen
04e740d525 Backed out changesets a06a3cca82e8 and 711d46a1f67e (bug 849399) for frequent Android reftest-2 failures. 2013-06-12 15:23:23 -04:00
Andrew McCreight
765c2d3211 Bug 880862 - nsUserFontSet::Destroy() should clear mRules. r=jdaggett 2013-06-11 15:20:04 -07:00
Nicholas Cameron
d7ee0f5b5f Bug 880075. Move def of pts in one scope since it is no longer used in the if statement and add comment; r=dbaron 2013-06-12 17:43:17 +12:00
Nicholas Cameron
31c88825ca Bug 849399. Invalidate existing style rule if we start a transition. r=dbaron 2013-06-12 17:39:42 +12:00
Cameron McCormack
fd57717940 Bug 881339 - Fix bug with descendant selector matching with scoped styles. r=bz 2013-06-12 13:09:33 +10:00
Rick Eyre
0bdf09070f Bug 833382 - Implement WebVTTLoadListener r=cpearce,bz
- Implemented WebVTTLoadListener to manage the webvtt parser.
- TextTrackCue now handles the conversion of webvtt nodes to
  anonymous content which will be displayed on the video div
  overlay.
- HTMLTrackElement manages the lifetime of the WebVTTLoadListener.
2013-06-10 08:30:00 -07:00
Cameron McCormack
7fd2090cfd Bug 880150 - Treat \<EOF> as U+FFFD outside a string, and drop it inside a string. r=dbaron 2013-06-10 17:04:27 +10:00
Jon Coppeard
83c2b6e94b Bug 860573 - Part 2 - Use spare bits of wrapper cache flags for nsINode r=smaug 2013-06-08 09:54:59 +01:00
Michael Wu
834c271ce8 Bug 771551 - Add CSS Media Query for physical home buttons, r=heycam 2013-06-05 22:42:02 -04:00
David Zbarsky
8404e4076d Bug 788549 Part 12: Add tests for async transform transitions r=dbaron 2013-06-04 20:11:56 -07:00
David Zbarsky
25245287d8 Bug 788549 Part 11: Refactor test_transitions_per_property in prepartion for async tests r=dbaron 2013-06-04 20:11:56 -07:00
L. David Baron
92ae951214 Bug 879255: Refactor fix for bug 613888, step 4: consolidate conditions, and reindent (and fix bracing while doing so). r=nrc 2013-06-05 09:35:52 +09:00
L. David Baron
e44a65f4cd Bug 879255: Refactor fix for bug 613888, step 3: move no-change test earlier so that we don't have to clutter conditions between the new location and old with logic to fall through to it. r=nrc 2013-06-05 09:35:52 +09:00
L. David Baron
7770a26c1c Bug 879255: Refactor fix for bug 613888, step 2: consolidate oldPT variable. r=nrc 2013-06-05 09:35:52 +09:00
L. David Baron
4cdda0b980 Bug 879255: Refactor fix for bug 613888, step 1: create haveCurrentTransition variable. r=nrc 2013-06-05 09:35:52 +09:00
Jared Wein
cd9688938d Bug 879131 - Use prefix-less zoom-in and zoom-out CSS property values. r=ms2ger 2013-06-04 17:41:31 -04:00
Rick Eyre
1255871053 Bug 772321 - Implement CSS parsing of writing-mode r=dbaron 2013-05-28 12:00:49 -04:00
Michael Harrison
ec8a2ad3b6 Bug 772153 - Add support for unprefixed cursor:zoom-in/out. r=bz 2013-06-03 08:49:38 -04:00
Scott Johnson
72fa85e0c2 Bug 730559: Limit the number of columns during layout of column sets to prevent hang. [r=mats]
In nsRuleNode, when we parse a number of columns from a CSS style sheet, we enforce
a rule that the number of columns cannot exceed 1000. This patch simply enforces
the same rule when we decide that the column count will be generated based on
the available width (e.g. the column-count property has a value of 'auto').
2013-05-31 10:51:43 -05:00
David Zbarsky
2091ff11cc Bug 788549 Part 6: Remove a redundant if check r=dbaron 2013-05-30 17:45:17 -07:00
Simon Sapin
dd86ae8ef1 Bug 875287 - font-family: Do not require whitespace between unquoted idents. r=dbaron
When 'font-family' is secified with unquoted identifiers rather than a quoted string, a single space should be inserted between identifier tokens, even if they are separated by a comment rather than a whitespace token.
2013-05-30 08:10:02 -04:00
L. David Baron
1d8a7b6aa6 Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky
The code in nsHTMLStyleSheet implements LangRule to map xml:lang into
style and the code to manage its uniqueness.

The change to nsGenericHTMLElement fixes the mapping of the HTML lang
attribute to do cascading the way all other rule mapping does so that
the cascading works correctly.

The tests test that the correct style language is used for hyphenation
by copying over a set of hyphenation reftests that check its basic
response to languages.  There are no specific tests for font selection,
but font selection is known to use the same language data from style.

I verified manually (see other attachments to bug) that the rule
uniqueness is being managed correctly.

--HG--
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-1.xhtml
rename : layout/reftests/text/auto-hyphenation-10.html => layout/reftests/text/auto-hyphenation-xmllang-10.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-11a.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-11b.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-12a.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-12b.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-13a.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-13b.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-14a.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-14b.xhtml
rename : layout/reftests/text/auto-hyphenation-1a.html => layout/reftests/text/auto-hyphenation-xmllang-1a.xhtml
rename : layout/reftests/text/auto-hyphenation-2.html => layout/reftests/text/auto-hyphenation-xmllang-2.xhtml
rename : layout/reftests/text/auto-hyphenation-3.html => layout/reftests/text/auto-hyphenation-xmllang-3.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-4.xhtml
rename : layout/reftests/text/auto-hyphenation-5.html => layout/reftests/text/auto-hyphenation-xmllang-5.xhtml
rename : layout/reftests/text/auto-hyphenation-6.html => layout/reftests/text/auto-hyphenation-xmllang-6.xhtml
rename : layout/reftests/text/auto-hyphenation-7.html => layout/reftests/text/auto-hyphenation-xmllang-7.xhtml
rename : layout/reftests/text/auto-hyphenation-8.html => layout/reftests/text/auto-hyphenation-xmllang-8.xhtml
rename : layout/reftests/text/auto-hyphenation-9.html => layout/reftests/text/auto-hyphenation-xmllang-9.xhtml
2013-05-30 16:00:20 +08:00
David Zbarsky
43653e7af5 Bug 788549 Part 5: Add a function to get opacity and transform property values from layers r=roc 2013-05-29 17:38:27 -07:00
Boris Zbarsky
24bf00f4e7 Bug 876725. Make use of IDL default string values in CSSStyleDeclaration to simplify the code. r=smaug 2013-05-29 16:15:50 -04:00
Arnaud Sourioux
c6d0c9ac5d Bug 875367: Annotate ~280 more methods with MOZ_OVERRIDE in /layout. r=dholbert 2013-05-29 12:37:49 -07:00
Ralph Giles
210b188036 Bug 875305 - Replace slow webvtt caption selectors with classes. r=bz
We set the class caption-box class on the anonymous div which
acts as the parent container for the captions overlayed on
the video frame.

caption-text isn't currently used, but will be applied to
child elements by when bug 833382 lands.
2013-05-28 13:55:00 -07:00
L. David Baron
b5c2e54e41 Bug 815408: Ignore CSS transitions and animations in print and print preview. r=bzbarsky
Note that this patch has a little bit of a belt-and-braces aspect to it.
In each file, either one of the changes should be sufficient, but one of
them prevents us from doing unneeded work and the other one ensures that
we never apply style resulting from transitions and animations even if
somehow we do that work.

Also note that the tests don't actually test anything usefully, since
the reftest harness doesn't currently make the pres context non-dynamic.
(Thus they're marked as failing.)  I'm not sure what I should do about
that, though I'm considering just deleting the tests entirely.
2013-05-29 14:36:39 +08:00
L. David Baron
31b31e68d0 Bug 876570: Add missing UngetToken() call in an+b microsyntax parsing. r=bzbarsky 2013-05-29 14:36:39 +08:00
L. David Baron
919a798198 Additional tests for bug 750388. No review. 2013-05-28 12:12:06 +08:00
Thomasy
508bd028e5 Bug 750388: In an+b microsyntax in :nth-child() etc., allow starting with +n and allow comments at all token boundaries rather than requiring the strange tokens that result from lack of comments or spaces. r=dbaron 2013-05-28 12:12:06 +08:00
Mike Shal
5169c0a913 Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Jon Coppeard
a07d2309af Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz 2013-05-27 12:50:49 +01:00
Cameron McCormack
7ab546eefe Bug 876127 - Assert if we do not look at all style structs in nsStyleContext::CalcStyleDifference. r=dbaron 2013-05-27 16:48:19 +10:00
Jonathan Watt
e080509530 Bug 875037 - Fix lots of bugs in nsStyleSVG/nsSVGStyleReset::CalcDifference so that they return the correct hints. r=roc 2013-05-24 18:31:33 +01:00
Ehsan Akhgari
aa8d052ed3 Backed out changeset 831c1928fba9 (bug 875037) for mochitest-1 assertions on a CLOSED TREE 2013-05-24 16:03:03 -04:00
Jonathan Watt
7a225b3fd6 Bug 875037 - Fix lots of bugs in nsStyleSVG/nsSVGStyleReset::CalcDifference so that they return the correct hints. r=roc 2013-05-24 18:31:33 +01:00
Nicholas Cameron
483e4a5711 No bug - fix incorrect comment on nsStyleAnimation::UncomputeValue r=me 2013-05-24 22:19:28 +08:00
Daniel Holbert
45060ddc8d Bug 585185: Parse font-sizes as non-negative, in 'font' shorthand. r=dbaron 2013-05-24 09:39:03 +08:00