159 Commits

Author SHA1 Message Date
dbaron%dbaron.org
53a15aec19 Fix serialization of currentColor for some properties. b=414550 r+sr=bzbarsky a=schrep
git-svn-id: svn://10.0.0.236/trunk@245249 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-08 19:51:41 +00:00
dwitte%stanford.edu
23104392b7 use nsAutoTArray for nsCSSDeclaration::mOrder. b=410357, r+sr=dbaron, a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@242846 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-10 20:13:24 +00:00
reed%reedloden.com
dda31ecdc2 Bug 105708 - "move nsUnitConversion.h" [p=reg@openpave.org (Jeremy Lea) r+sr+a1.9=roc]
git-svn-id: svn://10.0.0.236/trunk@242241 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-01 10:11:08 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dbaron%dbaron.org
2f24fe473a Implement -moz-border-start and -moz-border-end. Patch by Simon Montagu <smontagu@smontagu.org> and me. b=74880 r/sr=smontagu/dbaron
git-svn-id: svn://10.0.0.236/trunk@229329 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-04 18:51:40 +00:00
dbaron%dbaron.org
0d40d0c7e0 Rewrite handling of CSS system fonts to fix bugs in cascading and serialization. b=377947 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@227883 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 18:29:11 +00:00
dbaron%dbaron.org
4fd3c2d62f Fix some debugging code. b=380825 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226546 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 21:17:45 +00:00
dbaron%dbaron.org
fd2e86c15a Remove eCSSUnit_Proportional and eStyleUnit_Proportional, which were used only for a removed feature. b=333352 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226288 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-11 06:00:26 +00:00
mats.palmgren%bredband.net
70c947e6af Fix an assertion when setting a 'quotes' property value. b=379906 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@226107 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-08 06:00:37 +00:00
dbaron%dbaron.org
0d353ca4ab A bunch of one-liners to fix bugs found by CSS mochitests. b=377731 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@224819 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-21 00:16:52 +00:00
dbaron%dbaron.org
1337feb9b0 Convert background-position to use nsCSSValuePair rather than acting like a shorthand property. b=258080 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@224557 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-15 22:25:21 +00:00
dbaron%dbaron.org
7c4a569eb6 Fix handling of initial and -moz-inherit for -moz-broken-image-icon, quotes, and -moz-box-ordinal-group. b=375363 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@222660 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 22:02:10 +00:00
jruderman%hmc.edu
0010c3d6d2 Fix bug 373293, Style attribute is "transparent;" (missing property name). r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@221600 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 09:43:55 +00:00
dbaron%dbaron.org
535f44f6e4 Round the alpha component in computed style as well. b=372782 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@221563 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 18:44:45 +00:00
bzbarsky%mit.edu
42bd11798b Add test for bug 372770 and fix minor space issue with geting the "background"
property when background-position is not set.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@221372 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-06 06:59:39 +00:00
dbaron%dbaron.org
e71fb4c48e Don't forget the alpha component of colors, when needed. b=372770 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@221366 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-06 04:35:56 +00:00
dbaron%dbaron.org
40f5c57271 Make static some nsCSSDeclaration methods that don't need their this. b=336322 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@195856 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-02 23:36:17 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
dbaron%dbaron.org
a02fd2d2f8 File comments that show up in LXR and provide a quick summary of what's in each file.
git-svn-id: svn://10.0.0.236/trunk@192979 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 05:47:31 +00:00
timeless%mozdev.org
faf573a28d Bug 298277 remove useless references to nsVoidArray
r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@191016 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 10:30:59 +00:00
cbiesinger%web.de
90208b4cf2 bug 308409 convert ParseTextShadow to nsCSSValue::Array and nsCSSValueList
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@180642 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 12:04:45 +00:00
dbaron%dbaron.org
25b210b22c Implement css3 syntax for url() values of cursor with optional hotspot coordinates. b=286303 r=biesi sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@175468 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 04:29:42 +00:00
dbaron%dbaron.org
72020748e5 Implement CSS2 counters. b=3247 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171473 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-01 23:07:00 +00:00
mats.palmgren%bredband.net
d5dcb62486 Fix a few -moz-outline* problems and drop the prefix.
Change WARNING to ERROR in nsComputedDOMStyle.cpp and add a few more.
b=281972 r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@171246 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-27 11:36:08 +00:00
tor%cs.brown.edu
308eece6d8 Bug 238050 - implement SVG markers. r=scooter, moz common files sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@166471 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-09 03:16:15 +00:00
dbaron%dbaron.org
b587a8473e Fix DOM round-tripping of -moz-initial. b=219903 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@166253 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-04 22:10:07 +00:00
bzbarsky%mit.edu
76625d8613 Remove parsing of play-during property, since we don't support it anyway and
it's gone from CSS2.1 and CSS3.  Bug 258079, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@163043 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:32:28 +00:00
bzbarsky%mit.edu
0d5a66a19f Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@162051 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 03:52:48 +00:00
bzbarsky%mit.edu
f3fd99f0a7 Add nsCSSValuePair type and use it for storage of some properties. Bug 208729,
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@162049 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 03:26:58 +00:00
dbaron%dbaron.org
d788090231 Fix serialization of declaration blocks containing 'overflow' and the bugs that causes. b=258300 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161907 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-08 05:42:03 +00:00
dbaron%dbaron.org
d078282226 Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161772 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 00:04:04 +00:00
dbaron%dbaron.org
565357f6d2 Backout the CSS parts of bug 72747 to see if that fixes the Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161357 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 22:35:38 +00:00
dbaron%dbaron.org
ed6372cf2f Implement 'overflow-x' and 'overflow-y' CSS properties, long implemented by IE for Windows and proposed for CSS3. Implement scrolling='yes' and equivalents on frame and iframe. Various pieces of related cleanup (see comment 22 in bug). b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161333 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 17:11:20 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
gerv%gerv.net
98831918fc Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
bzbarsky%mit.edu
e7ad4f7000 Load background images from style instead of from painting. This makes us
start loading the background images when we resolve style on an object that
needs them instead of when we scroll down and see it for the first time.  Bug
57607, r=pavlov, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@153725 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-09 03:57:51 +00:00
dbaron%dbaron.org
2a3ff63e99 Fix bogus assertion. r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@153713 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-09 00:52:54 +00:00
dbaron%dbaron.org
60f1d41bd5 Improve serialization of new margin/padding properties (and fix CSS parsing errors). b=74880 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152320 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 00:19:19 +00:00
dbaron%dbaron.org
6b800e75e5 Implement -moz-margin-start, -moz-margin-end, -moz-padding-start, and -moz-padding-end and cascade them correctly. Use them in html.css to improve default styles for lists in RTL documents. b=74880 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152274 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 06:10:56 +00:00
bryner%brianryner.com
468d3e2e8d Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
bzbarsky%mit.edu
784c9898e4 Fix serialization of inherit/initial nsCSSRect values. Bug 225841, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@149390 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 02:06:38 +00:00
peter%propagandism.org
e6ae01a399 Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@148687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 10:57:41 +00:00
dbaron%dbaron.org
776f9f50ae Make play-during a true shorthand so it gets parsed correctly after the nsCSSDeclaration storage rewrite. b=223718 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148496 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:51:00 +00:00
dbaron%dbaron.org
1a2977b836 Store the original string for URL values so that composer and CSSOM do not make relative URLs absolute. b=167262 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148494 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:45:37 +00:00
dbaron%dbaron.org
37de3855c7 Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147501 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-01 22:53:56 +00:00
dbaron%dbaron.org
c39b29646d Remove remaining user of CSS-property-based style hints. b=158713 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144396 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-02 21:05:09 +00:00
dbaron%dbaron.org
bf4ec31727 Put more information on the CSS properties in nsCSSPropList.h.
Use the property list in the tables for nsRuleNode::CheckSpecifiedProperties.
To reduce heap usage, redesign the storage of properties and values in nsCSSDeclaration to allocate all property-value pairs in a declaration block in a single allocation, and use temporary structures (like the old permanent structures) during parsing and modification.  Replace per-property switch statements in nsCSSDeclaration with table-based code to reduce code size.
b=125246  r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@143421 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-07 22:14:42 +00:00
dbaron%dbaron.org
20478cc051 Split nsCSSDeclaration.h and .cpp into separate files for the structs (nsCSSStruct.h and .cpp) and nsCSSDeclaration. b=201681
git-svn-id: svn://10.0.0.236/trunk@141155 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 03:07:34 +00:00
bryner%netscape.com
0c66a2052e Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00