Commit Graph

2694 Commits

Author SHA1 Message Date
bzbarsky@mit.edu
073d7a78a6 Make computed style handle eStyleUnit_Chars. Bug 371043, r+sr=dbaron 2007-05-04 23:09:50 -07:00
bzbarsky@mit.edu
9cd2a580d0 Make computed style handle "normal" for line-height by computing an actualnumeric height. Bug 371041, r+sr=dbaron 2007-05-04 22:30:10 -07:00
dbaron@dbaron.org
b48962a233 Fix bad string comparison preventing 'none' and 'initial' values of 'counter-increment' and 'counter-reset' from being parsed correctly. b=379555 r+sr=dbaron Patch by Daniel Holbert <dholbert@mozilla.com>. 2007-05-03 17:05:16 -07:00
dbaron@dbaron.org
ace3611ec9 Add support for -moz-intrinsic, -moz-min-intrinsic, -moz-shrink-wrap, and -moz-fill for width, min-width, and max-width. b=311415 r+sr=bzbarsky 2007-05-03 16:11:00 -07:00
bzbarsky@mit.edu
663c96c764 When we have a url() value that doesn't give us an imgIRequest (e.g. couldn'tcreate nsIURI, URI load blocked by security manager, etc), make sure to stillpick up the fallback value for cursor. Bug 379440, r+sr=dbaron 2007-05-02 23:33:13 -07:00
bzbarsky@mit.edu
51671d60c6 Propagate a stylesheet's principal to the URI and Image CSSValues derived fromthat sheet. Bug 377091, r+sr=dbaron 2007-05-02 18:15:53 -07:00
bzbarsky@mit.edu
d3c244039d Fix assert to not fire when it shouldn't. Bug 379405, r+sr=dbaron 2007-05-01 19:25:50 -07:00
bzbarsky@mit.edu
086c2eb0c0 Introduce a GetPrimaryShell() API on nsIDocument. Convert existing callers ofGetShellAt(0) to using this API. Bug 378780. API introduction part by me,r+sr=jst. Mass-changes done by taras using squash, r+sr=me 2007-05-01 15:24:20 -07:00
bzbarsky@mit.edu
63aeadb19b Stylesheets should know what their principal is, and it should be based on theURI the sheet was loaded from, its certificate (if any) and the loaderprincipal, not just on the page the sheet is being applied to. Propagate thisprincipal as the loading principal to @import loads from stylesheets. Changesheet access checks to use this principal instead of the sheet URI. Bug221428, r+sr=peterv 2007-05-01 12:26:15 -07:00
bzbarsky@mit.edu
9717e53272 This test passes now. 2007-04-30 21:31:06 -07:00
bzbarsky@mit.edu
982141e191 Fixing parsing of opacity components of rgba() and hsla() that are out of the0 <= x <= 1 range. Bug 379316, r+sr=dbaron 2007-04-30 20:50:31 -07:00
joshmoz@gmail.com
02864fbc62 remove duplicate line of a CSS rule from forms.css. r/sr=dbaron 2007-04-30 18:51:47 -07:00
dbaron@dbaron.org
7983f1a9af Reduce #include dependencies on style system headers: reduce what nsRuleData.h pulls in. b=379089 r+sr=bzbarsky 2007-04-28 09:01:24 -07:00
bzbarsky@mit.edu
c51b87ebce Implement "content: none". Bug 378535, r+sr=dbaron 2007-04-26 21:43:06 -07:00
dbaron@dbaron.org
1550d44209 Add test for computed style on elements with frames as well. 2007-04-25 16:27:36 -07:00
benjamin@smedbergs.us
baab01ada6 Bug 376636 - Building with gcc 4.3 and -pendatic fails due to extra semicolons, patch by Art Haas <ahaas@airmail.net>, rs=me 2007-04-23 07:21:53 -07:00
bzbarsky@mit.edu
7e52b169fd min-width/height should not affect computed max-width or max-height. Both ofthem should affect computed width and height, though. Bug 371042, r+sr=dbaron 2007-04-23 00:04:33 -07:00
bzbarsky@mit.edu
b952d0f1fb Round instead of truncating when converting a percentage color into aninteger. Bug 340613, r+sr=dbaron 2007-04-22 15:03:30 -07:00
bzbarsky@mit.edu
e61bb22ff8 Move the Background struct to its new rightful place. Bug 378245, r+sr=dbaron 2007-04-20 22:40:13 -07:00
dbaron@dbaron.org
e9e8f3e38b Test copy constructors of nsStyleStruct. 2007-04-20 17:17:29 -07:00
dbaron@dbaron.org
b774028305 A bunch of one-liners to fix bugs found by CSS mochitests. b=377731 r+sr=bzbarsky 2007-04-20 17:16:52 -07:00
bzbarsky@mit.edu
75d0ec2b2f Stop blocking the parser on CSS stylesheet loads. We still block scriptexecution on them, however. Bug 84582, r+sr=sicking 2007-04-20 15:59:18 -07:00
bzbarsky@mit.edu
9375a2fa83 Don't use the same pseudo-element name to mean two different things. Bug377824, r+sr=dbaron 2007-04-20 14:27:02 -07:00
dbaron@dbaron.org
4343a26485 Fix setting of prereqs so it doesn't interfere with testing initial values properly. 2007-04-19 20:41:05 -07:00
dbaron@dbaron.org
d900b59311 Add tests for computed values. 2007-04-18 19:49:44 -07:00
dbaron@dbaron.org
028b212457 Fix regression of background-position serialization. b=258080 r+sr=bzbarsky 2007-04-18 13:41:14 -07:00
dbaron@dbaron.org
4336f5d51a Add comment explaining some of the test. 2007-04-17 11:57:35 -07:00
dbaron@dbaron.org
28f0026e63 Better express that failures in one of the system font cases depend on what the system fonts actually are. 2007-04-17 11:01:17 -07:00
dbaron@dbaron.org
ef8dec477f Add code to know which failures to expect in test_value_storage.html (whether to call todo_is or is), and turn on the test. 2007-04-17 10:06:23 -07:00
dbaron@dbaron.org
387c0c061c Fix values for -moz-box-sizing too. 2007-04-17 01:01:22 -07:00
dbaron@dbaron.org
df3603a369 Fix values for -moz-float-edge. 2007-04-17 00:56:33 -07:00
dbaron@dbaron.org
961e3a1e34 Work towards getting test_value_storage running. 2007-04-17 00:41:44 -07:00
dbaron@dbaron.org
15a42a08bb Work in progress on a test for value storage and serialization. 2007-04-16 21:45:49 -07:00
dbaron@dbaron.org
b865d6cfdb Add tests that exercise nsCSSDeclaration::ToString. 2007-04-16 20:50:30 -07:00
dbaron@dbaron.org
d51921f72b Finish up adding initial and other values sections to property database, and test for their presence. 2007-04-16 18:07:22 -07:00
bzbarsky@mit.edu
b82e527dc9 Change the way we determine the style context parent frame to skip css anonboxes unless we're determining the style context parent for something that isitself a css anon box (and is not a non-element frame). Fixes bug 323656(which is where the patch is), bug 85872, bug 280610. As far as I can tell,also fixes bug 317876, bug 372376, bug 374297. r+sr=dbaron 2007-04-15 16:14:26 -07:00
dbaron@dbaron.org
ba44c08179 Add tests for invalid values in the property database, and add cases fixed in bug 258080. 2007-04-15 15:29:35 -07:00
dbaron@dbaron.org
5138fbff1b Test for inherit and initial on shorthand properties as well. b=258080 2007-04-15 15:28:07 -07:00
dbaron@dbaron.org
bda8a4f932 Add work in progress for tests of CSS property parsing and data computation. 2007-04-15 15:27:14 -07:00
dbaron@dbaron.org
4ff6796341 Convert background-position to use nsCSSValuePair rather than acting like a shorthand property. b=258080 r+sr=bzbarsky 2007-04-15 15:25:20 -07:00
stuart.morgan@alumni.case.edu
5abddd2f11 Bug 377110: Strip unnecessary rules from Camino-only forms.css. r=josh sr=dbaron 2007-04-12 16:02:37 -07:00
martijn.martijn@gmail.com
f27a1f3aac Bug 377017 - Javascript - crash on accessing a css rule after deleteRule() [@ nsCSSSelector::ToStringInternal], r+sr=dbaron 2007-04-12 09:23:43 -07:00
martijn.martijn@gmail.com
050673a65d Bug 376891 - <center><marquee direction=up/down></center> has different result in IE, r=dbaron, sr=bzbarsky 2007-04-12 07:54:34 -07:00
axel@pike.org
37999fa74b bug 361583, start using Preprocessor.py instead of preprocessor.pl in building Minefield, r=bsmedberg 2007-04-11 09:35:01 -07:00
longsonr@gmail.com
37c4d4f137 Bug 368836 - improve support for initial in SVG. r+sr=dbaron 2007-04-11 01:27:27 -07:00
dbaron@dbaron.org
9c685f8824 Fix regression that caused the SVG properties not to be listed. b=375388 2007-04-09 15:42:43 -07:00
dbaron@dbaron.org
543be2506f Fix handling of initial and -moz-inherit for -moz-broken-image-icon, quotes, and -moz-box-ordinal-group. b=375363 r+sr=bzbarsky 2007-03-30 15:02:09 -07:00
bzbarsky@mit.edu
eeaa1a101b Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch byTaras Glek <tglek@mozilla.com>, rs=roc. 2007-03-30 14:11:41 -07:00
dbaron@dbaron.org
d98d9fdec5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
sharparrow1@yahoo.com
15eac4df7c Bug 372037: CSS clip property should clip the overflow rect as well as the paint rect; r+sr=roc. 2007-03-26 20:58:17 -07:00