Commit Graph

594 Commits

Author SHA1 Message Date
Robert O'Callahan
7c7e1bfe9e Bug 462593. Cancel all outstanding font loads when the presshell is torn down. r=jdaggett 2009-01-19 22:21:29 +13:00
Robert O'Callahan
00e57b8380 Backed out changeset 9246fefef1cc 2009-01-17 23:58:34 +13:00
Robert Longson
4a4ce9e387 Bug 472135. Avoid re-getting the target marker frame in nsSVGMarkerProperty::DoUpdate --- that leads to infinite loops. Update things lazily instead via fake style changes. r+sr=roc
--HG--
extra : rebase_source : f90519e06842d6301e3a27eddb0cddd300b62db2
2009-01-16 21:20:29 +13:00
Michael Ventnor
0ec63aa6ad Bug 472772. Introduce a separate combobox-text color because some GTK themes need it. r+sr=roc
--HG--
extra : rebase_source : 6e53173e0443d70b36ccbb9e90b60d573ed595d6
2009-01-16 21:18:49 +13:00
L. David Baron
ba1c5c080f Avoid building user font set when handling units involving font metrics in media query expressions. (Bug 473892) r+sr=bzbarsky 2009-01-16 19:44:21 -08:00
L. David Baron
7713595032 Avoid recursion when handling mNegations in CalcWeight. (Bug 473908) r+sr=bzbarsky 2009-01-16 19:44:21 -08:00
L. David Baron
302859c42e Avoid recursion after parsing CSS comments. (Bug 473914) r+sr=bzbarsky 2009-01-16 19:44:21 -08:00
L. David Baron
a7223a0c21 Remove handling of comments inside CSS url() tokens. (Bug 473914) r+sr=bzbarsky 2009-01-16 19:44:20 -08:00
Zack Weinberg
558eb1c7dd Bug 473720: don't treat a parse error in a known CSS @-rule as an unknown @-rule r+sr=dbaron 2009-01-16 19:44:20 -08:00
Jeff Walden
7ce2e97cd7 Bug 473911 - Crash due to too much recursion in nsCSSDocumentRule::URL::~URL. r+sr=dbaron 2009-01-16 15:33:57 -08:00
L. David Baron
ae2d624d95 Add assertions to EndReconstruct that all style contexts have been reresolved. (Bug 473871) r+sr=bzbarsky 2009-01-16 13:32:09 -08:00
L. David Baron
bb123815cb Put nsIDOMNSCSS2Properties in its own file to reduce risk of bumping the IID of the wrong interface. (Bug 473418) r+sr=jst
--HG--
rename : dom/public/idl/css/nsIDOMCSS2Properties.idl => dom/public/idl/css/nsIDOMNSCSS2Properties.idl
2009-01-16 13:32:09 -08:00
L. David Baron
286c54a127 Recheck media queries when changing text zoom since em units have changed. (Bug 473400) r+sr=bzbarsky 2009-01-16 13:32:08 -08:00
Neil Rashbrook
c9b780ffc5 Bug 473933 Fix crash exposed by regression from bug 441359 r+sr=sicking 2009-01-16 20:52:04 +00:00
Dave Camp
c12a3b0506 Bug 441359: Check script and css loads against the classifier. r+sr=jonas 2009-01-13 23:13:48 -08:00
Dave Camp
b18d454609 Backed out changeset 44890ee1d15f for leaks 2009-01-13 02:22:59 -08:00
Dave Camp
ca7e07e266 Bug 441359: Check script and css loads against the classifier. r+sr=jonas 2009-01-12 21:52:00 -08:00
Benjamin Smedberg
24e7cb1f78 Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

nsITextControlFrame didn't have an IID the first time around, but this wasn't a compile error because nsITextControlFrame::kFrameIID inherited from nsIFormControlFrame::kFrameIID. I've added a static analysis pass to verify the correct behavior, since I can't figure out a way to make the compiler do it.

--HG--
extra : rebase_source : 4894a2ca0278e2ab92f27459db77165f8348cf41
2009-01-12 14:20:59 -05:00
Benjamin Smedberg
50621e4f9f Backed out changeset 4c4df6ed1b41 - Bug 396185 - Make nsIFrame not inherit from nsISupports due to mochitest failures... these appear to be crashes in nsGenericHTMLElement::GetEditorInternal. 2009-01-09 11:35:24 -05:00
Benjamin Smedberg
d0b948876f Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

