Commit Graph

4374 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
e571b4aa87 Backed out changeset cce90c9b7d1d (bug 1228501) 2015-11-30 12:10:34 +01:00
L. David Baron
9d5f02c429 Bug 1228501 patch 5 - Remove NS_FONT_DECORATION_* constants. r=jdaggett
Decorations in Gecko are associated with the CSS 'text-decoration'
property, so the constants should live in nsStyleConsts.h, as they
largely already do (since the names defined there are the vast majority
of the uses).

--HG--
extra : commitid : 634GcFUlmHo
2015-11-29 23:15:37 -08:00
Benoit Girard
1d02928569 Bug 1225178 - Don't start APZ drag if we don't have a displayport to handle it. r=kats
--HG--
extra : commitid : G8zVPcrxj7b
2015-11-23 13:59:14 -05:00
Kartikaya Gupta
eb7ecd99cc Bug 1223928 (follow-up) - Back out one line of cset 474012a19e10 since it's not needed any more; the assertion went away. r=me
--HG--
extra : commitid : 6ZYsyhRVdqw
2015-11-26 14:32:27 -05:00
Jesse Ruderman
1b3b23c6e6 Bug 716503 - Crashtest. 2015-11-24 20:04:04 +01:00
Mark Finkle
0ae71e6ba8 Bug 1223526 - Create an empty theme for mobile/native UI r=margaret,mossop,gbrown 2015-11-20 12:03:01 -05:00
L. David Baron
8edfb62b0c Bug 1223653 patch 2 - Use an enum class for NS_STYLE_BOX_SIZING_*. r=heycam
The casts in nsCSSProps.cpp (defining kBoxSizingKTable) and in
nsComputedDOMStyle::DoGetBoxSizing (using
nsCSSProps::ValueToKeywordEnum) are a little bit annoying, though aren't
a net reduction in typesafety.

The casts in nsRuleNode.cpp (SetDiscrete) are a little more annoying,
though the change in this patch should be sufficient for converting all
properties -- but that may also mean reducing typesafety a bit for all
properties.

I'd like to find something better to do about them, but I think I'm ok
landing this before doing that.  Bug 1224918 covers doing better.

--HG--
extra : commitid : GEVyZB5b23F
2015-11-19 18:09:29 -08:00
Kartikaya Gupta
8a6023f387 Bug 1223928 - Update various reftests that now pass/fail with gecko scrollbars on Android&&asyncPan. r=snorp
--HG--
extra : commitid : G5eJp4xTljl
2015-11-19 09:55:21 -05:00
Nicholas Nethercote
f38ebf7649 Bug 1224482 (part 3) - Replace GetClientOffsetUntyped() with GetClientOffset(). r=kats.
The patch also changes nsMenuPopupFrame::mLastClientOffset to
LayoutDeviceIntPoint.

--HG--
extra : rebase_source : d7c0784efd332e382db3f2857c8f43eabc1c807c
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
7922110bde Bug 1224403 (part 2) - Split GetClientOffset() into typed and untyped versions. r=kats.
--HG--
extra : rebase_source : 5197f42325d36313ad8c6178baaabcf6f7df532c
2015-11-11 19:56:06 -08:00
Botond Ballo
6a70e1aa18 Bug 1222661 - Replace FromUntyped(obj) calls with FromUnknown*(obj). r=nical
--HG--
extra : rebase_source : c1afe8560b838e1a3be0ce50847861b1815d3dc9
extra : source : d649f163c825736efaf3ac3ad73040beeb48a6ef
2015-11-09 18:22:25 -05:00
Botond Ballo
a592a77364 Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical
--HG--
extra : rebase_source : 1cab46638599d8c4e6183c42a6fa9d41702392cb
extra : source : cabc28a2200b9b4e5e137d331ee5b86b3c09f065
2015-11-06 22:13:40 -05:00
Bas Schouten
d4041dbed1 Bug 1210560 - Part 2: Convert some simple users to use PushGroupForBlendBack. r=jrmuizel 2015-11-11 16:15:39 +01:00
Nicholas Nethercote
ad0dd8414a Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.

--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Nicholas Nethercote
4f45d5edc0 Bug 1223215 (part 1) - Convert some gfx{Point,Size} to gfx::{Point,Size}. r=roc.
This lets us remove some Thebes{Point,Size}() and To{Point,Size}() calls.

