Commit Graph

142 Commits

Author SHA1 Message Date
Kathy Brade
c473141fc9 Bug 232227 - Do not expose system colors to CSS or canvas. r=jmuizelaar r=enndeakin tor-r=arthuredelstein 2015-09-25 00:59:00 +02:00
Nicholas Nethercote
0929981996 Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
2015-09-23 11:49:05 -07:00
Matt Woodrow
295e5cc3c8 Bug 1206161 - Make sure the DrawTarget is available when creating a CanvasLayer so that we can check for SkiaGL. r=Bas 2015-09-23 20:30:06 -04:00
Bas Schouten
bfcc88740c Bug 1206076: Use a specialized PersistentBufferProvider for Canvas2D when using a SkiaGL DrawTarget. r=jrmuizel 2015-09-21 00:30:59 +02:00
Andreas Pehrson
193016035c Bug 1161913 - Part 1 - Add invalidation state for CaptureStream to Canvas and Contexts. r=mt 2015-09-17 11:37:05 +08:00
Lee Salzman
5ffe4543a3 Bug 655328 - clip canvas drawImage source/dest rectangles instead of throwing IndexSizeError. r=jmuizelaar 2015-09-11 11:14:32 -04:00
Lee Salzman
1aea8a99f2 Bug 1074733 - Part 1 - Normalize Canvas 2D rects to be positive by flipping negative width or height. r=jmuizelaar 2015-09-11 11:29:17 -04:00
John Daggett
f1d75570fb Bug 1203809 - pass textperf obj into gfxFontGroup constructor. r=m_kato 2015-09-11 13:24:33 +09:00
Bas Schouten
bbbdf00ad7 Bug 1192159: Do not forget about the transform when not using an active target. r=jrmuizel 2015-09-02 12:20:59 +00:00
Lee Salzman
1b79409525 Bug 1190705 - Ensure that canvas 2d matrix transforms are finite. r=Bas, r=jrmuizel 2015-08-05 18:48:25 -04:00
Markus Stange
6c0342f36a Bug 1164766 - Clean up error checking in CanvasRenderingContext2D. r=mats 2015-07-14 16:59:12 -04:00
Lee Salzman
3fc9ce856e Bug 1191608 - initialize element to null in CanvasRenderingContext2D::DrawImage. r=bas 2015-08-06 12:07:09 -04:00
Bas Schouten
4e6c7397b3 Bug 1188752: Ensure persistence of DrawTarget when using InitializeWithSurface. r=jrmuizel 2015-08-05 19:00:03 +00:00
Kaku Kuo
b9757ebfab Bug 1044102 - Part 2 - Support ImageBitmap as CanvasImageSource. r=smaug 2015-07-30 20:49:00 +02:00
Matt Woodrow
0773bd7723 Bug 1150944 - Remove objects that have been unlinked by the cycle collector from the demotable context list. r=ehsan 2015-07-29 16:35:55 -04:00
Wes Kocher
47eb6fb630 Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow
b80a45066c Bug 1150944 - Remove objects that have been unlinked by the cycle collector from the demotable context list. r=ehsan 2015-07-29 16:35:55 -04:00
Lee Salzman
d5e7ce7cb2 Bug 1186689 - check for OOM on destination array before mapping source to avoid needing unmap. r=bas 2015-07-23 11:39:22 -04:00
Mike Hommey
654f463fd7 No bug - Remove outdated comment and additional comment questioning its relevance. r=me DONTBUILD
The first half of the comment was added in bug 534467.
At that point the code looked like:
  // NOTE! dst is the same as src, and this relies on reading
  // from src and advancing that ptr before writing to dst.
  PRUint8 *src = aData;
  PRUint8 *dst = aData;

It was in content/canvas/src/nsCanvasRenderingContext2D.cpp.

Then bug 651858 added nsCanvasRenderingContext2DAzure.cpp, starting
from nsCanvasRenderingContext2D.cpp. The comment was kept, but the
code was modified such that src and dst were different things.

Then bug 734668 removed nsCanvasRenderingContext2D.cpp, and finally
renamed nsCanvasRenderingContext2DAzure.cpp to CanvasRenderingContext2D.cpp.