This patch locally causes two REFTEST-UNEXPECTED-PASS for Bidi stuff. It's possible that I accidentally fixed a bug, but I'm not sure, so I'm going to wait for the tinderboxes to confirm my local results.
2008-11-05 14:25:30 -05:00
John Daggett
a984a545e8 change crashtest for 472237 to use local font 2009-01-08 17:36:24 +09:00
John Daggett
6e4652a0a0 Bug 472237 - check for null user font set before using. r+sr=dbaron 2009-01-07 13:45:41 +09:00
Boris Zbarsky
0e1f66b41d merge backout of bug 437366. 2009-01-05 17:05:03 -05:00
Boris Zbarsky
a9607d9d3b Backed out changeset f87b46d44d22 (bug 437366) 2009-01-05 17:04:28 -05:00
Olli Pettay
d30fae3581 Bug 457862 - onresize events should fire at every resize while resizing the window, r+sr=dbaron 2009-01-05 18:26:59 +02:00
Dave Camp
d4f7aed7eb Backed out changeset e31d0d3c28fd (bug 441359) 2009-01-05 01:27:51 -08:00
Dave Camp
c3150e042c Bug 441359: Run scripts/css through the classifier. r+sr=sicking 2009-01-04 23:40:29 -08:00
Dão Gottwald
98ef582b97 Bug 471923 - kill tab-left-edge and tab-right-edge -moz-appearance values. r+sr=roc 2009-01-04 15:01:48 +01:00
L. David Baron
d11612b0aa Distinguish clip:rect(auto,auto,auto,auto) from clip:auto as the spec requires. (Bug 372063) r+sr=bzbarsky 2008-12-29 10:07:38 -05:00
L. David Baron
805646bab5 Reject 0 as a value for -moz-column-count. (Bug 471341) r+sr=bzbarsky 2008-12-29 10:07:38 -05:00
L. David Baron
eed7111013 Fix handling of 'orienation' feature in print-preview. (Bug 468645) r+sr=bzbarsky 2008-12-29 10:07:36 -05:00
L. David Baron
2424598a74 Prevent posting media query changed events during construction. (Bug 468645) r+sr=bzbarsky 2008-12-29 10:07:36 -05:00
L. David Baron
020fe687d6 Expect percentages to be unsupported for -moz-column-width. I'm not sure why I made it as it is, since they were never supported in either our implementation or the spec. 2008-12-29 10:07:36 -05:00
Daniel.S
22c17349ea Adding crashtest 2008-12-28 12:14:28 -08:00
Boris Zbarsky
650f225952 Bug 437366. Make sure to not paint black-on-black in dark high-contrast themes when 'Allow pages to use their own colors' is unchecked and the page tries styling a form control. r+sr=dbaron 2008-12-28 12:07:58 -08:00
L. David Baron
8458c5b6b6 Make 'word-spacing: normal' just compute to '0', since that's what CSS 2.1 says to do, and thus change nsStyleText::mWordSpacing from nsStyleCoord to nscoord. (Bug 470705) r+sr=roc 2008-12-27 20:58:14 -05:00
L. David Baron
d67ed87895 Better handling of overflowing integer values. (Bug 440230) r+sr=roc 2008-12-27 20:58:14 -05:00
L. David Baron
6958d78491 Readd test for computed style for large integers (even though patch was backed out). (Bug 470769) r+sr=bzbarsky 2008-12-23 09:06:59 -05:00
L. David Baron
e8b56749f3 Backed out changeset 441f119f1a0c (Bug 470769) due to failures in layout/style/test/test_bug365932.html 2008-12-23 11:11:51 -05:00
L. David Baron
1362acfc3f Fix computed style for large integers by using double instead of float. (Bug 470769) r+sr=bzbarsky 2008-12-23 09:06:59 -05:00
L. David Baron
e32d92f667 Enforce the restriction that values of stroke-miterlimit are greater than 1, rather than just using ParsePositiveVariant. (Bug 470706) r=jwatt sr=bzbarsky 2008-12-23 09:06:58 -05:00
L. David Baron
22b6db3f79 Reject duplicate keywords for 'text-decoration'. (Bug 470704) r+sr=bzbarsky 2008-12-23 09:06:58 -05:00
L. David Baron
4dabb0d03e Disallow negative values on -moz-box-ordinal-group, since it's stored in an unsigned integer and clearly intended to be only positive. (Bug 470703) r=enndeakin sr=bzbarsky 2008-12-23 09:06:58 -05:00
L. David Baron
81919802f0 Rewrite the shorthand condensation code in nsCSSDeclaration::ToString. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00
L. David Baron
8d30a03f05 Don't say that the font or background shorthands are present when the properties that they reset but can't otherwise specify are not their initial values. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00
L. David Baron
5eb3c08c33 Condense box property four side shorthands in value getters, just as in serialization. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00
L. David Baron
fd19b3e628 Suppress serialization of -moz-use-text-color in border shorthand in property getters just like we do in declaration serialization. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00
L. David Baron
72e8b9505a Check consistency before returning 'border' shorthand. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00
L. David Baron
83e1e59019 Remove comment that should have been removed in bug 160403. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:56 -05:00
L. David Baron
8e85e47bd1 Make the Windows widget code report 24-bit color depth when the display driver reports 32, since it's the same number of bits per pixel. (Bug 466669) r=vlad 2008-12-23 09:06:56 -05:00