--HG--
extra : rebase_source : dc7a06e70e4a63401144dc4aa67eafeb7eb37320
2015-11-08 20:19:00 -08:00
Nick Robson
acd22ee0b8 Bug 1216284 - Tooltips do not flip correctly on OSX. r=enndeakin
--HG--
extra : rebase_source : fb1847a65adfd3d80cd0dc45e30d49729d840eff
2015-11-02 14:26:00 +01:00
Ryan VanderMeulen
028dec7cc8 No bug - Various crashtest manifest cleanups.
--HG--
rename : dom/base/crashtests/713417.html => dom/base/crashtests/713417-1.html
rename : dom/workers/test/1158031.html => dom/workers/test/crashtests/1158031.html
rename : dom/workers/test/779707.html => dom/workers/test/crashtests/779707.html
rename : dom/workers/test/943516.html => dom/workers/test/crashtests/943516.html
rename : dom/workers/test/crashtests.list => dom/workers/test/crashtests/crashtests.list
rename : layout/generic/crashtests/812879.html => layout/generic/crashtests/812879-1.html
rename : layout/generic/crashtests/first-letter-638937.html => layout/generic/crashtests/first-letter-638937-1.html
extra : rebase_source : b9274dc6870030ed62bcee35350d566160502869
2015-10-31 19:35:27 -04:00
Ryan VanderMeulen
da6b5efa5d Bug 871327 - Clean up assertion annotations on 791601.xhtml and add crashtest for referenced bug that was resolved WFM. 2015-10-30 19:41:19 -04:00
Ryan VanderMeulen
cc674dddb2 No bug - Remove annotations from the editor and layout crashtest manifests that are no longer needed. 2015-10-30 19:41:17 -04:00
Nathan Froyd
ffdbeed5f1 Bug 1220190 - use UniquePtr<T[]> instead of delete[] calls in layout/xul/; r=dholbert 2015-10-30 11:45:39 -04:00
Benoit Girard
698006ddf9 Bug 1211612 - Add DragInputBlock for async scrollbars. r=kats
--HG--
extra : commitid : Grx9aF2UvH2
extra : rebase_source : ea2601a2a3ac2870383fa86d8e7bd90342424ce1
2015-10-26 16:06:49 -04:00
Wes Kocher
5f77413dd1 Bug 1219972 - Bump the annotation r=me a=testonly
--HG--
extra : commitid : 7gI0dYntUCd
2015-10-29 17:51:14 -07:00
Daniel Holbert
2524caa7eb Bug 1218041, part 1: Give nsTreeBodyFrame::PaintImage a fallback codepath for painting SVG images with no explicit height or width. r=seth 2015-10-28 08:49:07 -07:00
Ryan VanderMeulen
361db003f6 Bug 1217984 - Add desktop assertion annotations as well. 2015-10-27 10:10:36 -04:00
Kyle Huey
c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Nicholas Nethercote
15397665d2 Bug 1187784 (part 7) - Replace nsBaseHashtable::EnumerateRead() calls in layout/ with iterators. r=heycam.
--HG--
extra : rebase_source : a627f6658ca7bbbf21b5338ef637ac9d76306f57
2015-10-22 22:47:21 -07:00
Nicholas Nethercote
b8f634b411 Bug 1187784 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in layout/ with iterators. r=heycam.
--HG--
extra : rebase_source : a52fb3cf996587e916816e9525a09ca2d7fb091a
2015-10-20 21:00:35 -07:00
Ryan VanderMeulen
1645fabc28 Bug 617089 - Add crashtest. 2015-10-25 00:06:23 -04:00
Ryan VanderMeulen
c1208c1624 Bug 366203 - Add crashtest.
--HG--
extra : rebase_source : ff09507d13528fcaf9b4aadd7d30e4592cfe7160
2015-10-24 15:03:19 -04:00
Seth Fowler
489e424221 Bug 1209765 (Part 11) - Support sync decoding and track draw results when drawing borders in nsTreeBodyFrame. r=tn 2015-10-22 19:54:49 -07:00
Seth Fowler
d72a6bf7aa Bug 1209765 (Part 10) - Support sync decoding and track draw results when drawing borders in nsGroupBoxFrame. r=tn 2015-10-22 19:54:49 -07:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
George Wright
e8d8cb32c6 Bug 1187404 - Allow tab to select an option from a select element in e10s r=Enn 2015-10-14 13:59:29 -04:00
Neil Deakin
79a594a069 Bug 1200870, allow -1 as a value to popup.moveTo, r=tn 2015-10-09 08:50:13 -04:00
Bobby Holley
755086b007 Bug 1212658 - Remove needless IsCallerChrome check in nsMenuPopupFrame. r=bz 2015-10-08 10:10:42 -07:00
Benoit Girard
b3c2569202 Bug 1199885 - Part 13: Let nsSliderFrame trigger async scrolling via StartScrollbarDrag. r=kats
--HG--
extra : commitid : LMXLmzjgQ4
2015-09-28 17:00:25 -04:00
Andrew McCreight
0ff7248107 Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.

