Commit Graph

1337 Commits

Author SHA1 Message Date
Robert O'Callahan
d35bc20460 Backout changesets 238b3c81f42c and rest of a417424f9213 (bug 928798 and rest of bug 923193 respectively)
--HG--
extra : rebase_source : a453412840da1eacb9d5c6f9f553137efa050e0c
2013-11-11 21:02:01 +13:00
Robert O'Callahan
654b2fe263 Backout changesets 37f9a5424227, c1578a4fc86d and a417424f9213 (for bugs 933354, 929021 and 923193 respectively) while we figure out performance regressions
--HG--
extra : rebase_source : e4a004a15c92b5a8a8b780e7da779ac86d1c29be
2013-11-11 15:23:56 +13:00
Seth Fowler
f5c4899942 Bug 933057 (Part 1) - Correct scaling of SVG images in nsLayoutUtils::DrawSingleImage. r=dholbert 2013-11-08 15:14:53 -08:00
Andreas Gal
75a4efaf58 Bug 930451 - Part 3: Use the gradient cache for SVG gradients as well. r=roc 2013-11-08 17:50:39 +13:00
Mike Hommey
6b4f0058ce Bug 935387 - Remove non recursed install targets. r=mshal 2013-11-07 10:37:45 +09:00
Matt Woodrow
0604fa2aa9 Bug 922942 - Use the screen reference draw target in SVG. r=jwatt
--HG--
extra : rebase_source : 230fd579b052649c59b4e1f5f6725fc60f6a05ae
2013-10-15 13:29:15 +13:00
Cameron McCormack
b714fb8a83 Bug 928798 - Check nsSVGTextFrame2 for dirtiness when gettings it bounding box contribution. r=roc a=abillings 2013-11-03 11:21:51 +11:00
Jonathan Watt
d458546af0 Bug 932761 - Implement Moz2D path builders for all of the SVG element types. r=dholbert 2013-11-02 11:10:38 +00:00
Jonathan Watt
69b16aa0e0 Bug 932091 - Convert SVGBBox.mBBox to Moz2D. r=dholbert 2013-11-01 11:04:01 +00:00
Cameron McCormack
e1e7d5086b Back out bug 928798 (f532e4f26307). 2013-11-01 14:01:34 +11:00
Cameron McCormack
03457ad84c Bug 928798 - Check nsSVGTextFrame2 for dirtiness when gettings it bounding box contribution. r=roc
--HG--
extra : rebase_source : e9173104309e532e9e6773132b9a867e47c3ea11
2013-11-01 13:44:52 +11:00
Jonathan Watt
b4c12bc9ce Fix one line comment in nsISVGChildFrame.h. r=me, no bug 2013-10-29 08:14:40 +00:00
Jonathan Watt
3664526a04 Bug 931769, part 3 - Move MaxExpansion() from nsSVGUtils to nsSVGPatternFrame, and convert it to Moz2D. r=dholbert 2013-10-29 08:14:40 +00:00
Jonathan Kew
268fd62c54 bug 930420 - respect any transform on the glyph element itself when calculating SVG glyph extents. r=heycam 2013-10-25 10:09:30 +02:00
Mike Hommey
1d566f7586 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Markus Stange
b570e91848 Bug 703872 - Use different scale factors for X and Y when determining the resolution for transformed filter rendering. r=jwatt 2013-10-24 10:09:09 +02:00
Mike Hommey
61124c1afc Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps 2013-10-24 08:05:43 +09:00
Jonathan Watt
522bec9624 Bug 929441 - Stop unnecessarily setting a transform between emitting a path and stroking it. r=Bas 2013-10-22 23:45:51 +02:00
Jonathan Watt
927534b8bb Bug 929364 - Avoid changing the current transform between emitting the path and clipping using that path in the SVGAutoRenderState::CLIP case. r=heycam 2013-10-22 23:45:51 +02:00
Seth Fowler
d51d4f7e86 Bug 764299 (Part 1) - Add hashing to SVGImageContext. r=dholbert 2013-10-22 13:37:57 +02:00
Kannan Vijayan
6e9b3e6350 Backout 5a0801040b54, 5bedd82346b4, 4d8068fd3271, and bc31e05eddb8 for b2g build breakage. CLOSED TREE. 2013-10-21 14:39:33 -04:00
Seth Fowler
3bc76cf8cc Bug 764299 (Part 1) - Add hashing to SVGImageContext. r=dholbert 2013-10-21 18:10:40 +02:00
Jonathan Watt
7220defdb6 Bug 928879 - Move SVGTextContextPaint to nsSVGTextFrame2.h/.cpp. r=heycam 2013-10-21 13:54:28 +02:00
Robert O'Callahan
82d7a2bd79 Bug 923193. Make transform-origin on SVG elements use the SVG bbox as the reference rectangle. r=heycam
--HG--
extra : rebase_source : f4f620acc51e14625f45b8022385d8a1112fd086
2013-10-03 08:34:24 -04:00
Matt Woodrow
d84a67ef04 Bug 926258 - Remove gfxFlattenedPath as it doesn't match the abstraction we want for Moz2D. r=roc 2013-10-15 16:23:21 +13:00
Robert Longson
85d52e0066 Bug 919371 - Make sure marker frames get the right parent. r=cam 2013-10-13 10:15:53 +01:00
Ehsan Akhgari
b6bef348c1 Bug 924221 - Minimize the #includes in gfx/thebes; r=bjacob
--HG--
extra : rebase_source : af198eb9b9739ce718ba0d16c385624a722cde51
2013-10-07 19:15:59 -04:00
Seth Fowler
a640994d6d Bug 920621 (Part 1) - Correct for full page zoom in nsSVGImageFrame. (Partial revert of bug 600207.) r=dholbert 2013-10-02 19:04:28 -07:00
Ehsan Akhgari
7e5b2154cf Bug 921753 - Part 4: Move DrawMode outside of gfxFont.h so that we won't need to #include that header everywhere DrawMode is needed; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1268 to 1208.
2013-10-01 17:02:16 -04:00
Ehsan Akhgari
8778f7536d Bug 921753 - Part 3: Avoid #including nsStyleStructInlines.h in nsHTMLReflowState.h; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1362 to 1268.
2013-10-01 17:01:49 -04:00
Ehsan Akhgari
6c364e9615 Bug 921753 - Part 2: Move GraphicsFilters outside of gfxPattern.h so that we won't need to #include that header everywhere GraphicsFilter is needed; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1582 to 1362.
2013-10-01 17:01:19 -04:00
Ehsan Akhgari
0a3a2ee94a Bug 921876 - Stop #including nsIFrame.h in nsLayoutUtils.h; r=roc
This patch does the following:
* Move nsIFrame::IntrinsicSize to mozilla::IntrinsicSize so that it can
  be forward-declared.
