Commit Graph

3433 Commits

Author SHA1 Message Date
Peter Van der Beken
ffbf9a7ae8 Fix for bug 499781 (Move some methods from nsILink to nsIContent). r=bz, sr=dbaron.
--HG--
extra : rebase_source : da0ec8bfb6825d2e55edd2f5b08a9e43b033a2a3
2009-07-13 13:48:06 +02:00
Boris Zbarsky
3421dd9616 Bug 498559 followup to clean up the code. r=dbaron 2009-07-09 20:36:57 -07:00
Boris Zbarsky
c0fb70dad7 Adding test for bug 498559. r=dbaron 2009-07-09 19:53:00 -07:00
Boris Zbarsky
8b4a6cb46a Bug 498559. Speed up tokenizing numbers in CSS. r+sr=dbaron 2009-07-09 18:44:20 -07:00
Boris Zbarsky
b5276441a8 Bug 498562. Skip the Expand/Compress cycle in the common case of inline style sets. r+sr=dbaron 2009-07-09 14:50:39 -07:00
Jeff Walden
1fb19be474 Bug 189519 - Implement CSS3 (-moz- for now)background-size. r=dbaron, other useful review comments from roc/bz 2009-05-28 11:09:05 -07:00
Timothy Nikkel
8f1f1d1fd5 Bug 488242. Make iframes with semi-transparent backgrounds work correctly by painting all canvas background colors using a dedicated fallback background color display item. r+sr=roc 2009-07-04 21:30:59 +12:00
Robert O'Callahan
fb3a1a19b2 Bug 495385. Text frames adjacent to block boundaries that contain only collapsible whitespace cannot affect layout, so don't create them. r+sr=bzbarsky
--HG--
extra : rebase_source : 2cd0b9d4bdfb47d8757efe0ca9983cbbcfca423c
2009-06-13 21:16:34 +12:00
Nochum Sossonko
e6276b0c40 Bug 333808 - safe mode should disable userContent.css and userChrome.css. r=bsmedberg, sr=bz 2009-06-22 13:34:41 +02:00
Boris Zbarsky
f0ebc1afd4 Bug 495798. Drop native theming for controls styled with transparent backgrounds, even if the user said to not use the page colors. r+sr=dbaron 2009-06-16 15:05:12 -07:00
L. David Baron
44a6267b1d Remove support for fallback background colors. (Bug 496721) r+sr=bzbarsky 2009-06-16 08:00:20 -07:00
Arpad Borsos
9c8455122d Back out b8e531a6c961 (Bug 474369), it really did cause the windows dhtml regression
--HG--
extra : rebase_source : 568114bcfc5a7710d9e2c2fe5e234fa190bebba1
2009-06-16 14:38:51 +02:00
Arpad Borsos
21896afffc Bug 474369 - get rid of nsVoidArray, remaining parts; r=bz, sr=dbaron 2009-05-07 17:15:26 +02:00
Michael Ventnor
5b324ecb50 Bug 496454. Introduce menubar text system color, and use it with GTK. r=roc
--HG--
extra : rebase_source : d79b39d1bfdecbc75785ab49add6ade07ff8c822
2009-06-15 09:58:14 +12:00
Robert O'Callahan
ba91e5bc8a Backed out changeset 69c6dbdfd179 2009-06-14 00:18:06 +12:00
Robert O'Callahan
b9b2bd7a9a Bug 495385. Text frames adjacent to block boundaries that contain only collapsible whitespace cannot affect layout, so don't create them. r+sr=bzbarsky
--HG--
extra : rebase_source : 544ae2157803cf075a50d2a451c6179525ebbc36
2009-06-13 21:16:34 +12:00
Arpad Borsos
118ee75268 Back out bug 474369, suspected of causing dhtml and tp3 regression 2009-06-12 23:20:55 +02:00
Arpad Borsos
990fceee6e Bug 474369 - get rid of nsVoidArray, remaining parts; r=bz, sr=dbaron
--HG--
extra : rebase_source : 2f40cba97555521222512c7cd793c2a2adcca333
2009-05-07 17:15:26 +02:00
Neil Rashbrook
89ef57a324 Bug 458231 Frame overflow plays havoc with size of <label> or <description> r+sr=roc r=dao for backout of workaround for bug 69710 2009-06-12 08:33:51 +01:00
Daniel.S
9b6f4215a5 Bug 436046 - "display != none should not apply to input[type=hidden]". r+sr=bzbarsky 2009-06-11 10:35:41 -04:00
Henri Sivonen
82e13c145b Bug 468708 - namespaceURI for HTML elements should be http://www.w3.org/1999/xhtml (also make localName return in lower case) r=sicking, sr=peterv, a=beltzner 2009-06-09 10:41:19 +03:00
Boris Zbarsky
d7eadbce0c Bug 495269 followup. Rev the iid of nsICSSRule. 2009-06-01 14:55:28 -04:00
Boris Zbarsky
e68338a4f8 Bug 495274. Fix broken selector cloning. r+sr=dbaron 2009-05-28 20:41:27 -04:00
Boris Zbarsky
d2c3684946 Bug 495269. Fix our detection of @import rules when cloning sheets. r+sr=dbaron 2009-05-28 18:16:31 -04:00
Boris Zbarsky
7a86e57c99 Bug 493968. Correctly keep track of all the kids of a cloned sheet, not just the last one. r=roc, r+sr=dbaron pending. 2009-05-26 15:40:49 -04:00
Dave Townsend
dd2848c629 Backed out changeset 461d728271d1 2009-05-19 13:51:18 +01:00
Arpad Borsos
6a70c37113 Bug 474369 - get rid of nsVoidArray, remaining parts; r=bz, sr=dbaron 2009-05-07 17:15:26 +02:00
Karl Tomlinson
3bbadcfb42 b=481751 block-height line-height for text input and strut baseline for textarea r=bz,sr=dbaron
--HG--
extra : rebase_source : 1241360066ea9387d15c71936da9468399240640
2009-05-19 10:13:12 +12:00
L. David Baron
1ca9090e28 Add test for CSS parsing of garbage at end of declarations. (Bug 390260) 2009-05-15 16:01:19 -07:00
Arpad Borsos
8936cb9475 Bug 492531 - Optimize some CSS and Reflow classes for memory usage; r+sr=dbaron 2009-05-13 10:26:48 +02:00
Robert O'Callahan
a0ba954e0f Bug 488901. When an element's size changes and it has borders, we don't necessarily need to invalidate the entire border-box --- if there is no right or bottom border, and other conditions are met. r+sr=dbaron
--HG--
extra : rebase_source : 24306ec844dab873cc9b580f32a383f0ccb769a5
2009-05-08 13:52:22 +12:00
L. David Baron
f0c43ecb3d Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
L. David Baron
a45c6ad770 Drop use of JS 1.7 features so that this test can run on other browsers. 2009-05-06 13:46:01 -07:00
Daniel.S
8c314c3895 Add test for bug 317561. 2009-04-23 10:17:40 -04:00
Daniel.S
03350b975d Bug 487942 - Remove cursor: -moz-alias | -moz-cell | -moz-context-menu | -moz-copy | -moz-spinning; property_database.js update; r+sr=dbaron 2009-04-22 14:24:34 +02:00
Daniel.S
3e1433822b Bug 487942 - Remove cursor: -moz-alias | -moz-cell | -moz-context-menu | -moz-copy | -moz-spinning; remove: -moz-cell alias; r+sr=dbaron 2009-04-22 14:24:32 +02:00
timeless@mozdev.org
3d4a36cc9d Bug 487188 - PRExpectEndValue is a typo for PEExpectEndValue. r=dbaron 2009-04-17 16:47:45 +02:00
Boris Zbarsky
8bf2ecbda6 Bug 485012 followup. Rev the iid of nsICSSLoader. r+sr=peterv 2009-04-10 10:32:44 -04:00
Boris Zbarsky
973f44492a Bug 485012. Allow passing a charset hint (e.g. the element's 'charset' attribute for preloads) to nsICSSLoader::LoadSheet. r+sr=peterv 2009-04-10 10:29:08 -04:00
Dão Gottwald
65b5d09e58 Bug 487059 - clearUserPref shouldn't throw if a pref doesn't have a default or user value. r+sr=bsedberg 2009-04-10 10:24:24 +02:00
Alfred Kayser
0b65e3df81 Bug 483971 - nsCSSScanner: cleanup of EatWhiteSpace and removal of EatNewline. r+sr=dbaron 2009-04-09 08:46:26 +02:00
Boris Zbarsky
8dda2f0044 Backed out changeset 3c687f3d4ff4 (bug 482971) on suspicion of causing intermittent leak orange. 2009-04-09 11:58:40 -04:00
Alfred Kayser
26e3e8ca65 Bug 483971 - nsCSSScanner: cleanup of EatWhiteSpace and removal of EatNewline. r+sr=dbaron 2009-04-09 08:46:26 +02:00
L. David Baron
437c4c67f4 Remove nsCSSOMFactory/nsICSSOMFactory. (Bug 376111) r+sr=bzbarsky 2009-04-08 13:52:37 -07:00
Robert Longson
84203c61ee Bug 423756 - Support image-rendering attribute for html images and css backgrounds. r=joe,vlad sr=roc 2009-04-05 10:52:14 +01:00
Zack Weinberg
c6a14e6a14 Bug 475535 - don't go through PaintBackgroundWithSC to draw non-native radio buttons and checkboxes; remove special UA pseudo-elements for styling these. r+sr=roc 2009-04-03 10:45:17 +02:00
L. David Baron
5e6525f89c Use a valid value for storing in a bitfield as the style struct ID for backend-only properties. (Bug 469244) r+sr=bzbarsky 2009-04-02 07:55:50 -07:00
L. David Baron
a25f1d4819 Remove the CSS_PROP_NOTIMPLEMENTED macro, which hasn't been needed since bug 3247 landed. (Bug 486353) r+sr=bzbarsky 2009-04-02 07:55:50 -07:00
L. David Baron
57a6fca348 Remove unneeded code for handling nulls in compressed blocks. (Bug 486415) r+sr=bzbarsky 2009-04-02 07:55:50 -07:00
Dão Gottwald
3f7e05fa09 Backed out changeset cc4fae01938c 2009-04-02 12:03:52 +02:00
Zack Weinberg
0647a435a8 Bug 475535 - don't go through PaintBackgroundWithSC to draw non-native radio buttons and checkboxes; remove special UA pseudo-elements for styling these. r+sr=roc 2009-04-02 09:57:13 +02:00
Jeremy D. Lea
0e51628bd3 Bug 431634 - Part 1 - clean up header pollution; r+sr=roc 2009-04-01 13:59:02 -08:00
Robert O'Callahan
118b44eb19 Bug 476062. Instead of turning off -moz-appearance when an element has a box-shadow, just ignore the box-shadow. r+sr=dbaron
--HG--
extra : rebase_source : 68e79ec44afd089b93870a5d87ea549d5f04b9d6
2009-04-01 14:07:18 +13:00
L. David Baron
0b2493d9d1 Don't mess with the max_script_run_time pref since the mochitest harness now does that for us. 2009-03-31 12:37:40 -07:00
L. David Baron
4d52ad29cb Use SimpleTest.executeSoon instead of setTimeout for iteration of properties/descriptors. 2009-03-31 12:37:40 -07:00
L. David Baron
70391080d0 Add some tests for invalid values of 'font-family' (related to bug 481502) 2009-03-31 12:37:40 -07:00
Boris Zbarsky
0181f90e3d Bug 486044. Make sure to pass the right principal to CreateSheet even in the non-document sheet case. r+sr=sicking 2009-03-31 15:04:01 -04:00
Boris Zbarsky
2c0514ea69 Bug 457809 preliminary. Fix this test so it doesn't fail when we preload the sheet. r+sr=dbaron 2009-03-30 11:25:35 -04:00
Robert Longson
fb4afd4ad6 Bug 484150 - support image-rendering attribute. Includes some gfx code by vlad from bug 423756 which is r=joe. The rest is r=dbaron, sr=roc 2009-03-21 15:36:38 +00:00
Robert O'Callahan
6e750e8b5c Bug 476062. Author-applied 'box-shadow' should cause elements to drop their native look. r+sr=dbaron
--HG--
extra : rebase_source : 6f5dfac238eb19be1b38cdd612e5dda8ac457e57
2009-03-18 13:32:08 +13:00
Boris Zbarsky
9d28a2337d Bug 416942. Give user and ua sheets the system principal. r+sr=sicking 2009-03-16 21:38:36 -04:00
Zack Weinberg
a13afe8ba0 Bug 480582 - contenteditable=true breaks mouse pointer hover style for unrelated image links. r+sr=peterv 2009-03-16 12:55:03 +01:00
Boris Zbarsky
35c251622a Bug 480065. Make chrome registry not mess with inline stylesheets. r=bsmedberg, sr=dbaron 2009-03-10 09:52:23 -04:00
Boris Zbarsky
8b2e29fc7f Bug 482394. Drop the aForStyling check in IsHTMLLink/IsLink: if we change the link state, we need to start tracking the link. r+sr=dbaron 2009-03-10 09:51:34 -04:00
L. David Baron
9daedec977 Add tests to check case (2) for shorthands in nsCSSDeclaration::GetValue. 2009-03-09 16:14:34 -07:00
L. David Baron
d345c6173e Add some simple tests for units (since code coverage output showed we weren't testing serialization of all of them). 2009-03-09 16:14:34 -07:00
L. David Baron
81be042f5b Add tests for font descriptors that are equivalent to test_value_storage and test_property_syntax_errors. 2009-03-09 16:14:34 -07:00
L. David Baron
75cee288ca Avoid crashing on fontFaceRule.style.getPropertyValue('font-family') when there's no font-family descriptor. (Bug 482148) r=zweinberg 2009-03-09 16:14:34 -07:00
L. David Baron
bc2f3dd312 Remove internal support for units that were never in CSS (feet, miles, meters, kilometers, didots, ciceros). (Bug 482146) r+sr=bzbarsky 2009-03-09 16:14:34 -07:00
L. David Baron
51a32c002e Reject non-positive values for widows and orphans. (Bug 481826) r+sr=bzbarsky 2009-03-09 16:14:34 -07:00
L. David Baron
b2caba1b9e Rename ParsePositiveVariant to ParseNonNegativeVariant. (Bug 481826) r+sr=bzbarsky 2009-03-09 16:14:34 -07:00
L. David Baron
fd19187387 Fix serialization bugs with text-decoration:-moz-anchor-decoration. (Bug 481596) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
a9baf2d0c2 Remove unreachable code, since text-decoration:none is not stored as an enumerated value. (Bug 481595) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
73dcd3c824 Test more values for 'content' property. (These tests require the three previous patches to pass.) (Bug 481591) 2009-03-06 13:05:01 +09:00
L. David Baron
83643d3790 Fix serialization of the list-style-type part of counter values. (Bug 481591) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
7d5c8d1dac Append the list-style-type part of counters correctly in computed style. (Bug 481591) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
aafe2d425d Split eCSSUnit_String into eCSSUnit_String (with quotes), eCSSUnit_Ident (without quotes), and eCSSUnit_Families (font family list, but not for @font-face descriptor where the single family is stored as eCSSUnit_String). (Bug 481591) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
9ac278dfa7 nsCSSDeclaration::ValueAppended is never called on shorthands, so it doesn't need code to handle them. (Bug 481594) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
8bdcbd0b8d Quote and escape contents of url() when serializing. (Bug 478160) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
79a32cbc5a Change nsStyleUtil::EscapeCSSString to nsStyleUtil::AppendEscapedCSSString, since almost all callers prefer append behavior anyway. (Bug 478160) r+sr=bzbarsky 2009-03-06 13:05:00 +09:00
L. David Baron
0cc4e4c87a Add test for CSS property priority (!important) preservation. (This fixes the fact that we don't have any tests covering expansion of compressed blocks with !important declarations, and also tests a bit more while I'm there.) 2009-03-05 12:49:30 +09:00
L. David Baron
ede3e32e8c Add test for blocking of -moz-border-*-colors based on code coverage output. 2009-03-05 12:49:30 +09:00
L. David Baron
28ca0dce9d I don't need to see the rule hash debugging output anymore. 2009-02-24 16:14:46 -08:00
L. David Baron
7eef68c85e Fix outparam static analysis warnings in nsComputedDOMStyle by actually assigning to the outparam. (Bug 479433) r+sr=bzbarsky 2009-02-24 16:14:46 -08:00
L. David Baron
bc6a61c62b Flush layout earlier in getComputedStyle(). (Bug 454276) r+sr=bzbarsky 2009-02-24 16:14:45 -08:00
L. David Baron
879297a1ef Call SetPropertyBit(background_color) when we set data for that property, on the off chance it will fix the intermittent layout/reftests/bugs/289480.html orange. (Bug 322475) 2009-02-20 10:50:25 -08:00
L. David Baron
3a120c56d3 Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 21:29:21 -08:00
L. David Baron
dd5c5ff2c8 Fix another case where we incorrectly serialize an -x-system-font property. (Bug 478156) r+sr=bzbarsky 2009-02-19 13:55:48 -08:00
L. David Baron
ae2dbb9ba2 Stop using potentially-deep recursion to serialize selectors. (Bug 475215) r+sr=bzbarsky 2009-02-19 13:55:48 -08:00
L. David Baron
90d773d82a Add tests for code I'm going to change, and fix crash when running those tests. (Bug 475215) r+sr=bzbarsky 2009-02-19 13:55:48 -08:00
L. David Baron
da21efddd5 Backed out changeset fde0b361f25e (bug 322475, main patch) due to Mac talos startup failures and hitting the NS_ABORT_IF_FALSE in SetupBackgroundClip, which may be related. 2009-02-19 13:51:46 -08:00
L. David Baron
bd25838a7a Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 12:33:09 -08:00
L. David Baron
c936720f0a Back out all 8 changesets that I just landed (bugs 477959, 477961, 322475, 478899, 475215, 478156) again, because Talos Try server builds lie about which changesets they're testing. 2009-02-19 09:06:18 -08:00
L. David Baron
cfafb11092 Fix another case where we incorrectly serialize an -x-system-font property. (Bug 478156) r+sr=bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
0d5c6ceac3 Stop using potentially-deep recursion to serialize selectors. (Bug 475215) r+sr=bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
58d5d187d9 Add tests for code I'm going to change, and fix crash when running those tests. (Bug 475215) r+sr=bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
11e12c4425 Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
3d090560b0 Revert (back out) the previous 11 changesets (bugs 477959, 477961, 477963, 477962, 322475, 478899, 475215, 478156), due to Mac talos orange with (as usual) no useful diagnostic. 2009-02-18 18:59:47 -08:00
L. David Baron
f2a2b26e4e Remove MOZ_COUNT_CTOR/MOZ_COUNT_DTOR from nsStyleBackground::Layer because the copy constructor is now used. (Bug 322475) 2009-02-18 18:04:03 -08:00
L. David Baron
4c11532d4e Fix another case where we incorrectly serialize an -x-system-font property. (Bug 478156) r+sr=bzbarsky 2009-02-18 17:13:26 -08:00