Граф коммитов

944 Коммитов

Автор SHA1 Сообщение Дата
Robert O'Callahan 01d7e9ec69 Bug 483765. Remove incorrect scaling when painting non-SVG content with an SVG filter, so such content renders properly when zooming. r=jwatt
--HG--
extra : rebase_source : 7106820dfb7f2b96b88348ea08e68c5d4377d863
2009-03-18 13:37:01 +13:00
Olli Pettay e9e6134072 Bug 482976 - Crash [@ nsTextFrame::Reflow] on print preview with quote, r+sr=roc 2009-03-18 12:45:00 +02:00
Robert Longson c165a61804 Bug 483439 - text with stroke and fill causes crashes. r+sr=roc 2009-03-16 11:59:23 +00:00
Daniel Holbert 0a78467896 Bug 473904 - Add an about:config option (defaulting to 'false' right now) for toggling SVG animation (SMIL) support. r+sr=roc 2009-03-09 18:20:17 -07:00
Robert Longson b8fffd1b06 Bug 470653 - nsSVGElement::AfterSetAttr should probably use insertionParent, not insertionParent of the bindingParent. r+sr=roc 2009-03-09 13:14:35 +00:00
Olli Pettay c10a9dfb86 Bug 425265, r=roc, sr=bz 2009-03-08 21:01:02 +02:00
Boris Zbarsky c9625bfecd Bug 481045. <svg:use> shouldn't paint its kids. r+sr=roc 2009-03-04 07:55:28 -05:00
Jonathan Kew 526a0ca6e9 Bug 479276. Support a new kind of glyph bounding-box: TIGHT_HINTED_OUTLINE_EXTENTS, and use it to stop MathML spacing depending on exact ink extents. r+sr=roc
--HG--
extra : rebase_source : 43f9009f6457361e690062f87b2e5fda4041dc48
2009-02-24 21:32:58 +13:00
Jonathan Kew 20f4c965a8 Bug 478792 - prefer glyph advance rather than ink extent; r+sr=roc 2009-02-23 02:19:30 +01:00
Jesse Ruderman 1ad38ac6a7 Add crashtests 2009-02-20 19:38:16 -08:00
Jesse Ruderman ea905567dc Add crashtests 2009-02-13 14:54:17 -08:00
Robert O'Callahan d88d077696 Bug 459666. GetReferencedFrame should bail out if we've destroyed the frame tree while reconstructing frames for the entire document. r+sr=bzbarsky 2009-02-10 21:28:16 +13:00
Jonathan Watt 1f7513a161 Fixing bug 461863. Nested filtering is broken (inner filtered elements are clipped or don't paint). r+sr=roc@ocallahan.org 2009-02-10 13:54:28 +13:00
Jesse Ruderman 4d5ffd6842 Add crashtests for the following bugs: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=328944+401042+413085+416461+431705+437142+449006+463741+465651+472782+474744 2009-02-07 21:33:31 -08:00
Craig Topper 074d581c29 Bug 374111 - DeCOMtaminate SVG viewBox; r+sr=roc 2009-02-03 15:42:24 +01:00
Robert Longson 758ced0b50 Bug 474700. Avoid negative-sized filter areas. r+sr=roc
--HG--
extra : rebase_source : 50e69812961c0787571273ca8e4326c48e7a83e6
2009-01-30 20:22:29 +13:00
Robert Longson cb69cd98ec Bug 475193. Only SVG frames should have marker properties. r+sr=roc
--HG--
extra : rebase_source : 51d78172315ec66bf8f5be9bb4afd00ec086b12f
2009-01-30 20:13:36 +13:00
L. David Baron 38d578f649 Implement CSS computation of font-stretch property and store it in the gfx font structures. (Bug 3512) r=vlad sr=bzbarsky 2009-01-29 12:39:18 -08:00
Robert Longson d7f5510579 Bug 472782. Avoid infinite recursion when textPath points to a non-path. r+sr=roc 2009-01-28 22:44:39 +13:00
Jonathan Watt 7ed623f2b1 Bug 475181. Bounds-check feTile subregion size --- crashtest 2009-01-28 22:31:39 +13:00
Jesse Ruderman daac235263 Add crashtests for bug 466585 and bug 451311 2009-01-24 23:24:53 -08:00
Robert Longson 8cd6e2f5f7 Bug 472135. Invalidate markers using style system hints instead of doing an eager invalidation (which reacquires frames, breaking our one-shot nsSVGRenderingObservers setup). r+sr=roc
--HG--
extra : rebase_source : 48ab3b34460f5908bcec5c3e15a5d12f71496579
2009-01-22 14:02:40 +13:00
Craig Topper 623a502daa Bug 471551. Stop duplicating SVG string attribute storage by having nsSVGString use the attribute value as the underlying base value (removing mBaseVal); also make mAnimVal an nsAutoPtr<nsString>. r=longsonr,r+sr=roc
--HG--
extra : rebase_source : 319ff11d4321f2f7f41a7d19f17435fe814b1079
2009-01-22 13:56:51 +13:00
Boris Zbarsky 3ae6edc425 Bug 473390 part 16. Move around SVG assertions so that they happen in frame init, not during frame creation. r=jwatt, sr=roc 2009-01-19 13:31:34 -05:00
Robert O'Callahan 1f829702e4 Backed out changeset fb2d014e0352 2009-01-20 00:25:58 +13:00
Robert O'Callahan 8b97c81cd0 Bug 471551. Avoid duplicate string storage for SVG string attributes; let nsSVGString get the baseval from the element. Also change mAnimVal to an nsAutoPtr to minimize storage in the non-animated common case. r=longsonr,sr=roc 2009-01-19 22:03:31 +13:00
Robert O'Callahan dff214e0d3 Backed out changeset 9246fefef1cc 2009-01-17 23:58:34 +13:00
Robert Longson db4a4c8288 Bug 472135. Avoid re-getting the target marker frame in nsSVGMarkerProperty::DoUpdate --- that leads to infinite loops. Update things lazily instead via fake style changes. r+sr=roc
--HG--
extra : rebase_source : f90519e06842d6301e3a27eddb0cddd300b62db2
2009-01-16 21:20:29 +13:00
Craig Topper e4db95ada5 Bug 473511. nsSVGInnerSVGFrame does not need to implement nsISVGValueObserver. r=jwatt,sr=roc
--HG--
extra : rebase_source : 7b5b4dd1c5702498a496133c643891c337ea4a42
2009-01-16 21:14:40 +13:00
Craig Topper dc0c2a207d Bug 473517. nsSVGUtils::CoordToFloat should avoid heap-allocating an nsSVGLength. r+sr=roc
--HG--
extra : rebase_source : c2cd532376da8c37ad02f834ab4e859fec61dda1
2009-01-16 21:02:40 +13:00
Jeremy Lea ce80f69254 Bug 448830. Make nsIntRect/nsIntMargin/nsIntSize/nsIntPoint different types from nsRect/nsMargin/nsSize/nsPoint different types for better compile-type unit checking. r+sr=roc
--HG--
extra : rebase_source : a331a9e49fbc5931f546919281fcca7f008ab615
2009-01-15 16:27:09 +13:00
Benjamin Smedberg 3498a5f86e Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

nsITextControlFrame didn't have an IID the first time around, but this wasn't a compile error because nsITextControlFrame::kFrameIID inherited from nsIFormControlFrame::kFrameIID. I've added a static analysis pass to verify the correct behavior, since I can't figure out a way to make the compiler do it.

--HG--
extra : rebase_source : 4894a2ca0278e2ab92f27459db77165f8348cf41
2009-01-12 14:20:59 -05:00
Benjamin Smedberg 73a6fab34b Backed out changeset 4c4df6ed1b41 - Bug 396185 - Make nsIFrame not inherit from nsISupports due to mochitest failures... these appear to be crashes in nsGenericHTMLElement::GetEditorInternal. 2009-01-09 11:35:24 -05:00
Benjamin Smedberg 802d1a10c7 Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

This patch locally causes two REFTEST-UNEXPECTED-PASS for Bidi stuff. It's possible that I accidentally fixed a bug, but I'm not sure, so I'm going to wait for the tinderboxes to confirm my local results.
2008-11-05 14:25:30 -05:00
Boris Zbarsky 5a88fcd9ff Adding test 2009-01-05 13:32:00 -05:00
Robert O'Callahan 112000f159 Bug 470911. Make the preserveAspectRatio attribute storage much simpler and make the DOM accessors use tear-offs. With help from Craig Topper. r+sr=roc
--HG--
extra : rebase_source : 1a073c76d07c0a4532b2caf9978ef5847b36dec8
2009-01-05 14:19:38 +13:00
L. David Baron f6824a9fa5 Replace space manager with a more limited float manager. (Bug 191448) r+sr=roc
--HG--
rename : layout/generic/nsSpaceManager.cpp => layout/generic/nsFloatManager.cpp
rename : layout/generic/nsSpaceManager.h => layout/generic/nsFloatManager.h
2009-01-04 19:39:54 -05:00
Jesse Ruderman e7ff093116 Add 19 crashtests 2009-01-01 14:18:58 -08:00
Robert Longson 44016eb6da Bug 470124 - Crash [@ nsSVGUtils::GetRelativeRect]; r+sr=roc 2008-12-21 02:16:42 +01:00
Robert Longson bda2871a94 Bug 441780. Fix radial gradient clamping to be more aggressive. r=jwatt,sr=roc
--HG--
extra : rebase_source : 477e5305530e86348a3526a8157f5f93340c644b
2008-12-17 20:28:33 +13:00
Martin Stránský 5f8aedcf13 b=403513 bad kerning in print output if hinting is set to medium or full r=karlt sr=vlad 2008-12-17 16:17:50 +13:00
Karl Tomlinson dea545b65e backout b=403513 due to compile error in gfxFontSelectionTest.cpp 2008-12-17 13:57:40 +13:00
Martin Stránský 7d9de4223a b=403513 bad kerning in print output if hinting is set to medium or full r=karlt sr=vlad 2008-12-17 13:44:32 +13:00
Jesse Ruderman 2791f144e6 Crashtest for bug 458453. 2008-12-14 00:48:51 +01:00
Robert O'Callahan 7da5e41790 Bug 455314. nsSVGRenderingObserver::GetReferencedFrame shouldn't try to look up the frame on a cache miss, if we're currently destroying frames. r+sr=mats 2008-12-12 21:25:16 +13:00
Robert O'Callahan 224247103e Bug 448243. When nsSVGFilterInstance needs to create a dummy input image, create one of the right size. r=jwatt,sr=mats 2008-12-12 21:14:26 +13:00
Robert Longson 668d43d2f9 Bug 463064 - Use covered region to minimise foreignObject painting r+sr=roc 2008-12-06 15:22:01 +00:00
Robert Longson 63e99c302b Bug 464374 - Crash [@ nsSVGUtils::MaxExpansion] with svg filter, mathml; r+sr=roc 2008-12-04 19:17:45 +01:00
Robert Longson bde693793a Bug 437704. Always union fill extents with stroke extents instead of just relying on stroke extents, in case they turn out to be empty. r+sr=roc 2008-12-03 14:35:42 +13:00
Robert Longson 598a7a8191 Bug 463934 - text bounds do not account for position properly
Landing this to see if it fixes bug 465222 - tsvg regression November 3 2008
r=roc, sr=roc, a1.9.1=beltzner
2008-11-29 11:23:57 -08:00
Daniel Holbert 58d145b691 Bug 420697: Add svgGlyphFrame check to GetStrokeDashoffset and GetStrokeDashArray, making them match GetStrokeWidth. r+sr=roc a=beltzner 2008-11-14 10:46:56 -08:00
Robert Longson 6599f35796 Bug 460946 - getBoundingClientRect on rotated svgElement with stroke is incorrect. r+sr=roc 2008-11-03 10:04:25 +00:00
Robert Longson 61e59e1ed3 Bug 461751 - zoomAndPan=disable prevents programmatic zoom. r+sr=roc 2008-11-03 10:01:28 +00:00
Benjamin Smedberg 5eb7ef79cd Bug 462381 - Build layout directories in parallel r=ted sr=roc 2008-10-31 09:07:15 -07:00
Robert Longson adb83f6b37 Bug 459883 r+sr=roc 2008-10-27 11:48:20 +00:00
Bernd 867fdf2cb0 bug 258377, make border collapsed tables to listen for dynamic border style changes r/sr=bzbarsky 2008-10-26 11:11:34 +01:00
Robert Longson 4d21df98f1 Bug 461324 - Simplify NS_STATE_SVG_NONDISPLAY_CHILD in foreignObject. r+sr=roc 2008-10-24 08:47:04 +01:00
Robert Longson df8647721a Bug 461131 - Remove unused mFilterRect variable from nsSVGFilterProperty. r+sr=roc 2008-10-23 10:04:34 +01:00
Robert Longson c85eecf822 Bug 458493 - Crash calling nsSVGEffects::RemoveRenderingObserver. r+sr=roc 2008-10-22 10:09:03 +01:00
Arpad Borsos 8b05c605f7 Bug 456388 - "Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree" (followup for mozilla-central) [r+sr=brendan] 2008-10-21 01:50:05 -05:00
Robert Longson 3cfd9bd4ee Bug 459758 - effects on outer svg frames only work accidentally. r+sr=roc 2008-10-20 09:42:03 +01:00
Robert Longson d58d86bd7a Bug 460551 - overrideCTM is no longer necessary. r+sr=roc 2008-10-18 09:19:01 +01:00
Robert Longson 6b7dde6595 Bug 460210 - Various frames should call GetMatrixPropagation() instead of using mPropagateTransform. r+sr=roc 2008-10-17 20:41:35 +01:00
Robert O'Callahan 8e54fc7760 Bug 459512. When painting an SVG source image for a filter, translate the dirty rect into device coordinates relative to the outer-SVG. Also, don't use an override-CTM to transform into filter space, just apply the transform to the gfxContext. r=longsonr,sr=mats 2008-10-16 20:55:10 +13:00
Robert Longson 2d3f29a655 Bug 459759 - Crash if markers contain paths. r+sr=roc 2008-10-16 08:48:55 +01:00
L. David Baron da3721ca17 Make sure DidSetStyleContext methods call the base class DidSetStyleContext, and change the signature to return void. (Bug 459649) r+sr=bzbarsky 2008-10-13 18:03:28 -04:00
Robert Longson 7794fb8713 Bug 459497 - Remove unused code following dynamic ID work. r+sr=roc 2008-10-11 13:55:11 +01:00
Robert Longson 76faac31ae Bug 458010 - textPath should use nsReferencedElement instead of nsSVGUtils::GetReferencedFrame. r+sr=roc 2008-10-11 12:29:35 +01:00
Arpad Borsos c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Robert Longson 8091c5e779 Bug 309220 - SVG markers should be live to id changes in document. r+sr=roc 2008-10-10 14:14:05 +01:00
Boris Zbarsky f49d088b98 Bug 433616 tests. r+sr=roc 2008-09-28 15:16:34 -04:00
Boris Zbarsky c9e6929f52 Bug 433616 part 3. Integration of externa resource documents into nsReferencedElement, plus some SVG fixups needed to handle nsReferencedElement returning an element from a different document, r+sr=roc 2008-09-28 15:16:15 -04:00
Robert Longson ec7531ab95 Bug 458068 - SVG fill="none" is broken, behaves like fill="black". r+sr=roc 2008-10-06 15:44:40 +02:00
John Daggett 37c61248d6 Bug 441473. Implement user font set object. r+sr=roc 2008-10-01 12:01:53 +09:00
Robert O'Callahan fa9c29cdcd Bug 455984. Rework gradient and pattern code to use nsReferencedElement and nsSVGRenderingObservers, so they observe changes to the ID-element-map properly and propagate invalidations correctly (and with simpler code too). r=longsonr,sr=mats 2008-10-01 13:51:05 +13:00
Robert O'Callahan 4fc9cfd0c6 Backing out bug 455984 to see if it fixed Tp crashes 2008-10-01 00:28:20 +13:00
Robert O'Callahan 4fdd181cd0 Bug 455984. Rework gradient and pattern code to use nsReferencedElement and nsSVGRenderingObservers, so they observe changes to the ID-element-map properly and propagate invalidations correctly (and with simpler code too). r=longsonr,sr=mats 2008-09-30 21:47:20 +13:00
Boris Zbarsky 9599df476b Backing out changesets 2ea77fa990af, 7d2d8869e73c, 93441e4f521e, 43d2ee100f3b, a2d84821ea71 to see whether they're causing the Windows Txul or Mac Tp regressions 2008-09-29 08:51:29 -04:00
Boris Zbarsky a7d77f3dd3 Bug 433616 tests. r+sr=roc 2008-09-28 15:16:34 -04:00
Boris Zbarsky fbd4083bf9 Bug 433616 part 3. Integration of externa resource documents into nsReferencedElement, plus some SVG fixups needed to handle nsReferencedElement returning an element from a different document, r+sr=roc 2008-09-28 15:16:15 -04:00
Robert O'Callahan a39e457b50 Backing out bug 448830 2008-09-28 23:13:58 +13:00
Robert Longson c7f4344e1f Bug 456282 - getStartPositionOfChar calculates advances in incorrect coordinate system. r+sr=roc 2008-09-28 10:05:26 +01:00
Jeremy Lea 4527d5d1a8 Bug 448830. Make nsIntRect/nsIntMargin/nsIntSize/nsIntPoint their own types so that we can catch errors by distinguishing pixels from appunits. r+sr=roc 2008-09-28 20:38:34 +13:00
Robert O'Callahan 5dbf5690ac Backing out bug 448830 2008-09-26 13:10:26 +12:00
Jeremy Lea 7261376c29 Bug 448830. Make nsIntRect/nsIntSize/nsIntPoint/nsIntMargin separate types so we get appunit vs pixel typechecking. r+sr=roc 2008-09-26 10:42:19 +12:00
Robert O'Callahan 5ad965518f Bug 455279. Fix mask alpha computation so that it works when the incoming gfxContext has a non-identity transform. r=longsonr,sr=mats 2008-09-22 14:14:54 +12:00
Keith Schwarz 59216c8471 Bug 455389 - SVG foreignObjects don't get NS_FRAME_MAY_BE_TRANSFORMED frame bit; r+sr=roc 2008-09-20 18:31:47 +02:00
Arpad Borsos 18b833c041 Bug 452797 - Clean up unused variables in layout/; v6; r+sr=roc 2008-09-20 15:42:03 +02:00
Robert O'Callahan 775dd33c74 Bug 450930. Fire a DOM event when painting so that content and chrome can track what's being repainted. r=smaug,sr=dbaron 2008-09-18 21:47:21 +12:00
Jeremy Lea 195f86f3ef Bug 454937 - Pixel/app unit confusion in SVG filter code; r+sr=roc 2008-09-16 13:54:30 +02:00
Frédéric WANG ed4103c12a b=454085 Add text-indent:0 for -moz-svg-foreign-content to prevent unexpected spaces r+sr=roc 2008-09-16 10:41:42 +12:00
Arpad Borsos 87878e68eb Bug 454766 - Add suggested parentheses to layout/; r+sr=roc; (with nits by sgautherie) 2008-09-15 17:40:25 +02:00
Keith Schwarz 48a87265ac Bug 435293. Implement CSS transforms. r=dbaron,r+sr=roc 2008-09-13 21:42:11 +12:00
Robert O'Callahan b52d3794d5 Bug 450340. Support SVG mask/clip-path/filter CSS properties applied to non-SVG content. r=longsonr,sr=mats 2008-09-11 12:24:16 +12:00
timeless@mozdev.org 2779332bd2 merging backout part two of two
to fix Bug 454186
SM crashes when try to download file [@ nsString::ToInteger - nsTreeBodyFrame::PaintProgressMeter]
2008-09-08 16:01:00 +02:00
timeless@mozdev.org 2cf6a7ee79 Backed out changeset 54215f2cbc66
to fix Bug 454186
SM crashes when try to download file [@ nsString::ToInteger - nsTreeBodyFrame::PaintProgressMeter]
2008-09-08 16:00:32 +02:00
Graeme McCutcheon bc94c13609 Bug 451252 - "Highlight All" find selection not visible in elements that have -moz-user-select: none set; r+sr=roc 2008-09-07 16:12:50 +02:00
Arpad Borsos 95c1e86113 Bug 452797 - Clean up unused variables in layout/; r+sr=roc 2008-09-06 20:38:31 +02:00
Jeremy Lea 2fab211d2a Bug 379616. The mRect for SVG frames should be in appunits. r+sr=tor 2008-08-25 21:23:54 +12:00
Benjamin Smedberg 7a57f2972d Backed out changeset e92e18d52d71 due to the following test failures on Windows:
*** 31290 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgbase bounding rect width - got 45, expected 0
*** 31291 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgbase bounding rect height - got 20, expected 0
*** 31292 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgbase bounding rect right - got 45, expected 0
*** 31293 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgbase bounding rect bottom - got 20, expected 0
*** 31306 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgrect bounding rect width - got 45, expected 0
*** 31307 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgrect bounding rect height - got 20, expected 0
*** 31308 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgrect bounding rect right - got 45, expected 0
*** 31309 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/tests/mochitest/general/test_offsets.xul | svgrect bounding rect bottom - got 20, expected 0
2008-08-19 12:20:16 -04:00