Commit Graph

23 Commits

Author SHA1 Message Date
Lee Salzman
b759e943a3 Bug 1201937 - push transform onto cairo context when evaluating path bounds. r=eihrul 2015-09-21 13:33:06 -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
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
Nathan Froyd
3c715f85db Bug 1116905 - part 3 - remove dependence on implicit conversion from T* to TemporaryRef<T>, gfx changes; r=jrmuizel 2015-04-30 15:20:30 -04:00
Jonathan Watt
12ba8e81c5 Bug 1024983 - Stop addrefing and releasing excessively in the Moz2D code in functions that return a TemporaryRef. r=mstange 2014-06-13 17:09:23 +01:00
Benoit Jacob
61c6bc7c4e Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Jonathan Watt
6a76b35449 Bug 944704, part 1 - Extend Moz2D's ArcToBezier helper so that it can draw ellipse arcs in addition to circle arcs. r=Bas 2013-12-13 12:14:36 +00:00
Bas Schouten
a573fa6bf0 Bug 935297 - Part 3: Implement new API to allow streaming paths to arbitrary sinks on Cairo. r=mattwoodrow 2013-11-07 22:11:26 +13:00
Daniel Holbert
f9683cb16a Bug 924749: Make loop variable signed-ness match the type they're compared against, to fix signed/unsigned warnings in PathCairo.cpp. r=Bas 2013-10-11 08:55:03 -07:00
Bas Schouten
1e0b404367 Bug 918613: Convert cairo path code to use cairo_path_t. r=jrmuizel 2013-09-28 16:20:24 +02:00
Matt Woodrow
bd02161da0 Bug 904884 - Assign RAII class instances to variables in PathCario so that they stay alive for the correct scope. r=nrc 2013-08-21 11:55:53 +12:00
Tobias Schneider
efc2c6c82a Bug 803124 - Implement mozIsPointInStroke. r=jmuizelaar 2012-10-29 16:54:53 +01:00
Andrew Quartey
a7d8d6fc00 Bug 793201 - Fix compiler warnings in Azure with MSVC r=bas 2012-09-28 13:21:40 -04:00
Andrew Quartey
22cd324f2b Bug 788398 - Remove unused variable 'rule' in CairoPathContext::DuplicateContextAndPath r=bjacob 2012-09-06 20:16:30 -04:00
Anthony Jones
18034285f8 Bug 784573 - Fix problems converting cairo paths between user space and device space. r=joe 2012-09-03 17:48:04 -04:00
Joe Drew
3f0afe00d0 Bug 782416 - Switch from NULL to nullptr in gfx::2d. r=Bas 2012-08-14 14:06:12 -04:00
Joe Drew
0a4da78c18 Back out 98d2c24ce932 for failing to build r=moron 2012-08-15 12:51:33 -04:00
Joe Drew
123b07964c Bug 782416 - Switch from NULL to nullptr in gfx::2d. r=Bas 2012-08-14 14:06:12 -04:00
Nicholas Cameron
65f71bc5e0 Bug 764125; Fix a bug where a path with a transform is re-used. r=Bas 2012-07-24 22:18:38 +12:00
Nicholas Cameron
3c9935e75a Back out bug 746883, bug 764125, bug 761895, bug 746883, bug 748116 2012-07-26 18:48:24 +12:00
Nicholas Cameron
2f38e0a8b6 Bug 764125; Fix a bug where a path with a transform is re-used. r=Bas 2012-07-24 22:18:38 +12:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Joe Drew
f5ac7bf2fb Bug 707848 - Implement paths in the 2D API's Cairo backend. r=jrmuizel 2012-01-09 17:15:10 -05:00