Zack Weinberg
af2031e447
Bug 569719 part 12: replace nsCSSParser::ClearTempData with explicit use of mTempData.ClearProperty (and make that method handle shorthands). r=dbaron
2010-07-23 11:00:42 -07:00
Zack Weinberg
bfd2ecb93e
Bug 569719 part 11: take the fast path in ParseProperty for !important replacing !important, as well as normal replacing normal. r=dbaron
2010-07-23 11:00:39 -07:00
Zack Weinberg
604c8c3c12
Bug 569719 part 10: refactor parsing of !important and the end of a property declaration. r=dbaron
2010-07-23 11:00:37 -07:00
Zack Weinberg
6873de67ec
Bug 569719 part 9: remove return value from css::Declaration methods that always return NS_OK, and change GetCSSDeclaration to return a css::Declaration instead of an nsresult. r=dbaron
2010-07-23 11:00:34 -07:00
Zack Weinberg
b9547bdd5e
Bug 569719 part 7: Add AppendToString methods to nsCSSRect and friends as well, replacing Declaration::AppendStorageToString. r=dbaron
2010-07-23 11:00:29 -07:00
Zack Weinberg
b87b69a229
Bug 569719 part 6: Move Declaration::AppendCSSValueToString into nsCSSValue. r=dbaron
2010-07-23 11:00:27 -07:00
Zack Weinberg
a0acc46ce4
Bug 569719 part 5: in nsCSSValueList and nsCSSValuePairList, convert Equal() to operator==, and remove unnecessary argument from Clone(). r=dbaron
2010-07-23 11:00:24 -07:00
Zack Weinberg
1e5ad912e8
Bug 569719 part 4: Move nsCSSExpandedDataBlock::RuleDataPropertyAt into struct nsRuleData. r=dbaron
2010-07-23 11:00:21 -07:00
Zack Weinberg
b2480f1b17
Bug 569719 part 3: collapse nsDOMCSSDeclaration::ParseDeclaration into its sole caller (nsDOMCSSDeclaration::SetCSSText); remove always-constant flag arguments to nsCSSParser::ParseAndAppendDeclaration; rename that method to ParseDeclarations. r=dbaron
2010-07-23 11:00:19 -07:00
Robert O'Callahan
f3efde653e
Bug 537890. Part 10: Fix nsPresContext and nsIDeviceContext unit-conversion methods to be explicit about using CSS logical units instead of physical units. r=dbaron
2010-08-13 21:58:04 +12:00
Robert O'Callahan
f9627dc357
Bug 537890. Part 7: Tests for pt/pc/mm/cm/in not being physical units, and for mozmm being physical units. r=dbaron
2010-08-13 21:58:02 +12:00
Robert O'Callahan
3e8e830840
Bug 537890. Part 5: Make pc, in, mm and cm be a fixed number of CSS pixels. r=dbaron
2010-08-13 21:58:02 +12:00
Robert O'Callahan
bd0e4c32ea
Bug 537890. Part 4.5: Create 'mozmm' unit for physical millimeters on screen devices. r=dbaron
2010-08-13 21:58:02 +12:00
Robert O'Callahan
973ebcc0ad
Bug 537890. Part 4: Make points be a fixed number of CSS pixels. r=dbaron
2010-08-13 21:58:01 +12:00
Robert O'Callahan
af7fdb42ac
Bug 537890. Part 8: Define MM_PER_INCH_FLOAT. r=dbaron
2010-08-13 21:57:57 +12:00
Matt Woodrow
a580694478
Bug 505115. Use layers to render active 2D transforms. r=roc,dbaron
2010-08-02 15:07:04 +12:00
L. David Baron
c06c57f6e6
Fix bustage from bug 570329 with s/windowsWidget/winWidget/g.
2010-07-30 20:50:52 -07:00
Craig Topper
1d7405b4e7
Remove aTag argument from nsICSSPseudoComparator::PseudoMatches. (Bug 576794) r=bzbarsky a2.0=bsmedberg
2010-07-30 16:48:57 -07:00
Craig Topper
fec95b227d
Remove QueryFrame support for nsICSSPseudoComparator. (Bug 576794) r=bzbarsky a2.0=bsmedberg
2010-07-30 16:48:57 -07:00
Craig Topper
18988cb740
DeCOMtaminate nsICSSPseudoComparator::PseudoMatches method signature. (Bug 576794) r=bzbarsky a2.0=bsmedberg
2010-07-30 16:48:57 -07:00
L. David Baron
9cc2e9ec05
Switch reftest manifests to new, shorter syntax for widget toolkit tests. (Bug 570329) a2.0=tests
...
This patch was created by running the following sed commands:
s/MOZ_WIDGET_TOOLKIT=="\(gtk2\|cocoa\|qt\|windows\)"/\1Widget/g
s/MOZ_WIDGET_TOOLKIT!="\(gtk2\|cocoa\|qt\|windows\)"/!\1Widget/g
on all *.list files in the tree.
2010-07-30 16:48:57 -07:00
Kyle Huey
9c0bd4c0a5
Backed out changeset 9e87c3efc33b
2010-07-29 16:01:41 -07:00
Kyle Huey
17533df9bd
Bug 578714: Stop doing Unicode-aware case-folding inside layout/style. r=zwol sr=bz
...
--HG--
extra : rebase_source : 7d5f43bf8d7d109c9669db68589e26554df9a250
2010-07-29 12:41:04 -07:00
L. David Baron
a539512caf
Clean up messy line thanks to new operator from bug 570912. (Bug 582111) r=bzbarsky
2010-07-28 16:43:53 -07:00
L. David Baron
18dff75787
Make the transitions style rule hold on to its values and thus preserve rule immutability. Do this by reusing the code for the covering style rule for both transitions style rule types. (Bug 582111) r=bzbarsky
2010-07-28 16:43:53 -07:00
Joe Drew
e2f082fe40
Bug 572520: step 2.0, fix the visited image loading tests to poll for the images to load; just waiting for a draw isn't enough. r=dbaron
2010-07-28 14:51:37 -07:00
Ian Spence ext:(%2C%20Michael%20Monreal%20%3Cmichael.monreal%2Bmoz%40gmail.com%3E)
fefa76bb2b
Bug 412773 - Implement -moz-appearance: button-arrow-up/down/next/previous and use them in the find bar and for expander buttons. r=roc, r=dao, ui-r=faaborg
2010-07-27 16:57:47 +02:00
Boris Zbarsky
e52f354298
Bug 580685. We might not have a root element to resolve 'rem' against. r=dbaron
2010-07-22 17:33:37 -04:00
Zack Weinberg
76dbdde0f4
Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron
...
--HG--
rename : layout/style/nsCSSDeclaration.cpp => layout/style/Declaration.cpp
rename : layout/style/nsCSSDeclaration.h => layout/style/Declaration.h
rename : layout/style/nsCSSLoader.cpp => layout/style/Loader.cpp
rename : layout/style/nsCSSLoader.h => layout/style/Loader.h
2010-06-28 15:49:35 -07:00
Zack Weinberg
9c006a4ff7
Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron
2010-06-28 15:49:35 -07:00
Craig Topper
f720fbc615
Bug 575901 - DeCOMtaminate nsIStyleRuleProcessor method signatures. r=bz
2010-07-18 23:20:40 +02:00
Craig Topper
686470fa78
Bug 575900 - Remove unneeded QIs from CSS Rule classes. r=bz
2010-07-18 22:23:12 +02:00
Craig Topper
dcd5047456
Bug 571946 - Let nsICSSRule::GetType return the type as a PRInt32 type instead of taking an outparam for that. r=bz
2010-07-18 16:39:20 +02:00
Michael Ventnor ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
d512b62fb4
Bug 566480 - Make dragging the menubar drag the window on GTK themes where that should work (and also fix GTK resize drags to initialize drag better). r=karlt,dbaron,enn,dao
2010-07-17 10:11:54 +02:00
L. David Baron
b2810df4d9
Append style sheets from binding manager when ensuring unique inner on all sheets. (Bug 578810) r=bzbarsky
2010-07-16 22:36:34 -07:00
L. David Baron
cb0b167ba1
Fix typo in comment as followup from bug 531344.
2010-07-16 22:36:34 -07:00
Robert O'Callahan
1917c1d836
Bug 564991. Part 13: Optimize invalidation to avoid repainting ThebesLayer contents sometimes. r=mats,sr=dbaron
2010-07-16 09:07:53 +12:00
timeless@mozdev.org
792133b46f
Bug 577993 mark debug code in InsertFontFaceRule and nsStyleAnimation::ComputeDistance
...
r=dbaron
--HG--
extra : rebase_source : a8b1ed0732f8f06a192dbcc485dffe0bb10d4a50
2010-07-15 15:55:05 +03:00
Zack Weinberg
63f91528d4
Bug 558235 part 2: Kill CSS2PropertiesTearoff. r=dbaron
2010-07-14 13:58:56 -07:00
Zack Weinberg
c764d1c2d2
Bug 558235 part 1: Mechanically rename nsComputedDOMStyle::Get* to nsComputedDomStyle::DoGet* where the former name conflicts with a nsIDOM*CSS2Properties method name. r=dbaron
2010-07-14 13:58:55 -07:00
Ehsan Akhgari
0ad20714f9
Bug 289384 - Midas Editor: Shortcut command + left/right should go to beginning/end of line; r=masayuki,bzbarsky
2010-07-11 17:48:46 -04:00
Jonathan Kew
1341e3f276
bug 511339 - part 1 - implement -moz-font-feature-settings and -moz-font-language-override in CSS. r=dbaron
2010-07-13 21:30:42 +01:00
Ehsan Akhgari
7dcf9d424a
Backout bug 289384 because of crashtest assertion failures
2010-07-11 17:43:27 -04:00
Ehsan Akhgari
d288e15ecd
Bug 289384 - Midas Editor: Shortcut command + left/right should go to beginning/end of line; r=masayuki,bzbarsky
...
--HG--
extra : rebase_source : d533ad700d2e3e5d50dc0f03b57b14723e12c7eb
2010-06-25 14:58:25 -04:00
Boris Zbarsky
3e52abcca0
Bug 575467. Improve the detection of whether we're in the transition's initial state. r=dbaron
2010-07-08 09:50:33 -07:00
Boris Zbarsky
cbd4058563
Bug 576658. Simplify AppendRuleToTagTable. r=dbaron
2010-07-08 09:50:18 -07:00
Neil Deakin
2fb7701cbe
Bug 553576, change -moz-resize to resize, r=dbaron
2010-07-05 10:41:04 -04:00
L. David Baron
ceb7e65f43
Make nsStyleAnimation::ComputeDistance not crash when given -moz-transform: none. (Bug 576761) (pending review)
...
--HG--
extra : transplant_source : _hY%B1%23%2Cb%D2%19R%BB%24%A4%9C%1B%16R%5C%8Ee
2010-07-03 12:25:37 -07:00
L. David Baron
f5249f9108
Implement animation of -moz-transform property. (Bug 531344) r=dholbert
2010-07-02 21:18:56 -07:00
L. David Baron
6876cdaeaa
Move ReadTransforms from nsRuleNode to nsStyleTransformMatrix. (Bug 531344) r=dholbert
2010-07-02 21:18:56 -07:00
L. David Baron
dde6ec680a
Add support for calc() expressions in translate functions of -moz-transform. (Bug 531344) r=bzbarsky
2010-07-02 21:18:56 -07:00
L. David Baron
3c320ac9da
Fix weird SetCoordToValue signature. (Bug 531344) r=dholbert
2010-07-02 21:18:56 -07:00
L. David Baron
3854183740
Allow CSS parser to forbid min()/max() within certain calc() expressions. (Bug 531344) r=bzbarsky
2010-07-02 21:18:56 -07:00
L. David Baron
1130c43906
Create a common function for setting pieces of a transform matrix for a translation. (Bug 531344) r=dholbert
2010-07-02 21:18:56 -07:00
L. David Baron
cec126b618
Add some helper functions for common CSS value to CSS value interpolations. (Bug 531344) r=dholbert
2010-07-02 21:18:56 -07:00
L. David Baron
8e80eed347
Make the style struct store the specified transform list so that we can animate matching lists without matrix decomposition. (Bug 531344) r=dholbert
2010-07-02 21:18:56 -07:00
L. David Baron
60a8a56e92
Handle computed-value calc() expressions in computed style. (Bug 363249) r=bzbarsky
2010-07-02 21:18:56 -07:00
L. David Baron
60dfb4ddf1
Convert calc() serialization code to a template so it can also be used for nsStyleCoord. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
dd9be1dd41
Add API to compute length, percentage or calc() style coords. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
e3ff14ef8b
Add API to compute computed-value calc() expressions to lengths. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
fbac3bf4e7
Add additional template parameter expectations to ComputeCalc so that its input can be nsCSSValue or nsStyleCoord. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
a4378282b6
Add code to compute a computed-value calc() expression from a specified-value calc() expression, and make it reachable from SetCoord in nsRuleNode. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
cb0428ad49
Switch calc() to saturating operations on nscoord. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
e218c29644
Fix namespace usage in nsRuleNode. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
8d8f88a01a
Add storage for calc() expressions to nsStyleCoord. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
be6f3354a9
Add nsStyleCoord::Array type. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
f66de32fe0
Add nsStyleContext::Alloc for allocations scoped to the lifetime of the style context. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
L. David Baron
5c276249e4
Fire transitionend events only for transitions on elements (not pseudo-elements). (Bug 537140) r=bzbarsky
2010-07-02 21:18:55 -07:00
Boris Zbarsky
cde3075e01
Bug 576136. Use arrays of rulevalues, not linked lists, for slightly better cache locality. r=dbaron
2010-07-02 16:56:09 -04:00
Jesse Ruderman
14ecbf3e68
Add bug numbers for all remaining asserts() annotations in crashtests and reftests
2010-07-01 19:33:56 -07:00
Benjamin Smedberg
4d172dd53d
Merge mozilla-central, including the Electrolysis changes, into the branch for bug 568691.
2010-07-01 11:55:57 -04:00
Benjamin Smedberg
a2833452f8
Merge mozilla-central to the bug 568691 branch.
...
--HG--
rename : gfx/public/nsITheme.h => gfx/src/nsITheme.h
2010-06-30 14:23:23 -04:00
Benjamin Smedberg
63c0077443
Merge mozilla-central into the branch for bug 568691, including fixup of the new jetpack binary module.
2010-06-25 19:41:09 -04:00
Daniel Holbert
ed05c57d55
Bug 574750: Use size_t for counter, in loops over contents of an nsCSSValue::Array. r=bz
2010-06-25 12:38:57 -07:00
Benjamin Smedberg
762def30bb
Merge mozilla-central into the static-xpcom-registration branch.
2010-06-23 17:26:25 -04:00
Ms2ger
27a3b29543
Implement the figure element. r=jst+timeless+ehsan (Bug 573356)
2010-06-23 10:08:56 -07:00
Ivan Enderlin ext:(%2C%20Mounir%20Lamouri%20%3Cmounir.lamouri%40gmail.com%3E%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
4164b0645e
Implement the mark element. r=jonas+timeless (Bug 485377)
2010-06-23 10:08:56 -07:00
Benjamin Smedberg
6b0b22699b
Bug 573739 - Don't get the private browing service during layout module initialization: delay until profile-after-change.
2010-06-22 12:59:57 -04:00
Boris Zbarsky
8e8e4c48e0
Adding bug 573127 test
2010-06-23 01:43:17 -04:00
Boris Zbarsky
7f14719c4d
Bug 573241. When reparenting a style context, don't include any transition rules the old context might have had in the new one, since that can confuse transitions. r=dbaron
2010-06-23 00:46:27 -04:00
L. David Baron
63c334d06c
Switch test_transitions_per_property to testing interpolation 1/4 of the way through instead of 1/2, so it will catch getting the halves backwards.
2010-06-26 11:58:06 -07:00
L. David Baron
0406e75bdd
Adjust comment as followup to bug 574059.
2010-06-26 11:58:06 -07:00
Boris Zbarsky
b8fb52d415
Bug 555627. Make transitions actually work correctly on :before and :after. r=dbaron
2010-06-30 18:54:29 -07:00
Boris Zbarsky
81a1582c9b
Bug 571347. In HasAttributeDependentStyle when the class attribute is changing, walk only selectors with classes that might be relevant. r=dbaron
2010-06-18 12:23:05 -04:00
L. David Baron
6c86828ec0
Add test for bug 573255.
...
--HG--
extra : transplant_source : Y%E3o%C5%F1H8t%AF%3E%1Cu%5B%EA%E0%2B%27%08%EA%C2
2010-06-19 14:11:20 -07:00
L. David Baron
d9f82cf345
Backed out changeset a6e3300a3bac (bug 571347) for causing bug 573255 because the optimization is invalid given :not() selectors.
2010-06-19 14:16:38 -07:00
Boris Zbarsky
ac7a53b8a2
Bug 571347. In HasAttributeDependentStyle when the class attribute is changing, walk only selectors with classes that might be relevant. r=dbaron
2010-06-18 12:23:05 -04:00
Boris Zbarsky
2e0c510982
Bug 569006. Skip probing for ::before/::after during reresolve if we're not redoing matching on kids, since those can't appear/disappear without either a reframe or a change in what selectors we match. r=dbaron
2010-06-18 12:23:05 -04:00
Boris Zbarsky
e81230c9bb
Bug 494117 part 2. Don't force selector matching on the whole subtree rooted at an element when the element's style changes. r=dbaron
2010-06-18 12:23:05 -04:00
Boris Zbarsky
37c6532fe1
Bug 494117 part 1. Rename eRestyle_Self to eRestyle_Subtree. r=dbaron
2010-06-18 12:23:05 -04:00
Jesse Ruderman
f04ef428cb
Remove stray line breaks from NS_ERROR messages, since they interfere with log processing. rs=jst
...
--HG--
extra : rebase_source : 87421691da969e0ebe5fbfbc44cd8f18617d1351
2010-06-17 13:28:38 -07:00
Jesse Ruderman
fb054fc73e
Add some crashtests and reftests
...
--HG--
extra : rebase_source : a167ccf140387fa50e3668422b5a74bea0527255
2010-06-17 13:21:24 -07:00
Boris Zbarsky
8b6e50ff8c
Bug 571105. Don't force creation of an if-visited style contest if we don't actually need one. r=dbaron
2010-06-14 16:06:48 -04:00
Justin Wood
7eb105907c
Bug 568733 - patch for mobile specific browser-chrome tests breaks seamonkey. r=ted
...
pending-feedback=jmaher
Also RE-enables browser-mochitests for docshell.
2010-06-09 19:29:44 -04:00
L. David Baron
a4220ff996
Fix alphabetization of renamed properties in property_database.js. (Bug 549809)
2010-06-08 18:44:33 -07:00
L. David Baron
9a129faa59
Rename -moz-background-size to background-size. (Bug 549809) r=roc
2010-06-08 18:44:33 -07:00
L. David Baron
dde8361307
Support for background-clip and background-origin in the background shorthand. (Bug 549809) r=roc
2010-06-08 18:44:33 -07:00
L. David Baron
934c377eda
Rename properties and values of background-clip and background-origin to match css3-background. (Bug 549809) r=roc
2010-06-08 18:44:33 -07:00
L. David Baron
4547409e45
Remove comments referencing no-longer-existing no-clip value for background-clip. (Bug 549809)
2010-06-08 18:44:32 -07:00
L. David Baron
308b0473d7
Add -moz-background-clip: content. (Bug 549809) r=roc
2010-06-08 18:44:32 -07:00