Mike Hommey
b077d9624d
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Mats Palmgren
25fa3a4765
Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc
2015-03-30 11:36:14 -04:00
Carsten "Tomcat" Book
5c532881b3
Backed out changeset 513192eb7df4 (bug 1148971) for causing bc2 memory leaks
2015-03-30 15:04:09 +02:00
Mats Palmgren
2121f47090
Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc
2015-03-30 10:37:33 +00:00
Nicolas Silva
e3eaf89e3f
Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc
2015-03-29 16:59:08 +02:00
Jeff Muizelaar
2911685bf3
Bug 1148235. Cleanup the state that we maintain in SimplifyOutwardByArea. r=ehsan
...
Useless assignment removed and move a duplicated assignment out of the condition.
--HG--
extra : rebase_source : bc67a5ce78608dac1655f050dcf145e0f4fed676
2015-03-27 14:22:07 -04:00
Seth Fowler
39007175b4
Bug 1147706 - Warn if we don't use the result of const methods on BaseRect and its subclasses. r=tn
2015-03-26 15:39:47 -07:00
Timothy Nikkel
d6eff64aa4
Bug 1144951. Rename ConvertAppUnits to ScaleToOtherAppUnits. r=mats
2015-03-26 16:44:40 -05:00
Timothy Nikkel
c4865b4a3a
Bug 1144951. Warn if the result of ConvertAppUnits is unused. r=mats
...
There is never a case where Ignoring the result makes sense.
2015-03-26 16:44:38 -05:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Botond Ballo
d70b1ea0e6
Bug 1043013 - Introduce IntRegionTyped. r=jrmuizel
...
--HG--
extra : rebase_source : 109fe53588254256b5575e082f709a0cb71fe877
extra : source : d7db1f0cb75b689316da6671bed37d496d17e90c
2015-03-16 13:42:15 -04:00
Botond Ballo
9eb1be5aef
Bug 1043013 - Generalize nsIntRegion into a BaseIntRegion template. r=jrmuizel
...
--HG--
extra : rebase_source : 73f006c3460032c8597a6f4ff673f41664137daa
extra : source : 5744fef5049cf90ee760be16c0febbde34bea8f8
2015-03-13 20:40:47 -04:00
Jonathan Kew
af316a7d7d
Bug 1136557 - pt 2 - Round maxDescent similarly to maxAscent in nsFontMetrics. r=smontagu
2015-03-12 10:47:50 +00:00
Jeff Muizelaar
69363dcf7f
Bug 1130978. Fix VisitEdges. r=kats
...
The code is broken because in the else case of VisitNextEdgeBetweenRect we
assume that r2->x1 < r1->x1. This is not always the case.
The fix is to have VisitNextEdgeBetweenRect return whether there's an overlap.
The calling code can than adjust x1 appropriately if r1 != r1_end && r2 != r2_end.
2015-03-11 01:18:30 -04:00
Milan Sreckovic
2a20389bd8
Bug 1133160 - Matrix filters should have 20 elements. r=mstange
2015-02-18 18:11:54 -05:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Markus Stange
6e4e723923
Bug 1092634 - Let feColorMatrix and feComponentTransfer generate output outside their input's bounds. r=Bas
...
This makes the color matrix and component transfer Moz2D filters generate
an infinite output, which is then cropped to the primitive's filter
primitive subregion by a subsequent crop filter node. This still gives us
different behavior than other browser when the primitive subregion is
overridden using the x/y/width/height attributes - other browsers either
ignore those completely (IE) or only let them crop the default subregion
(which is defined to be the same as the input subregion) and not enlargen
it - but I'll fix that in a separate bug.
2015-02-09 14:04:11 -05:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Markus Stange
2f12e52126
Bug 1045213 - Add nsITheme::ThemeGeometryTypeForWidget. r=roc
2015-02-04 17:25:18 -05:00
Markus Stange
a45c78dc89
Bug 1045213 - Make ns(Int)Region methods chainable. r=jrmuizel
2015-02-04 17:25:18 -05:00
Masatoshi Kimura
6cc5dabbee
Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo
2015-01-26 07:22:11 +09:00
Masatoshi Kimura
be535304d8
Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo
2015-01-26 07:22:07 +09:00
Nicholas Nethercote
1b277a4288
Bug 1123527 - Fix syntax error when NS_COORD_IS_FLOAT is defined. r=dholbert.
...
cppcheck found this.
--HG--
extra : rebase_source : 6a83556a8baaa24546eeb28d35ad63f4ffd275bd
2015-01-21 19:23:28 -08:00
peter chang
1542486ff2
Bug 1113524 - Fix the crash at nsDeviceContext::FindScreen() because mScreenManager is nullptr. r=tn
2015-01-20 17:52:00 -05:00
Jonathan Kew
e5ef938a64
Bug 1111944 - part 1 - Make nsLayoutUtils::DrawString (and the nsFontMetrics methods it calls) handle vertical text. r=smontagu
2015-01-06 20:56:03 +00:00
Jonathan Kew
b77ae133f8
Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett
2014-12-22 16:35:54 +00:00
Jeff Muizelaar
20f3c3c33a
Bug 1117869. Add move constructors and assignment operators for nsRegion. r=botond
...
This adds some efficiency around the usage of nsRegion.
--HG--
extra : rebase_source : d97569b4ba36cfb9ac25959f0634e18f60209809
2015-01-05 21:13:35 -05:00
Jonathan Kew
a896eab424
Bug 1108616 - part 2 - Add an explicitLanguage field to gfxFontStyle, and pass it down from callers. r=dbaron
2014-12-23 12:50:10 +00:00
Ehsan Akhgari
ca5c6ca575
Bug 1109699 - Fix more bad implicit constructors in gfx and image; r=jrmuizel
2014-12-10 17:48:11 -05:00
Karl Tomlinson
70ad9ee0ee
bug 1096132 rename nsDeviceContext PixelScale to FullZoom r=tn
...
--HG--
extra : rebase_source : b78ffe7ffddf47a9646c1766626f48aed67ebb09
2014-11-10 15:47:55 +13:00
Karl Tomlinson
52e75f00f9
bug 1096132 rename UpdateScaledAppUnits() to UpdateAppUnitsForFullZoom() r=tn
...
--HG--
extra : rebase_source : d8fee82d9740fc0067d7b9a6e3d6d82fbbb85db0
2014-11-08 17:30:15 +13:00
Karl Tomlinson
ed15675b8b
bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
...
--HG--
extra : rebase_source : 220ede5d449a752c16064bb77905bc68af3df707
2014-11-14 00:53:02 +13:00
Wes Kocher
92049c1863
Backed out changeset 41ecbb9a5fac (bug 1092634) for reftest bustage
2014-11-18 17:21:08 -08:00
Markus Stange
cacfe982d9
Bug 1092634 - Let feColorMatrix and feComponentTransfer generate output outside their input's bounds. r=Bas
...
This makes the color matrix and component transfer Moz2D filters generate an infinite output, which is then cropped to the primitive's filter primitive subregion by a subsequent crop filter node. This still gives us different behavior than other browser when the primitive subregion is overridden using the x/y/width/height attributes - other browsers either ignore those completely (IE) or only let them crop the default subregion (which is defined to be the same as the input subregion) and not enlargen it - but I'll fix that in a separate bug.
2014-11-18 17:21:19 -05:00
Karl Tomlinson
a3ba9b4cb5
backout bug 1096132 for Mac build failure
...
--HG--
extra : rebase_source : 6994fe50e8fb1a4f89298e1b9ad1c714acdfe39e
2014-11-12 16:02:34 +13:00
Karl Tomlinson
4b1c0e2e81
bug 1096132 rename nsDeviceContext PixelScale to FullZoom r=tn
...
--HG--
extra : rebase_source : 06d57772b2dc04d606b3d98517085aeb817ae0e8
2014-11-10 15:47:55 +13:00
Karl Tomlinson
2f7cdcc695
bug 1096132 rename UpdateScaledAppUnits() to UpdateAppUnitsForFullZoom() r=tn
...
--HG--
extra : rebase_source : ec70af284ea91d28e6f66b487c7a543a1d93c7cc
2014-11-08 17:30:15 +13:00
Karl Tomlinson
4b187d31fa
bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
...
--HG--
extra : rebase_source : 113b249f2cb6f1619e0b1a495655726b5100038b
2014-11-08 17:48:14 +13:00
Jonathan Watt
5767be9b18
No bug - Get rid of some unnecessary nsRenderingContext.h includes and nsRenderingContext forward declarations.
...
--HG--
extra : rebase_source : 2e682062b0c4fe3c1e916ed7c7b7ca98ec3b54d3
2014-11-06 22:07:35 +00:00
stefanh@inbox.com
14f3e74c30
Bug 1085134 - Native theming for Mac OS X disclosure buttons, widget part. r=mstange, roc.
2014-11-01 17:13:27 +01:00
Jonathan Watt
bf49eb7f25
Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel
2014-10-31 20:08:49 +00:00
Markus Stange
defd3c048d
Bug 1055634 - Propagate font smoothing background colors to layers. r=roc
2014-10-24 18:32:23 +02:00
Jonathan Watt
662ee62b6c
Bug 1088625, part 4 - Remove the includes from nsRenderingContext.h that are no longer necessary
2014-10-24 16:43:42 +01:00
Jonathan Watt
4f23ebac06
Bug 1088625, part 3 - Remove nsRenderingContext's SetFont, FontMetrics and SetTextRunRTL methods now that no one uses them any more. r=mstange
2014-10-24 16:28:15 +01:00
Jonathan Watt
35505a8b96
Bug 1088599 - Move nsRenderingContext::GetBoundingMetrics to nsLayoutUtils. r=mstange
2014-10-24 16:28:14 +01:00
Jonathan Watt
08ae0a017c
Bug 1088550 - Move nsRenderingContext's remaining GetWidth methods to nsLayoutUtils. r=mstange
2014-10-24 16:28:13 +01:00
Jonathan Watt
2994c1b237
Bug 1088071, part 2 - Move the nsRenderingContext::DrawString code to nsLayoutUtils::DrawUniDirString. r=jfkthame
2014-10-24 11:00:23 +01:00
Jonathan Watt
11ce2774d2
Bug 1087982, part 3 - Get rid of the ASCII variants of nsRenderingContext::DrawString/GetWidth. r=jfkthame
2014-10-24 11:00:23 +01:00
Jonathan Watt
21b1d08170
Bug 1087982, part 2 - Get rid of the pass-char-by-value variant of nsRenderingContext::GetWidth. r=jfkthame
2014-10-24 11:00:22 +01:00