The comment questioning the relevance of the first comment was added
in bug 764125, when the file was still nsCanvasRenderingContext2DAzure.cpp.
2015-07-26 11:39:47 +09:00
Jeff Gilbert
b1f1e1a811 Bug 1182371 - Misc WebGL cleanup. - r=kamidphish 2015-07-14 17:37:28 -07:00
Lee Salzman
1c4d89ab84 Bug 1183363 - Make EnsureWritablePath and EnsureUserSpacePath always imply EnsureTarget. r=Bas 2015-07-14 00:01:29 -04:00
Milan Sreckovic
79d8766296 Bug 1177726 - Inflate the bounds when stroking the canvas text. r=jmuizelaar 2015-07-10 12:04:56 -04:00
Botond Ballo
d61e3f0a5b Bug 1181832 - Keep gfxPrefs.h out of header files. r=kats 2015-07-13 11:53:10 -04:00
Birunthan Mohanathas
a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Birunthan Mohanathas
539a24f3db Bug 1182824 - Part 2: Make ContextState::dash a nsTArray. r=mattwoodrow 2015-07-12 23:19:12 -07:00
Birunthan Mohanathas
cf84ed7cd3 Bug 1182824 - Part 1: Use move assignment rather than copy assignment with ContextState::dash. r=mattwoodrow 2015-07-12 23:19:12 -07:00
Carsten "Tomcat" Book
58d958e306 Backed out changeset 7bffe6c8fd4d (bug 1177726) for test regressions in 1177726-text-stroke-bounds.html on a CLOSED TREE 2015-07-09 13:02:13 +02:00
Milan Sreckovic
d6dd99fa99 Bug 1177726 - Inflate the bounds when stroking the canvas text. r=jmuizelaar 2015-07-08 07:45:00 +02:00
Robert O'Callahan
74bf60da8a Bug 1143575. Replace ImageContainer Lock methods with simplified AutoLockImage. r=nical 2015-03-27 12:07:53 +13:00
Nathan Froyd
92a8124fef Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Bas Schouten
29b9bb92b6 Bug 1167235 - Part 3: Switch CanvasRenderingContext2D to use the new BufferProvider API. r=nical 2015-06-19 01:07:21 +02:00
Andreas Pehrson
4ff090a008 Bug 1162357 - Convert some usage of DataSourceSurface::GetData() to Map(). r=bas 2015-06-10 19:01:00 +08:00
Markus Stange
423991210c Bug 1163105 - Flush frames before building the filter. r=roc 2015-06-09 18:49:17 -04:00
David Anderson
7fdcf3d5d4 Add an API for snapshotting widgets as they are presented by the operating system. (bug 1167477, r=mattwoodrow, dom r=khuey) 2015-06-04 14:19:06 -07:00
Jonathan Kew
7242df454b Bug 1107096 - Suppress improper drawing of zero-width invisible glyphs in canvas. r=roc 2015-05-30 14:07:16 +01:00
Birunthan Mohanathas
956e8c7eca Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
Carsten "Tomcat" Book
e752906545 Backed out changeset 45998275f423 (bug 857895) 2015-05-26 08:59:47 +02:00
Matt Woodrow
a5ec579e4a Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Andrea Marchesini
206d86a9a3 Bug 1167423 - patch 4 - Handle return values of FallibleTArray functions in CanvasRenderingContext2D, r=smaug 2015-05-25 12:50:15 +01:00
Nathan Froyd
43cddcfc0d Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Nathan Froyd
f3fabc2d6c Bug 1116905 - part 1 - remove dependence on implicit conversion from T* to TemporaryRef<T>, non-gfx changes; r=ehsan 2015-04-30 15:17:08 -04:00
Matt Woodrow
16b76a4118 Backout e01d80922187 (Bug 857895) for causing crashes 2015-05-19 10:50:41 +12:00
Matt Woodrow
56e221fd16 Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Vladimir Vukicevic [:vlad]
1a2753aeee Bug 1114333 - "putImageData(imageData, 0, 0, 0, 0, 1, 1) unreasonably slow". r=bas 2015-03-24 07:03:00 +01:00
Phil Ringnalda
945b4eaac7 Back out 4f682f01262e (bug 857895) for widespread destruction
CLOSED TREE
2015-05-11 19:53:28 -07:00
Matt Woodrow
9965dd8ee7 Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Carsten "Tomcat" Book
b5ec287400 Backed out changeset 41c408a2662e (bug 857895) for bustage on a CLOSED TREE 2015-05-11 10:28:56 +02:00
Matt Woodrow
1ae6f5757d Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Seth Fowler
6cb966a0e5 Bug 1162282 - When canvas.drawImage is called on a corrupt image that's not in the broken state, don't throw. r=gw280 2015-05-07 09:25:10 -07:00
Nicolas Silva
61a7a42df6 Bug 1155252 - Add a pref to control the maximum canvas 2d size and set it to 0x7ff. r=jrmuizel 2015-04-22 12:06:53 +02:00