Yu-Sian (Thomasy) Liu
58bc1b7fb5
Bug 594935: Add calc to parser, do calc in PaintGradient and add stop point to HasCalc(). r=bz
2012-10-03 22:31:56 -07:00
Jonathan Kew
336fd34232
bug 674373 pt 4 - pass device-to-CSS pixel ratio to LookAndFeel code when requesting a font style. r=roc
2012-09-29 12:35:08 +01:00
Edwin Flores
ccb631db79
Bug 719286 - Add support for -moz-objectValue keyword to CSS parser for SVG glyphs r=dbaron
2012-09-06 16:58:47 +12:00
Edwin Flores
0300bf0a15
Bug 719286 - Add support for -moz-objectFillOpacity and -moz-objectStrokeOpacity to CSS parser for SVG glyphs r=dbaron
2012-09-06 16:58:46 +12:00
Edwin Flores
cac293e907
Bug 719286 - Add support for objectfill and objectstroke values to CSS parser r=dbaron
2012-09-06 16:58:46 +12:00
Daniel Holbert
16ff96590f
Bug 763689 patch 3: Support min-height:auto in computed style, and add special cases as necessary wherever it's read. r=dbaron
2012-09-04 16:26:11 -07:00
Daniel Holbert
b0926860ac
Bug 763689 patch 2: Support min-width:auto in computed style, and add special cases as necessary wherever it's read. r=dbaron
2012-09-04 16:26:10 -07:00
Kyle Huey
0cae034974
Bug 783162: Make mapped attributes hold the image alive. r=bz
...
The nsCSSValue in nsGenericHTMLElement::MapBackgroundInto is a temporary. This causes a problem after Bug 697230 landed, because the nsCSSValue::Image we put into that value is destroyed once we're done doing style stuff. Previously the nsImageLoader would grab the request off the nsCSSValue::Image and hold it alive. Bug 697230 changed the behavior here; now when the nsCSSValue::Image is destroyed it tells the image loader to drop the request. The result is that all the references to the request are dropped and the frame is never told it has a background.
The solution is to keep the nsCSSValue::Image alive longer. This patch adds two new types of nsAttrValue. The first is an nsCSSValue::URL. A ParseBackgroundAttribute method is added on nsGenericHTMLElement that the relevant elements (body/td/th/table/tr/tbody/thead/tfoot) call that parses background into an nsCSSValue::URL. The second is an nsCSSValue::Image. nsGenericHTMLElement::MapBackgroundInto attempts to convert the nsCSSValue::URL into an nsCSSValue::Image by kicking off the image load. The result is that image loads are only started when the element is actually visible. This also mirrors the way background-image works. This also allows us to fix two longstanding bugs in this code. Since MapBackgroundInto doesn't have a pointer to the actual element, it relied on grabbing the principal of the document. Now we can grab the principal of the node in ParseBackgroundAttribute. MapBackgroundInto also has no way to get at the element's base URI (to honor xml:base), which is now possible in ParseBackgroundAttribute.
nsCSSValue::[Image|URL] have also been moved to be mozilla::css::[Image|URL]Value. nsAttrValue.h is included in external linkage code, so it can't include nsCSSValue.h to get the declarations of nsCSSValue::[Image|URL], and nested classes can't be forward declared. Moving the classes to a namespace solves the problem.
Finally some old inoperative quirks mode code was removed. This code has done nothing since Bug 273078 was landed in 2004.
2012-08-24 10:50:49 -07:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
L. David Baron
e34ffc55e7
Track whether nsStyleVisibility::mLanguage came from explicit information in the document. (Bug 702121, patch 1) r=jfkthame
2012-08-20 19:23:32 -07:00
Kyle Huey
13ed261c0c
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-08-13 15:04:19 -07:00
Jonathan Kew
2a787bd2bf
bug 721750 - support text-shadow property on ::-moz-selection. r=dbaron
2012-08-04 19:52:21 +01:00
Cameron McCormack
d63a0ddfaa
Bug 655877 - Part 15: Don't treat SVG text frames as being positioned. r=roc
2012-08-02 21:38:50 +10:00
Scott Johnson
c5aaabe440
Bug 764567: Implement column-fill part of CSS3 multicol spec, now with regression fixes [r=roc].
2012-07-31 11:21:19 -05:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Cameron McCormack
7aadf378af
Bug 774968 - line-height percentage value not computed accurately. r=dbaron
...
--HG--
extra : rebase_source : 93885c1b2ef72d673a935c135f89cc06bc58136d
2012-07-20 07:03:35 +10:00
Boris Zbarsky
0c79c85561
Bug 771594. Allow preference control over what CSS properties we parse. r=dbaron,dholbert
2012-07-13 19:59:05 -04:00
Masatoshi Kimura
ce099da2b8
Bug 752187 - Part 10: Implement rendering unprefixed gradients. r=dbaron
2012-07-07 10:27:08 -04:00
Masatoshi Kimura
76156293e3
Bug 752187 - Part 9: Implement unprefixed radial-gradient parsing. r=dbaron
2012-07-07 10:27:08 -04:00
Masatoshi Kimura
68b09c47fc
Bug 752187 - Part 6: Rename mIsToCorner to mIsLegacySyntax. r=dbaron
2012-07-07 10:27:08 -04:00
Daniel Holbert
b8243ce2a2
Bug 696253, patch 7: implement parsing/computation for CSS property 'flex-basis'. r=dbaron
2012-07-06 17:06:23 -07:00
Daniel Holbert
240b1f795a
Bug 696253, patch 6: implement parsing/computation for CSS properties 'flex-grow' and 'flex-shrink'. r=dbaron
2012-07-06 17:06:22 -07:00
Daniel Holbert
31ad14ad8d
Bug 696253, patch 5: implement parsing/computation for CSS property 'align-self'. r=dbaron
2012-07-06 17:06:21 -07:00
Daniel Holbert
b95bbf1e06
Bug 696253, patch 4: implement parsing/computation for CSS property 'align-items'. r=dbaron
2012-07-06 17:06:21 -07:00
Daniel Holbert
be5b7b1e6b
Bug 696253, patch 3: implement parsing/computation for CSS property 'flex-direction'. r=dbaron
2012-07-06 17:06:20 -07:00
Daniel Holbert
ddeaa7a0d3
Bug 696253, patch 2: implement parsing/computation for CSS property 'order'. r=dbaron
2012-07-06 17:06:19 -07:00
Daniel Holbert
d71777623e
Bug 696253, patch 1: implement parsing/computation for CSS property 'justify-content'. r=dbaron
2012-07-06 17:06:19 -07:00
Daniel Holbert
dd5d8688a3
Bug 666041 patch 2: Add "-moz-flex" & "-moz-inline-flex" values for "display" property. r=bz
2012-06-26 15:11:38 -07:00
Scott Johnson
d4d53d2412
Bug 733614: Backout changes from bug 695222 for mozilla 16 branch [r=dbaron].
2012-06-13 11:00:56 -05:00
Daniel Holbert
fee8ac0908
Bug 763689: Add "auto" keyword for min-height and min-width, which for now just computes to 0. r=bz
2012-06-12 10:48:20 -07:00
Nathan Froyd
fdb381e06d
Bug 674922 - report on most common objects allocated in a PresShell's arena; r=roc,njn
2012-06-06 13:35:40 -04:00
Ms2ger
4ff76331ca
Bug 629882 - Support currentColor in the 2D canvas context; r=dbaron
...
This changes nsCSSParser::ParseColorString to fill in an nsCSSValue instead
of an nscolor, and exposes nsRuleNode::ComputeColor to turn this nsCSSValue
into an nscolor.
Because gradients can be used with different canvas elements in different
documents, these cannot pass useful values for nsRuleNode::ComputeColor's
aPresContext and aStyleContext arguments. This patch also changes SetColor
to deal with those parameters being null.
2012-06-06 09:36:38 +02:00
Shriram Kunchanapalli
7eea18ae58
Bug 219767: Move font size functions in nsStyleUtil into nsRuleNode. r=dbaron
2012-05-31 10:09:46 +05:30
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Robert Longson
165f6890cf
Bug 528332 - Implement non-scaling-stroke vector-effect. Part 1 - style system changes r=dbaron
2012-05-18 09:33:40 +01:00
Boris Zbarsky
3a47108ff7
Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
...
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Makoto Kato
6bbd48cb4a
Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu
2012-05-07 12:18:23 -07:00
L. David Baron
9d59917e97
Examine parentBorder only when parentContext is non-null. (Bug 749860) r=bzbarsky
2012-04-27 21:56:31 -07:00
John Daggett
4fb6d48482
Bug 718539. Update font-feature-settings to latest spec syntax. r=dbaron
2012-04-26 15:24:26 +09:00
Patrick Wong
15df25098f
Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar
2012-04-24 14:43:00 -04:00
Kyle Huey
b9156a7e34
Back out Bug 679230 due to Android reftest failures.
2012-04-07 10:36:49 -07:00
Kyle Huey
803a05ad74
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-04-07 08:58:41 -07:00
Nathan Froyd
7adb7a65ea
Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu
2012-02-29 10:57:47 -05:00
Lazar Sumar
6fbab0b473
Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron
2012-02-24 21:23:14 -08:00
Zack Weinberg
dc30af584b
Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron
2012-02-23 08:19:00 -08:00
Zack Weinberg
9c593e5cd7
Bug 96971: Move GetSystemFont from nsDeviceContext to mozilla::LookAndFeel. r=roc
2012-02-20 15:19:48 -08:00
Lazar Sumar
5958307819
Bug 522607 - New css3-background background-position syntax. r=dbaron
2012-02-20 13:14:42 +13:00
Jonathan Watt
b84e0cbe12
Bug 416581, part 2 - Pay attention to the 'lang' attribute when fetching the user's font prefs for the CSS cascade. r=dbaron.
2012-01-25 23:52:26 +00:00
Boris Zbarsky
a9e9757504
Bug 716628. Implement support for 'turn' unit in CSS. r=dbaron
2012-02-04 00:01:23 -05:00
Daniel Holbert
d8453750f1
Bug 695222 followup: fix indentation in column-fill chunk of nsRuleNode::ComputeColumnData. [ whitespace-only, DONTBUILD ]
2012-01-25 16:52:19 -08:00