Commit Graph

232 Commits

Author SHA1 Message Date
Vladimir Vukicevic
b25dd7a8bf b=446323, Upgrade cairo to 1.6.4-348-g96c9e2a; r=vlad 2008-07-20 14:15:22 -07:00
John Daggett
c89140eb33 Bug 433997. Catch null ptrs returned by CGFontGetHMetrics in cairo mac font code to prevent top crasher. r+sr=vlad 2008-07-01 09:02:21 +09:00
gavin@gavinsharp.com
77623d122c Bug 432071: Type 1 fonts don't print correctly, patch by Adrian Johnson <ajohnson@redneon.com>, r=stuart, a=schrep 2008-05-08 09:48:15 -07:00
Vladimir Vukicevic
2638e3dc51 [qpainter] Create QImages directly from image surfaces used as source 2008-05-04 11:51:37 -07:00
Vladimir Vukicevic
61173d504c [qpainter] Use drawTiledPixmap if possible; abstract fast filling code from paint() and fill() 2008-05-04 11:17:52 -07:00
Vladimir Vukicevic
a3f57ae957 [qpainter] Use drawImage/drawPixmap in fill() for non-repeating sources 2008-05-01 11:54:35 -07:00
Vladimir Vukicevic
2de5a08c00 Branch merge. 2008-05-01 09:23:23 -07:00
Oleg Romashin
25d501d465 Fixed optimized cairo_surface_fill for image surface
Enable OptimizeImage for X11 QSurface
2008-05-01 14:50:24 +03:00
Vladimir Vukicevic
861b6a8679 Merging mozilla-central to mozilla-qt. 2008-04-30 16:00:19 -07:00
vladimir@pobox.com
89790e741b b=431391; printing pages with type1 fonts on win32 prints garbage; patch from upstream; r+a=me 2008-04-30 09:45:24 -07:00
Vladimir Vukicevic
b8dc499b49 [cairo-qpainter] Create QPixmaps with an alpha channel if required 2008-04-28 18:15:30 -07:00
vladimir@pobox.com
4b5e5cb7f8 b=430979, CGFont leaks -- patch from upstream; r=me, a=damon 2008-04-28 14:27:35 -07:00
vladimir@pobox.com
cf8ffd14c5 b=429678, crash with failed printing of outset border with transparency; patch from upstream; a=me 2008-04-25 09:35:24 -07:00
Vladimir Vukicevic
6e1b75baa7 [qpainter] take redirected device offsets into account in acquire_source_surface 2008-04-20 06:50:50 -07:00
Vladimir Vukicevic
fe62d13caf [qpainter] Correctly convert QMatrix -> cairo_matrix_t 2008-04-20 01:41:51 -07:00
Vladimir Vukicevic
750f140f1d [qpainter] Implement gradients in qpainter cairo backend; cleanup ben/brush conversion 2008-04-20 01:41:25 -07:00
Vladimir Vukicevic
ed0e67d29f [qpainter] Add getters for QImage; also make OptimizeImages a noop
The QPainter back end knows how to create a QImage from an image surface
while painting, so no need to copy the image.
2008-04-20 01:40:10 -07:00
Vladimir Vukicevic
a144ca692a [qpainter] Set a clip on the xlib surface when drawing glyphs; correct redir offsets
Also create an xlib surface correctly for widgets, taking into account
redirected device offsets (such as when double buffering)
2008-04-20 01:35:51 -07:00
vlad
e7ce5b00f4 Qt: widget/gfx work (gfx part)
- Fix crash on window close
  - Qt expects the QWidget to remain available even after it has
processed a close event. So, use deleteLater() instead of
deleting outright.
  - Also carry around the MozQWidget pointer (though we need to rework
CreateQWidget and ::Initialize) so that we can call dropReceiver

- Fix screen <-> widget coordinate translation
  - Fixes popup menu positioning

- Honor mayWait in nsAppShell::ProcessNextNativeEvent
  - Prevents massive busy-waiting

- Don't pretend to support translucent windows

