Commit Graph

157 Commits

Author SHA1 Message Date
Chris Peterson
6d17d1deff Bug 1240260 - Annotate intentional switch fallthroughs in dom/smil/ and dom/svg/. r=dholbert
dom/smil/nsSMILParserUtils.cpp:191:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/svg/SVGPathSegListSMILType.cpp:356:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/svg/SVGPathSegListSMILType.cpp:364:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/svg/SVGTransformListParser.cpp:147:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/svg/SVGTransformListParser.cpp:175:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/svg/SVGTransformListParser.cpp:204:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2016-01-14 01:38:47 -08:00
Robert Longson
d562b0a1cf Bug 1239128 - Implement LinkStyle for SVGStyleElement interface. r=cam r=bzbarsky 2016-01-14 18:43:11 +00:00
Nicholas Nethercote
4676f038a8 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Robert Longson
3c49ff05f5 Bug 1145195 part 2 - SVGFragmentIdentifier::ProcessSVGViewSpec() shouldn't actually let #svgView() affect attribute values r=dholbert 2015-12-14 00:58:01 +00:00
Bogdan Postelnicu
5e9c22fd7d Bug 1230106 - added assert on animVal. r=longsonr 2015-12-03 03:18:00 +01:00
Bogdan Postelnicu
1c69442ab4 Bug 1230135 - added assert on variable animVal. r=longsonr 2015-12-03 06:04:00 +01:00
Chris Peterson
57d527d933 Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc 2015-11-27 20:49:55 -08:00
Robert Longson
4b118e29ab Bug 1145195 part 1 - Create a helper function for PrependLocalTransformsTo in SVGContentUtils r=dholbert 2015-12-02 22:36:23 +00:00
Bobby Holley
a774ac30e8 Bug 773429 - Remove dom.disable_image_src_set. r=khuey 2015-11-23 14:08:34 -08:00
Andrea Marchesini
1cb308cc63 Bug 1213815 - Update URLSearchParams and URLUtils in webidl files, r=bz 2015-11-23 20:05:26 +00:00
Tom Klein
b824a27a11 Bug 676001 - Fix for stroke hit testing on cairo. r=jrmuizel
The mochitest was mostly written by Jonathan Watt (bug 719385).
2015-11-18 11:20:02 -06:00
L. David Baron
87f75f0802 Bug 1221436 patch 2 - For style attributes, only store a css::Declaration instead of a css::StyleRule. r=heycam
Now that Declaration implements nsIStyleRule, we don't need the memory
overhead of storing a StyleRule object for style attributes.

We also need to change this prior to patch 5, because the changes in
patch 5 that will allow rules to change (but declarations not) would
otherwise break due to style attribute object merging done by
nsAttrValue::ParseStyleAttribute.
2015-11-09 15:57:16 +08:00
Nathan Froyd
d10fd1abed Bug 1222172 - fix friend declaration in SVGSwitchElement; r=dholbert
clang-cl warns about this one, saying:

  "unqualified friend declaration referring to type outside of the nearest
  enclosing namespace is a Microsoft extension; add a nested name specifier"

It's not completely obvious to me how this is a Microsoft extension if
GCC and clang both manage to compile it, but explicit is better than
implicit, I suppose, so let's add the :: qualifier.
2015-11-05 14:47:28 -05:00
L. David Baron
cfabe21e8e Bug 978833 patch 18 - Eliminate StyleRule::RuleMatched and call Declaration::SetImmutable directly for style rules (like for @page and keyframe rules). r=heycam
This is just simplification (plus the addition of an assertion).
2015-11-05 16:44:10 +08:00
L. David Baron
99260b9bb7 Bug 978833 patch 12 - Use the css::Declaration instead of the css::StyleRule as the matching rule. r=heycam
This is the key change in this patch series; it changes the object we
use for style data (currently nsIStyleRule) identity.  It allows
removing some hacks we have to deal with that for StyleRule, and avoids
having to write similar hacks for nsCSSKeyframeRule and nsCSSPageRule
(which are broken without this).

