Commit Graph

1170 Commits

Author SHA1 Message Date
Zack Weinberg
bd2acbcf31 Bug 508466 part 2: In a CSS selector group, use distinct mOperator codes for the descendant combinator (' ') and the end of the chain ('\0'). r=dbaron 2010-03-31 11:08:09 -07:00
Zack Weinberg
8ad7ae46d4 Bug 508466 part 1: Refactor nsCSSParser::ParseSelector and nsCSSParser::ParseSelectorGroup for clarity. r=dbaron 2010-03-31 11:08:08 -07:00
Craig Topper
c3fc5fa456 Bug 554253 - Convert nsCOMPtr<nsPresContext> to nsRefPtr<nsPresContext>. r=roc
--HG--
extra : rebase_source : d828daca07188864d055f3d1a72f5217632eb358
2010-03-25 14:17:11 +01:00
Markus Stange
b5b991d41d Bug 554061 - Also check XBL stylesheets when determining whether a restyle is necessary when document state changes. r=dbaron 2010-03-25 10:22:58 +01:00
Neil Deakin
613aeb8685 Bug 553760, two resizers appear in textarea, hide the one for the placeholder scrollframe, r=dbaron 2010-03-23 13:14:47 -04:00
Daniel Glazman
15d5eeac70 :not() selector with no argument should be a parse error. (Bug 553805) r=dbaron
--HG--
extra : transplant_source : J%23a%3C%1EQ%13%F5%DBx%8E%83%A8%09%3A%E1%93t%AF%D2
2010-03-21 15:25:18 -04:00
Markus Stange
5fb3e948bb Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst 2010-03-17 18:10:57 +01:00
Neil Deakin
79c932638a Bug 442228, support resizers in scrollable areas and enable them by default for textareas, r=roc,sr=dbaron 2010-03-19 07:49:34 -04:00
Neil Deakin
4f0034acef Bug 442228, add -moz-resize property to indicate that elements are resizable, r=dbaron 2010-03-19 07:49:33 -04:00
Peter Van der Beken
e5d87ec5bb Fix for bug 552716 (Remove NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO). r=jst.
--HG--
extra : rebase_source : 8e03b54ff6117dcac27188b296c59dcafbb6db78
2010-03-17 16:09:05 +01:00
Markus Stange
4a997d3554 Backed out changeset e17c076aceea, bug 508482 (:-moz-window-inactive pseudoclass) because of test_righttoleft.xul test failures. 2010-03-17 20:03:53 +01:00
Markus Stange
f1f3037861 Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst 2010-03-17 18:10:57 +01:00
L. David Baron
a5db8c1ba4 Remove code that was a remnant of the old storage for transition-property. (Bug 550497) r=bzbarsky 2010-03-16 16:04:21 -07:00
L. David Baron
cd9171b59e Add additional diagnostic output for diagnosing intermittent failure bug 537573. 2010-03-16 16:04:20 -07:00
Ehsan Akhgari
9408713316 Bug 549887 - Make sure we don't crash if for some reason the layout init fails; r=dbaron
--HG--
extra : rebase_source : a112310d69c86f727471e2abaea31e1898f68ca1
2010-03-15 11:13:52 -04:00
Joel Maher
d050afae06 Bug 544097 Chaning mochitests to run against mochi.test instead of localhost r=ted, waldo, dwitte p=jmaher. Landed on CLOSED TREE 2010-03-12 13:53:36 -08:00
timeless@mozdev.org
247b83073d Bug 550962 add coverity hint in CSSParserImpl to ignore return values from ParseEnum/ExpectSymbol
r=zwol