* Move a number of templated inline nsLayoutUtils methods to nsIFrame.
* Use mozilla::layout::FrameChildListID instead of the
  nsIFrame::ChildListID typedef in nsLayoutUtils.h.
* Move nsReflowFrameRunnable to its only user, nsProgressMeterFrame.cpp.
* Make a number of functions requiring nsIFrame.h out-of-line.
* Remove the nsIFrame.h #include from nsLayoutUtils.h and add it to the
  places which require it implicitly.
2013-09-30 17:26:04 -04:00
Robert Longson
7e0b7e4125 Bug 919900 - Correct bounding box calculations for empty text elements with svg.text.css-frames.enabled. r=heycam 2013-09-26 13:42:15 +01:00
Mats Palmgren
5a3cdd8297 Bug 919318 - Drop the Get prefix on the frame methods GetFirstContinuation, GetLastContinuation, GetFirstInFlow, GetLastInFlow and also on nsLayoutUtils::GetLastContinuationWithChild, because they never return null. r=dholbert 2013-09-25 11:42:34 +00:00
Cameron McCormack
e740c96c5b Bug 916704 - Always initialize SVGTextContentPaint::Paint and check SetupCairoState return value in nsSVGTextFrame2::PaintSVG. r=longsonr 2013-09-25 17:18:41 +10:00
Benoit Jacob
c1d7f88886 Bug 913872 - Take nested enums out of gfxASurface - 1/3 : automatic changes - r=jrmuizel
Generated by these regexes:

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(ImageFormat\|SurfaceType\|ContentType\|MemoryLocation\)[0-9A-Za-z_]*\)/gfx\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(CONTENT_\|MEMORY_\)[0-9A-Za-z_]*\)/GFX_\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(CONTENT_COLOR\|CONTENT_ALPHA\|CONTENT_COLOR_ALPHA\|CONTENT_SENTINEL\|MEMORY_IN_PROCESS_HEAP\|MEMORY_IN_PROCESS_NONHEAP\|MEMORY_OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1GFX_\2\3/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(ImageFormatARGB32\|ImageFormatRGB24\|ImageFormatA8\|ImageFormatA1\|ImageFormatRGB16_565\|ImageFormatUnknown\|SurfaceTypeImage\|SurfaceTypePDF\|SurfaceTypePS\|SurfaceTypeXlib\|SurfaceTypeXcb\|SurfaceTypeGlitz\|SurfaceTypeQuartz\|SurfaceTypeWin32\|SurfaceTypeBeOS\|SurfaceTypeDirectFB\|SurfaceTypeSVG\|SurfaceTypeOS2\|SurfaceTypeWin32Printing\|SurfaceTypeQuartzImage\|SurfaceTypeScript\|SurfaceTypeQPainter\|SurfaceTypeRecording\|SurfaceTypeVG\|SurfaceTypeGL\|SurfaceTypeDRM\|SurfaceTypeTee\|SurfaceTypeXML\|SurfaceTypeSkia\|SurfaceTypeSubsurface\|SurfaceTypeD2D\|SurfaceTypeMax\)\($\|[^A-Za-z0-9_]\)/\1gfx\2\3/g'
2013-09-24 16:45:13 -04:00
Cameron McCormack
f5495def59 Bug 874507 - Make clip-path, filter, mask and opacity work on <marker> elements. r=longsonr 2013-09-16 15:06:29 +10:00
Rik Cabanier
37cda4a234 Bug 902525 - Part 3: create a layer for content that stores the blend mode r=roc 2013-09-14 20:40:11 -07:00
Timothy Nikkel
10932d1189 Bug 847223. Part 10. Make the new code work when we have the image visibility analysis prefed off. r=mats 2013-09-14 19:05:06 -05:00
Timothy Nikkel
ff6006c467 Bug 847223. Part 6. Use the first reflow of relevant image frames to add/remove them from the visible list. r=mats 2013-09-14 19:05:05 -05:00
Jonathan Kew
443d712890 bug 798843 followup - update property values in the default svg stylesheet. r=roc 2013-09-14 12:40:49 +01:00
Jonathan Kew
1edbfad3fc Bug 798843 - Rename -moz-objectFill, -moz-objectStroke, -moz-objectValue to context-fill, context-stroke, context-value r=dbaron
* * *
bug 798843 - recompile svg.woff font to pick up the updated glyph definitions
* * *
bug 798843 - update property_database.js to match the new property names
2013-05-16 14:35:15 +12:00
Edwin Flores
3b628f2098 Bug 798843 - Replace instances of 'object' with 'context' to match change in CSS values r=roc 2013-05-16 14:35:12 +12:00
Ryan VanderMeulen
eda259c9c3 Backed out changesets 6c097bdfc079, 51f5d900cd27, 9fdf99c07466, and b322938b37ef (bug 798843) due to intermittent Windows test failures. 2013-09-13 11:15:54 -04:00
Jonathan Kew
e57e75500d Bug 798843 - Rename -moz-objectFill, -moz-objectStroke, -moz-objectValue to context-fill, context-stroke, context-value r=dbaron
* * *
bug 798843 - recompile svg.woff font to pick up the updated glyph definitions
* * *
bug 798843 - update property_database.js to match the new property names
2013-05-16 14:35:15 +12:00
Edwin Flores
4e93f109ae Bug 798843 - Replace instances of 'object' with 'context' to match change in CSS values r=roc 2013-05-16 14:35:12 +12:00
Jonathan Kew
e4edfa434e bug 915093 - don't ignore the context matrix when getting stroke pattern for SVG glyphs. r=roc 2013-09-12 09:18:54 +01:00
Jonathan Kew
b877a162e9 bug 875329 - don't ignore transforms when rendering SVG-in-OT glyphs. r=heycam 2013-09-11 08:27:45 +01:00
Benoit Jacob
bd8899eab6 Bug 913603 - Avoid needlessly including nsRect.h - r=jrmuizel 2013-09-06 22:15:49 -04:00
Markus Stange
93ce3f0bdc Bug 912953 - Protect against empty rects causing invalidation due to rounding in nsSVGFilterFrame.cpp. r=roc 2013-09-06 11:31:17 +02:00