- Fix embedding widget build failure

- cairo-qpainter: invert source matrix in paint() to get proper
transform (proper positioning of elements drawn using paint())

- Cleaner event handling in mozqwidget -- return full nsEventStatus,
not just boolean, and decide whether to call QWidget::event() based
on that.
2008-04-20 11:27:17 +03:00
romashin
40e2385b88 Fixed compilation problems with sb-QT arm 2008-04-19 18:53:37 +03:00
romashin
70e531b8b4 Still some indent fixes 2008-04-19 18:43:27 +03:00
romashin
7831d65b1a Added new cairo-qt surface from Vlad's patch
New created files moved in sandbox/qt_port.. cairo and gfxQPainterSurface
Changes for existing files applyed from 100_qt-qpainter-cairo.diff
Fixed building non deb mozilla with build_non_deb.sh script
Fixed tab-spaces in new created file cairo-qpainter-surface.cpp
2008-04-19 18:43:23 +03:00
romaxa@romaxa.research.nokia.com
6c3e325d4b Add new cairo-qpainter backend for building in cairo-qt configuration 2008-04-19 16:34:30 +03:00
roc+@cs.cmu.edu
153c4bfed0 Bug 409227. _cairo_clip_init_deep_copy should pass 0,0 as the starting coordinates when it clones the clip surface, because we just want an exact copy of the surface. r=vlad,a=beltzner 2008-04-17 01:22:31 -07:00
vladimir@pobox.com
253308a219 b=428563, minor upgrade to cairo 1.6.4, really this time; r=me,a=beltzner 2008-04-16 05:44:28 -07:00
vladimir@pobox.com
caa7ec4ebe backout? 2008-04-11 13:08:04 -07:00
vladimir@pobox.com
e3f40cc890 forgot to update README file 2008-04-11 12:45:28 -07:00
vladimir@pobox.com
8339071796 b=428563, Upgrade Cairo to 1.6.2; r=me,a=beltzer 2008-04-11 12:38:41 -07:00
vladimir@pobox.com
7e9ef5c071 b=419715, minor cairo upgrade to un-roll-back regressions and add fixes from upstream ; r=me 2008-04-08 13:11:21 -07:00
vladimir@pobox.com
50e6dca1da roll back cairo commit c1062bf to fix assertion failures 2008-04-07 02:17:14 -07:00
vladimir@pobox.com
b768ba704e b=419715, upgrade cairo to 1.6 or as-close-as-possible -- add patch to fix cairo bustage ; r=me 2008-04-06 22:09:53 -07:00
vladimir@pobox.com
7439270a65 b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch cairo-upgrade-more.patch ; r=me 2008-04-06 22:09:44 -07:00
vladimir@pobox.com
06c698810e b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch cairo-upgrade.patch ; r=me 2008-04-06 22:08:30 -07:00
vladimir@pobox.com
29dafd8255 b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch pixman-upgrade.patch ; r=me 2008-04-06 22:07:38 -07:00
vladimir@pobox.com
3f56db9279 backout [mq]: cairo-rollback.patch 2008-04-06 16:34:08 -07:00
vladimir@pobox.com
15fb35ff66 b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch cairo-upgrade-more.patch ; r=me 2008-04-06 15:14:31 -07:00
vladimir@pobox.com
2d82be0e34 b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch cairo-upgrade.patch ; r=me 2008-04-06 15:14:09 -07:00
vladimir@pobox.com
66ca70eb2d b=419715, upgrade cairo to 1.6 or as-close-as-possible -- imported patch pixman-upgrade.patch ; r=me 2008-04-06 15:13:57 -07:00
vladimir@pobox.com
30ffae6ef2 b=423524, CGContextGetType warnings showing up in console, r=stuart 2008-03-18 13:36:40 -07:00
mozilla@weilbacher.org
89161426b2 [OS/2] Bug 423115: OS/2 build break about GCC parameters in libpixman, r=vlad 2008-03-15 11:45:30 -07:00
vladimir@pobox.com
a8e39d6a63 b=421422, cairo upgrade followup, fixing subpixel AA on OSX 2008-03-14 23:20:21 -07:00
vladimir@pobox.com
4bdbafdc90 b=421422, cairo upgrade ; r=me 2008-03-14 20:45:12 -07:00
vladimir@pobox.com
cf1fc3fd9a b=421422, cairo upgrade ; r=me 2008-03-14 20:44:23 -07:00
roc+@cs.cmu.edu
11aa232422 Bug 403181. Pass the desired source rectangle for background images down into nsThebesImage and ensure we don't sample outside it. Back out a bad pixman patch that caused regressions, and adjust image encoding tests so they don't depend on the regression. Also switchs some reftests to quirks mode so that the 1-appunit width of <br>s doesn't bite us. r=vlad,sr=dbaron 2008-03-09 14:55:05 -07:00
roc+@cs.cmu.edu
72bddc7c36 Backing out Bug 403181. JPEG encoding test failure :-( 2008-03-07 01:28:34 -08:00
roc+@cs.cmu.edu
18b5f6db55 Bug 403181. Various fixes to image rendering. Most importantly, we track the desired subimage of a CSS background image and ensure we don't sample outside it. r=vlad,sr=dbaron 2008-03-07 00:34:12 -08:00
vladimir@pobox.com
3a604831df b=421017; upgrade cairo to 1.5.12-14-gd89edde -- additional fixes ; r=me 2008-03-04 21:45:09 -08:00
vladimir@pobox.com
c12016b91e b=421017; upgrade cairo to 1.5.12-11-g2f93504 ; r=me 2008-03-04 21:44:55 -08:00
vladimir@pobox.com
b75557232a b=418353, sync up cairo to 1.5.8-87-g21049a9 imported patch 418353-cairo-upgrade.patch 2008-02-19 14:52:57 -08:00
vladimir@pobox.com
8f0d8b3d02 b=416018, upgrade cairo to 1.5.8-30-g80e11a8 ; r=me 2008-02-13 22:54:26 -08:00
vladimir@pobox.com
6f5a262267 b=416181, animated image used as repeated background broken ; r=stuart 2008-02-13 22:51:58 -08:00
reed@reedloden.com
48057599e5 Bug 415867 - "AIX Compilation error for trunk build source cairo-gstate.c : line 45.43: 1506-294 (S) Syntax error in expression on #if directive." [p=shailen.n.jain@gmail.com (Shailen) r+sr=roc a1.9=schrep] 2008-02-13 03:31:00 -08:00
vladimir@pobox.com
ebe7dd1924 Add missing patch file (npotb) 2008-02-07 12:02:40 -08:00
vladimir@pobox.com
95e9d58680 b=414685, optimize mac image decoding and rendering ; r=stuart 2008-02-05 22:48:47 -08:00
vladimir@pobox.com
708bf474be b=367618, initial win32 8bpp bits, r=stuart 2008-01-29 11:00:57 -08:00
vladimir@pobox.com
24f4d64937 b=513583, bandaid for X repeat bug, r=stuart 2008-01-29 10:45:08 -08:00
vladimir@pobox.com
d7f4f31ade re-landing; b=412396, speed up mac image rendering while images are being loaded, r=stuart 2008-01-28 11:05:44 -08:00
vladimir@pobox.com
1afbefd8e2 backing out 412396 in an attempt to fix linux orange 2008-01-27 19:04:40 -08:00
vladimir@pobox.com
b81f25fe5d b=413989, bad lines drawn over background images while zoomed (osx), r=roc 2008-01-27 16:49:23 -08:00
vladimir@pobox.com
7bf8a75184 b=412396, jpeg decoding/painting slower on trunk vs. branch while loading; r=stuart 2008-01-27 15:53:24 -08:00
vladimir@pobox.com
b74a21da6f b=414092, crash at _moz_pixman_image_fill_rectangles on x86-64, r=karlt 2008-01-27 14:52:18 -08:00
vladimir@pobox.com
7beacd273e b=414095, serious win32 repaint/clipping issues, r=sleepy 2008-01-26 02:09:21 -08:00
vladimir@pobox.com
94616ca91d b=413878, even more cairo upgrades 2008-01-25 16:25:22 -08:00
vladimir@pobox.com
9f68225ef5 b=413878, upgrade cairo/pixman to latest git 2008-01-25 16:25:15 -08:00
mozilla@weilbacher.org
be1d05c95c [OS/2] Bug 404407: improve memory consumption on OS/2. Part 2, activate OS/2 API calls in cairo, r=wuno@lsvw.de 2008-01-22 15:00:03 -08:00
mats.palmgren@bredband.net
8195bb9cea Make _cairo_scaled_font_glyph_device_extents() take an cairo_rectangle_int_t out param instead of cairo_rectangle_int16_t fixing an UMR in the process. b=413169 r+sr=vladimir a=mtschrep 2008-01-20 17:06:38 -08:00
martijn.martijn@gmail.com
6949a58852 Bug 399453 - Mingw build error in cairo-win32-surface.c - error: conflicting types for '_cairo_win32_surface_get_extents', r=pavlov, a=mtschrep 2008-01-20 04:12:09 -08:00
sayrer@gmail.com
3ed75c14b1 Bug 411369. Crash while trying to print. r=ted.mielczarek 2008-01-18 17:09:36 -08:00
vladimir@pobox.com
a8fa36054a b=411224, r=vlad: 411224-cairo-upgrade-fixes.patch 2008-01-18 13:46:33 -08:00
vladimir@pobox.com
22522fc3eb b=411224, r=vlad: 411224-cairo-upgrade-1.5.5 2008-01-18 13:46:26 -08:00
vladimir@pobox.com
6d340e5582 b=407099, crash loading SVG page in cairo-quartz code, patch from upstream cairo, r/a=me 2008-01-07 11:57:32 -08:00
reed@reedloden.com
047f15c4e0 Bug 409976 - "Cairo in trunk gives SIGBUS on SPARC" [p=armin76@gentoo.org (Raúl Porcel) r+a1.9=vlad] 2008-01-04 23:34:27 -08:00
mozilla@weilbacher.org
24ec805ac5 [OS/2] Bug 407524: Enable PDF surface on OS/2, r=ted.mielczarek 2007-12-11 13:49:27 -08:00
pavlov@pavlov.net
d45f68fb12 pdfs are too big. re-landing 375750 which was accidentily backed out by 407427. r=vlad 2007-12-07 23:09:15 -08:00
vladimir@pobox.com
2dfebb2e83 b=404092, solaris compilation fix followup, r=me 2007-11-30 11:58:15 -08:00
vladimir@pobox.com
c06f0dc4e3 b=404092, upgrade cairo to 1.5.2-55 2007-11-29 12:06:56 -08:00
philringnalda@gmail.com
b051ca90f6 Bug 400188 - remove XP_MAC deadcode in cairo-platform.h, r=vlad, a=stuart 2007-11-12 19:23:59 -08:00
pavlov@pavlov.net
81a003c93d bug 375750. don't recreate CGFontRefs every time we draw -- cache them. fixes multiple embeddings of fonts when drawing to a quartz print surface. r=vlad a=schrep 2007-11-01 19:08:31 -07:00
pavlov@pavlov.net
1ef66b82b8 bug 390898. fix crash on 64bit machines when dragging and dropping. patch from Martin Stransky <stransky@redhat.com>. r=vlad a=beltzner 2007-10-30 17:58:44 -07:00
mats.palmgren@bredband.net
59e6298aff * make cairo_quartz_surface_to_quartz() return NULL if it's not a valid quartz surface and add null-check at call sites. * fix a couple of leaks under OOM * fix a warning about missing initializers for cairo_quartz_surface_backend b=397293 r+sr+a=vladimir 2007-10-25 08:49:25 -07:00
longsonr@gmail.com
18e83e393c Bug 400025 - stroke on text is too big on Windows after landing of bug 384681. r+sr+a+aM9=vladimir 2007-10-25 04:55:19 -07:00
ginn.chen@sun.com
6b4976641b Bug 387399 Asian fonts are not rendered in web page on BIG ENDIAN machine r+sr+a=vladimir 2007-10-24 23:49:10 -07:00
jdaggett@mozilla.com
9061c61d0a Bug 328258. Prevent images larger than 32K pixels in height from loading to workaround Quartz bug. r=pavlov,vlad, a=beltzner 2007-10-23 23:01:16 -07:00
vladimir@pobox.com
26a5b75ebf b=384681, switch cairo into 24.8 fixed-point mode. r+sr+a=roc 2007-10-09 16:03:24 -07:00
vladimir@pobox.com
51c2b1c2b4 b=366548, increased GDI usage leading to repainting problems, r/a=stuart 2007-10-03 14:27:42 -07:00
joshmoz@gmail.com
6ea83c78e0 fix major font problem when using the Mac OS X 10.5 SDK. Patch by John Daggett. b=397454 r=roc/vlad sr=roc a=pav 2007-09-28 09:51:11 -07:00
roc+@cs.cmu.edu
737c2306c1 Bug 96041. Adding win32 glyph extents patch to cairo so it doesn't get lost. 2007-09-24 18:00:24 -07:00
vladimir@pobox.com
96a878f5a9 b=377336, win32 printing page results in excessive data spooled to printer, for real this time, r=stuart 2007-09-24 15:50:44 -07:00
roc+@cs.cmu.edu
bfd939088e Bug 96041. Compute precise glyph extents for high-quality text, and when requested. r=vlad,r+sr=dbaron 2007-09-23 19:19:14 -07:00
roc+@cs.cmu.edu
c11d00e32d Backing out due to test bustage 2007-09-22 06:28:16 -07:00
roc+@cs.cmu.edu
d72a839c93 Bug 96041. Compute true glyph bounding metrics. r=vlad,dbaron,sr=dbaron 2007-09-22 05:43:52 -07:00
vladimir@pobox.com
44c6413c55 b=391184, accidentally blew away this patch with cairo update 2007-09-20 15:34:31 -07:00
vladimir@pobox.com
77096b4031 b=838960, ugprade cairo to 1.5.x; and b=377336, printing page from win32 results in hung app, r=stuart 2007-09-20 12:24:47 -07:00
pavlov@pavlov.net
ba97302f0b backing out 362682 due to linux tinderboxen not being upgraded... (396805, 389426) 2007-09-19 16:53:09 -07:00
pavlov@pavlov.net
7ce9ed1741 bug 362682. fix missing glyphs on linux. patch by myself and Behdad Esfahbod <mozilla@behdad.org>. r=vlad 2007-09-19 15:18:42 -07:00
sayrer@gmail.com
1f479a44ac Bug 391890. leaks from pixman_rect_alloc within _cairo_gstate_clip drawing borders. Patch by Vladimir Vukicevic. r/sr=stuart, a=mconnor 2007-09-11 13:15:14 -07:00
sayrer@gmail.com
a8aae62a4c Bug 393324. cairo leak in nsNativeThemeGTK::DrawWidgetBackground. r/sr=stuart, a=mconnor 2007-09-11 13:11:12 -07:00
mats.palmgren@bredband.net
2c8d132bca Free resources more sensibly when _cairo_scaled_font_init() fails. Use true NOOP mutex macros to avoid similar deadlocks in the future. b=378716 r+sr=vladimir a=vladimir 2007-08-31 00:53:53 -07:00
ginn.chen@sun.com
6166df71f7 Bug 391184 Firefox crashed [@ _get_bitmap_surface] div zero in _cairo_malloc_ab macro r+a=vladimir 2007-08-15 20:53:19 -07:00
mats.palmgren@bredband.net
354e680d1b Backing out last change since it caused crashes on Windows (bug 392214). b=390898 2007-08-14 12:03:57 -07:00