--HG--
extra : rebase_source : 5de1af8537fb0ab490cb51550029006e471cbe63
2010-03-12 07:50:10 +01:00
Daniel Holbert
beeb37de25 Bug 551397: CSS_PSEUDO_ELEMENT needs to be undefined before next definition. r=sicking 2010-03-10 12:33:37 -08:00
Brad Lassey
bb55fe310f backing out changesets e939397fc6a5, 88529662c474 and 3d7c54b194bb due to random hangs in pgo tests 2010-03-09 22:33:11 -05:00
Joel Maher
aef3dc32c3 Bug 544097 changing mochitests to use mochi.test instead of localhost for windows mobile refactoring p=jmaher, r=ted,dwitte, sayrer, waldo, ctalbert 2010-03-09 08:55:39 -08:00
Henri Sivonen
337c239b98 Bug 546641 - Remove trailing &#10; from attribute value in test_parse_rule.html. r=roc.
--HG--
extra : rebase_source : 90abdd78f47d2b30d5e3fc2147b6d130fa61dc23
2010-03-09 15:03:29 +02:00
Kyle Huey
1d0289c601 Backed out changeset 8ce70abd7777 2010-03-09 01:14:21 -05:00
Joel Maher
cee9b522a0 Bug 544097 Change mochitests to use mochi.test instead of localhost for mobile refactoring p=jmaher r=ted,dwitte,sayrer 2010-03-08 19:21:33 -08:00
Jonas Sicking
3175f89133 Bug 534136 Part 3: Optimize atom-using code for the fact that atoms store 16bit strings. Also take advantage of new nsAtomString API. r=bz 2010-03-08 07:45:00 -08:00
Jonas Sicking
c4106f7f22 Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap 2010-03-08 07:45:00 -08:00
Jonas Sicking
1a6c0165bf Bug 534136 Part 1: Make atoms keep a pointer to an nsStringBuffer rather than storing the data inline. r=bsmedberg 2010-03-08 07:44:59 -08:00
Ginn Chen
b8ef46d240 Bug 550405: [Sun Studio] Mangled name mismatch for LoadInlineStyle and LoadStyleLink (release build only) r=bzbarsky 2010-03-08 17:34:55 +08:00
Clint Talbert
7ffd9496bc Backed out changeset b4372055f473 -- due to unexplained orange on OS X Leak test (Bd) box 2010-03-07 17:34:23 -08:00
Joel Maher
ef6c5fda3d Bug 544097 - Change mochitests to use mochi.test instead of localhost for mobile test refactoring p=jmaher, r=sayrer,dwitte 2010-03-07 16:08:05 -08:00
Zack Weinberg
11dc66e189 Part of bug 541496: Don't use the CSS parser's "low level" error flag to signal namespace lookup failure. r=bzbarsky
--HG--
extra : rebase_source : 7e844cd9061aedc36d0e58d699e0ba18ca34cc82
2010-03-05 10:43:50 -08:00
Mark Banner
c54d4b13fb Bug 549860 Fix non-libxul build bustage from bug 544112. r=ted over irc 2010-03-03 12:21:23 +00:00
Boris Zbarsky
ca0c6a507d Bug 527977 part 4. Have rulenode always cache inherit structs on the style context (posibly in addition to caching on the rulenode. r=zwol, sr=dbaron 2010-03-02 18:27:21 -05:00
Boris Zbarsky
abae116f82 Bug 527977 part 3. Change the style context cached struct storage; inline GetStyle* and PeekStyle* now that they're pretty dead-simple. r=zwol, sr=dbaron 2010-03-02 18:27:21 -05:00
Boris Zbarsky
864b51b6ce Bug 527977 part 2. Add a way to destroy the structs in an nsInheritedStyleData without trying to deallocate the object itself. r=zwol 2010-03-02 18:27:20 -05:00
Boris Zbarsky
f74086736a Bug 527977 part 1. Remove unused ClearInheritedData functions. r=zwol 2010-03-02 18:27:20 -05:00
Zack Weinberg
2c3e543d1d Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSLoader.h => layout/style/nsCSSLoader.h
2010-03-02 13:00:53 -08:00
Zack Weinberg
1e69ee7cc3 Bug 544112 part 1: Make speculative and chrome style sheet loads go through the document object. Rearrange some C++ unit tests so they'll still link after part 2. r=bzbarsky sr=dbaron
--HG--
rename : layout/html/tests/ParseCSS.cpp => layout/style/test/ParseCSS.cpp
rename : layout/html/tests/TestCSSPropertyLookup.cpp => layout/style/test/TestCSSPropertyLookup.cpp
2010-03-02 13:00:39 -08:00
Zack Weinberg
96887d3f38 Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSParser.h => layout/style/nsCSSParser.h
2010-03-02 12:59:32 -08:00
Daniel Holbert
e84b322109 Bug 537139: Prevent SMIL animation from triggering CSS transitions. r=dbaron 2010-03-01 11:31:45 -08:00
Mounir Lamouri
d27579287c Bug 549132 - middle-mouse paste fails in text input field if it is empty and does not have focus; r=bzbarsky 2010-03-01 09:43:20 -08:00
Boris Zbarsky
d4e773ce95 Bug 469861. Create a block for any block-level <math>. r=dbaron 2010-02-26 21:32:31 -05:00
Mounir Lamouri
54f1561afc Bug 457800 - Implement placeholder attribute for text input fields; r=ehsan,bzbarsky,bolter sr=roc ui-r=faaborg
--HG--
extra : rebase_source : 2e2f3a73553d720b32812603b0ce96c89b9a6261
2010-02-26 10:47:38 -08:00
L. David Baron
c3b73f1ff5 Make the 'border' shorthand reset -moz-border-image (per recent CSS WG decision) and -moz-border-*-colors. (Bug 482692) r=bzbarsky 2010-02-26 10:35:09 -08:00
Jonathan Kew
f3a8507386 Bug 547267 followup - rename nsPresContext::GetLanguage to GetLanguageFromCharset for clarity. r=dbaron 2010-02-26 06:20:35 -08:00
Jonathan Kew
49cf41e772 Bug 547267 - make langGroup in nsStyleVisibility respect document's Content-Language if available. r=dbaron 2010-02-25 20:34:38 -08:00
Robert O'Callahan
f78f502204 Bug 541406. Temporarily disable showing outlines on focused plugins. r=dbaron
--HG--
extra : rebase_source : 94ac716a6c796c6f6e31f97847c91e56b747566b
2010-02-12 10:45:09 +13:00
Jonathan Kew
e9d0f828e0 Bug 524107 - part 1 - pass original value of 'lang' to gfx text code rather than only a 'langGroup' value, to allow language-specific font rendering. r=roc sr=mats 2010-02-24 09:57:44 -08:00
Shawn Wilsher
17cfa3d578 Bug 461199 (Part 27) - Fix test_visited_pref.html so it passes with the new async isVisited API
r?dbaron
2010-02-24 08:37:03 -08:00
Ehsan Akhgari
d14f0f9897 Bug 461199 (Part 20) - Rewrite the private browsing visited link coloring test to make it work with the new async API
r=mconnor
r=sdwilsh
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
abba56baee Bug 461199 (Part 16) - Remove now unused style code testing for Link and HTML Links.
r=bz
sr=dbaron
2009-12-15 16:04:15 -08:00
Shawn Wilsher
27a2fcd36e Bug 461199 (Part 15) - Rely on nsIContent::IntrinsicState instead of nsIContent::GetLinkState in layout.
Layout should call IntrinsicState instead of GetLinkState.  Simplifies a lot of
logic, and makes the code easier to follow.
r=bz
sr=dbaron
2009-12-15 16:04:12 -08:00
Ricardo Bittencourt
e6a3b1a9b5 Bug 431524. Make the 'cursor' set on a file input work for its button too. r=bzbarsky, ui-r=alimi 2010-02-23 23:37:47 -05:00
Boris Zbarsky
ebac0e31a3 Bug 534526 part 2. Move AttributeWillChange out of SetAttrAndNotify, and in particular to before ParseAttribute, since some ParseAttribute implementations actually change the attribute value. Also move it to before we've changed the CSSDeclaration for inline style changes. r=sicking,longsonr,dbaron 2010-02-23 23:37:47 -05:00
Shawn Wilsher
56b8597aca Backed out changeset bca0b6ed92e4 2010-02-18 10:02:49 -08:00
Shawn Wilsher
40e546231a Bug 461199 (Part 15) - Rely on nsIContent::IntrinsicState instead of nsIContent::GetLinkState in layout.
Layout should call IntrinsicState instead of GetLinkState.  Simplifies a lot of
logic, and makes the code easier to follow.
r=bz
sr=dbaron
2009-12-15 16:04:12 -08:00
Zack Weinberg
6eb316c6e1 Bug 498036: Report malformed URIs in @import rules to the error console, not by setting the parser's low-level error flag. r=bz 2010-02-17 13:02:56 -08:00
Robert O'Callahan
a1010cb155 Backed out changeset 73f6051d6ff9 2010-02-12 14:12:11 +13:00
Robert O'Callahan
f2d6c543d8 Bug 541406. Temporarily disable showing outlines on focused plugins. r=dbaron 2010-02-12 10:45:09 +13:00
Justin Dolske
7af7ad098a Bug 539828 - Need CSS pseudoclass for crashed plugins. r=dbaron 2010-02-09 17:05:31 -08:00
Jae-Seong Lee-Russo
513e9cf886 Bug 517553: Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE' 2010-02-07 10:52:43 -05:00
L. David Baron
6670d61a56 Work around dependency problem for host_ListCSSProperties.o to fix current random orange. (Bug 544720) 2010-02-06 16:59:29 -08:00
L. David Baron
e69f98bf37 No longer need to null-check domProp in style system mochitests now that bug 374216 has landed. 2010-02-06 14:36:05 -08:00
Daniel Holbert
4a9a1b3347 In test_property_database.html, split up a 3-part check into separate checks, to elucidate new randomorange in test_property_database.html 2010-02-06 13:24:00 -08:00
Robert Longson
79ae710023 Bug 374216 - Setting element.style.someSvgProperty has no effect. r=dbaron,sr=roc 2010-02-06 13:46:54 +00:00
L. David Baron
66eda80913 Appropriately escape CSS identifiers when serializing. (Bug 543428) r=bzbarsky 2010-02-04 12:49:29 -08:00
Zack Weinberg
78db9dba3f Bug 528096: unexpected-token error recovery paths in the CSS parser need to UngetToken() before calling SkipUntil(), for correct behavior when the unexpected token is ( [ { or FUNCTION. r=dbaron 2010-01-27 16:20:05 -08:00
Alfred Kayser
611bb071bf Bug 399495: nsCSSScanner: absorb the '(' when returning a FUNCTION token. r=dbaron 2010-01-27 16:20:04 -08:00
L. David Baron
244a53d5bb Fake pushback of invalid eCSSToken_URL results from NextURL. (Bug 541434) r=bzbarsky 2010-01-24 12:06:19 -08:00
Zack Weinberg
ab052b17a8 Bug 536603 potential fix: in httpd.js, the server socket's queue limit should be larger than the browser-side max number of connections per server. r=jrmuizel 2010-01-18 18:12:39 -08:00
Zack Weinberg
bee097ea73 Back out instrumentation for bug 536603 and re-disable test 2010-01-18 14:54:56 -08:00
Zack Weinberg
ef69f941b3 Extensive debugging instrumentation for bug 536603 2010-01-18 09:03:50 -08:00
Daniel Holbert
41a9eb240f Bug 539585: Fix "warning: format '%p' expects type 'void*'" in layout directory. r=dbaron 2010-01-17 15:11:06 -08:00
Boris Zbarsky
1d3e09c88b Adding bug 535806 test. r=dbaron 2010-01-13 11:37:54 -05:00
L. David Baron
515ee52627 Store transitions for one refresh cycle after they complete so that merging with a non-animation style change doesn't make us start a second transition to transition the last step. (Bug 537151) r=bzbarsky 2010-01-12 08:51:37 -08:00
Bernd
f4a1800dfb bug 43178 - replace incorrect border, frame and rules handling code in content by css rules, initial patch - fantasai, a lof of input - bz r=bzbarsky 2010-01-09 16:33:03 +01:00
Boris Zbarsky
7288c16028 Bug 507817 followup. Remove some code that was just triggering a warning and not doing anything. r=vlad 2010-01-09 00:03:38 -05:00
L. David Baron
fe71055816 Make members of nsCSSStyleSheetInner private. (Bug 239008) r=bzbarsky 2010-01-07 08:51:16 -05:00
Robert O'Callahan
430f68fc01 Backed out changeset 880125b33bca
--HG--
extra : rebase_source : 3d0a098f7fa3ce93e9a2840db8fd9a790cb63792
2010-01-07 12:46:52 +13:00
romaxa
20519041b1 Bug 537124 - "Some native color values are not initialized properly (ex: eColor__moz_fieldtext)" [r=Ventron sr=roc] 2009-12-31 04:29:00 -06:00
Robert Longson
23ccf8ff6c Bug 537609 - Change to SVG 1.2T stroke-dasharray parsing. r=dbaron 2010-01-06 08:51:45 +00:00
Daniel Holbert
dce1eac776 Bug 530983, patch 1: Extend nsStyleAnimation to support computing/uncomputing 'clip: auto'. r=dbaron 2010-01-04 16:32:11 -08:00
Boris Zbarsky
a99f0f4f96 Bug 536716. Make BuildScrollFrame not set the primary frame on the content, fix letter frames to reset primary frames to 0 before resetting them to the new value as needed, fix things so <area> never gets a frame of its own, and reenable the SetPrimaryFrame assertion when the primary frame is being changed from one non-null frame to another. r=roc 2009-12-31 14:07:56 -05:00
L. David Baron
1d3abc0523 Add method to nsStyleSet to call EnsureUniqueInner on all CSS sheets. (Bug 536379) r=bzbarsky 2009-12-31 10:56:33 -05:00
L. David Baron
0edebe9e9f ClearRuleCascades when ensuring a stylesheet has a unique inner so that matched rules point back to the new rules. (Bug 536379) r=bzbarsky 2009-12-31 10:56:33 -05:00
L. David Baron
175e61cedf Make EnsureUniqueInner return a tri-state result that says whether it needed to do any cloning. (Bug 536379) r=bzbarsky 2009-12-31 10:56:33 -05:00
L. David Baron
46b22b7ca0 DeCOMify nsHTMLCSSStyleSheet. (Bug 239008) r=bzbarsky 2009-12-31 10:56:33 -05:00
L. David Baron
c8c4296b20 Move class definition of nsHTMLCSSStyleSheet into its own header. (Bug 239008) r=bzbarsky 2009-12-31 10:56:32 -05:00
L. David Baron
7df0e7485a Rename HTMLCSSStyleSheetImpl to nsHTMLCSSStyleSheet. (Bug 239008) r=bzbarsky 2009-12-31 10:56:32 -05:00
Markus Stange
7d68e3b7c5 Bug 527682 - Implement -moz-window-shadow values menu, tooltip and sheet. r=dbaron, r=dao, r=josh 2009-12-30 16:24:08 +01:00
Boris Zbarsky
fa1d8938cf Bug 534808. Need to clear descendant intrinsic widths on height changes, due to replaced elements. r=dbaron 2009-12-29 15:13:54 -05:00
Boris Zbarsky
797cfc02f1 Bug 536789. Null-check the body, since we might not have one. r=dbaron 2009-12-27 08:48:10 -05:00
L. David Baron
3f7224b908 Disable the intermittently-failing tests (bug 536603) for Mac only, which is where they're failing.
--HG--
extra : transplant_source : %E2%F1%F2%3A%86%C7%C57%7F%16B%16m%94%0D%D6%EDg%A7r
2009-12-25 22:31:17 -05:00
L. David Baron
ae0a94adde Backed out changeset f60b3bbfa8ce (debugging for bug 536603) 2009-12-25 22:29:02 -05:00
L. David Baron
f7e36c1f1a Add some CSS loader debugging for mochitest orange bug 536603.
--HG--
extra : transplant_source : %5D7%FE%04%AE%D9%F2%FA3i%C3S%5B%89%5E%AB%D6%98J%21
2009-12-24 22:37:05 -05:00
L. David Baron
6b21cbe1e5 Merge backout of changeset aabd98c04dc9 (debugging for bug 536603) 2009-12-24 22:17:21 -05:00
L. David Baron
a819f0b290 Backed out changeset aabd98c04dc9 (debugging for bug 536603) 2009-12-24 22:17:05 -05:00
L. David Baron
f723d1ddb6 Fix the opposite type of orange as the previous fix: make the case where the transition completes before the setTimeout fires much much less likely.
--HG--
extra : transplant_source : %82%01%8B%CB%7C%CF%AA%24XY%03%F2%03%BD%BB/zO%15%E6
2009-12-24 17:43:39 -05:00
Boris Zbarsky
b3883855ac Bug 500882 part 5. Switch layout module to using the new GetPrimaryFrame API. r=roc 2009-12-24 16:20:06 -05:00
L. David Baron
df4e925799 Add basic SJS debugging code for bug 536603.
--HG--
extra : transplant_source : %E4%AA%11pN%83Y2%B7%DAB%89%96V%DB%06%3C%04%F6%15
2009-12-24 09:22:48 -05:00
L. David Baron
751d555944 Remove debugging code for debugging bug 536603 (changeset 76e9dfaba122 and changeset 5275dda44819). 2009-12-24 08:44:44 -05:00