I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Nicholas Nethercote
4fc2610c3c Bug 1211324 (part 4) - Replace GraphicsFilter constants with gfx::Filter equivalents. r=mattwoodrow.
The conversion is as follows:

- GraphicsFilter::FILTER_NEAREST == gfx::Filter::POINT
- GraphicsFilter::FILTER_GOOD    == gfx::Filter::GOOD
- GraphicsFilter::FILTER_BEST    == gfx::Filter::LINEAR

Also typedef GraphicsFilter to gfx::Filter; this will be removed in the next
patch.

These changes mean ToFilter() and ThebesFilter() are no longer needed.
2015-10-05 17:12:46 -07:00
Phil Ringnalda
41e2b2b6f7 Merge f-t to m-c, a=merge 2015-10-03 15:50:22 -07:00
Gijs Kruitbosch
9b4b5c21a8 Bug 1181560 - ensure previous menus get closed when opening new ones, r=Enn
--HG--
extra : commitid : 789RJ29ZNWF
extra : rebase_source : 1745b603a37dcd23bfeecbece9362e8395369c2f
2015-07-14 18:06:45 +01:00
Tooru Fujisawa
4b5a0cb0ba Bug 1207495 - Remove use of expression closure from layout/. r=bz
--HG--
extra : commitid : DsNCuxMDmUn
extra : rebase_source : 5d3f00526ecbd257ee54f176fe919ce6d20f6ed6
2015-09-23 18:40:36 +09:00
Nicholas Nethercote
a37228e1fe Bug 1207944 (part 4) - Use SetColor(const Color&) when setting from an nscolor. r=jwatt.
In various places SetColor() gets passed an nscolor. These are converted
(either implicitly or explicitly) to a gfxRBGA, and then to a gfx::Color.

This patch changes all these cases to avoid the middle step, by (a)
constructing a gfx::Color directly instead of an nscolor, or (b) by converting
an nscolor with Color::FromABGR().

--HG--
extra : rebase_source : ae423a422b37ada8ca0cb6f130350b4a71d58fc4
2015-09-23 23:41:30 -07:00
Bobby Holley
110f12e7ca Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Botond Ballo
4dcd72ae69 Bug 1205511 - Make nsMenuPopupFrame::MoveTo()'s arguments strongly typed. r=enn
--HG--
extra : source : 17c835a07d7ea9c0e3cd09f1a1f4c1759966a1e9
extra : histedit_source : 794a72fd4f8a0be4f955fd755646a19811139409
2015-09-28 20:17:34 -04:00
Neil Deakin
3b3f71946e Bug 1191897, add a flag for popups which allow shortcut keys to not be consumed, fixes shortcuts not working when an e10s select popup is open, r=neil 2015-09-17 11:20:33 -04:00
Masayuki Nakano
51d7268995 Bug 895274 part.243 Rename NS_TOUCH_END to eTouchEnd r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
52a7afe36c Bug 895274 part.242 Rename NS_TOUCH_MOVE to eTouchMove r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
7a48a6f2ab Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug 2015-09-15 00:14:34 +09:00
Milan Sreckovic
384b40b6e4 Bug 1203626 - remove the unused argument from nsTreeBodyFrame::GetTwistyRect. r=mattwoodrow 2015-09-10 10:55:00 +02:00
Masayuki Nakano
93a08167ad Bug 895274 part.214 Rename NS_SCROLLPORT_UNDERFLOW to eScrollPortUnderflow r=smaug 2015-09-12 01:19:27 +09:00