I confirmed locally that it is this patch that fixes both of the todo_is
mochitests, by building and testing with the patch queue through patch
11, and again through patch 12.
2015-11-05 16:44:10 +08:00
Robert Longson
9e27700875 Bug 1166805 part 2 - Call SetCapacity before calling DOMSVGXXXList::MaybeInsertNullInAnimValListAt, to prevent fallible InsertElementAt calls from failing r=dholbert 2015-11-05 06:32:29 +00:00
Robert Longson
d000ce6b6f Bug 1166805 part 1 - refactor common tests for whether an animated list mirrors the base version of the list into methods. r=dholbert 2015-11-04 05:42:41 +00:00
Birunthan Mohanathas
f6aa64ea3b Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ryan VanderMeulen
c76533b080 No bug - Various crashtest manifest cleanups. 2015-10-31 19:35:27 -04:00
Birunthan Mohanathas
68c551a17a Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Tooru Fujisawa
65663915d7 Bug 1217093 - Remove for-each from dom/. r=smaug 2015-10-19 02:00:50 +09:00
Cameron McCormack
f9aaf3f1a9 Bug 1203610 - Don't load on-demand non-SVG UA sheets during static document clone. r=jwatt 2015-10-20 08:59:37 +11:00
Nathan Froyd
9c5965b035 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
2015-10-18 01:24:48 -04:00
Nathan Froyd
e504437747 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Zack Weinberg
9ceb4413b1 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-10-13 17:43:16 -04:00
Nicholas Nethercote
ef8c04357d 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
Robert Longson
e9f6e9d5eb Bug 1204061 - check return values from some methods r=dholbert 2015-10-06 13:19:03 +01:00
Andrew McCreight
c12e5e6826 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-05 09:38:14 -07:00
Wes Kocher
e1026febc7 Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE 2015-10-02 16:17:05 -07:00
Andrew McCreight
7e945ebfa7 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 15:09:02 -07:00
Andrew McCreight
cdc3ee4091 Backed out changeset 6fa9cdf4002b for breaking the build. 2015-10-02 10:49:28 -07:00
Andrew McCreight
5d0e76e23e Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 10:42:08 -07:00
David Anderson
84957ca102 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-10-01 23:06:43 -07:00
Tom Klein
56fccafab1 Bug 1209525 - Protect GetGeometryBounds from a singular non-scaling-stroke transform. r=longsonr 2015-09-30 08:05:00 +02:00
Wes Kocher
e8d13b3d93 Backed out changeset 919a831786f1 (bug 1208638) for windows build failures 2015-09-30 16:43:26 -07:00
David Anderson
5838dcf0f2 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-09-30 16:16:16 -07:00
Tom Klein
6261270a48 Bug 958160 - Compute bounds in transformed space instead of user space in GetCoveredRegion. r=longsonr 2015-09-22 10:31:00 +02:00
Michael Layzell
6261581c48 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Tom Klein
6f7466b95c Bug 1092125 - part 2 - add non-scaling-stroke support to SVGLineElement::GetGeometryBounds. r=jwatt 2015-09-02 20:10:00 +02:00
Tom Klein
db90d7ae1b Bug 1092125 - Part 1 - Add non-scaling-stroke support to nsSVGPathGeometryElement::GetGeometryBounds (except line). r=jwatt 2015-09-01 06:17:00 +02:00
Masayuki Nakano
a4e6050f9e Bug 895274 part.114 Rename NS_SVG_ZOOM to eSVGZoom r=smaug 2015-09-07 23:55:52 +09:00
Masayuki Nakano
5b5a352e4a Bug 895274 part.112 Rename NS_SVG_SCROLL to eSVGScroll r=smaug 2015-09-07 23:55:52 +09:00
Masayuki Nakano
726a94cc6d Bug 895274 part.109 Rename NS_SVG_LOAD to eSVGLoad r=smaug 2015-09-07 23:55:51 +09:00
Wes Kocher
8700dcb6b5 Backed out 2 changesets (bug 1035091)
a=backout

Backed out changeset 1fc07bdd9aa8 (bug 1035091)
Backed out changeset f6e98029d1cb (bug 1035091)
2015-09-03 11:41:39 -07:00
Zack Weinberg
50d9ee1776 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-09-02 13:52:49 -04:00
Nigel Babu
bb82081a8b Backed out changeset 1f22cefbef23 (bug 1092125) for M3 bustage on CLOSED TREE 2015-09-02 11:34:47 +05:30
Nigel Babu
55776feb66 Backed out changeset 4a68226609c8 (bug 1092125) for M3 bustage on CLOSED TREE 2015-09-02 11:34:34 +05:30
Tom Klein
e0d1440cb7 Bug 1092125 - Part 2: Add non-scaling-stroke support to SVGLineElement::GetGeometryBounds. r=jwatt 2015-08-19 14:48:00 -04:00
Tom Klein
896fd0c430 Bug 1092125 - Part 1: Add non-scaling-stroke support to nsSVGPathGeometryElement::GetGeometryBounds (except line). r=jwatt 2015-09-01 06:17:00 -04:00
Nicholas Nethercote
10d95cca57 Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00