Commit Graph

595 Commits

Author SHA1 Message Date
Markus Stange
e785f3e168 Bug 592118 - Don't stack-allocate gfxContexts that are passed to other functions. r=roc a=blocking2.0:final
--HG--
extra : rebase_source : efcf3b58c953ea8ec8cad45f4b0ffa0b898a2397
2010-10-15 12:20:22 +02:00
Timothy Nikkel
a08a617701 Bug 582476. Part 2. When painting SVG foreign objects make sure to set the painting to window flag correctly. r=roc a=blocking-betaN+ 2010-10-14 20:03:45 -05:00
Timothy Nikkel
9964c66014 Bug 582476. Part 1. Pass invalidation flags through SVG foreign objects. r=roc a=blocking-betaN+ 2010-10-14 20:03:45 -05:00
Daniel Holbert
c939ce85e2 Backed out changeset e16a93bf622d (bug 599798) on suspicion of causing reftest assertion failures (bug 604415) 2010-10-14 10:19:55 -07:00
Takeshi KUROSAWA
58bc490dd6 Bug 599798 - Make rotate attribute of SVG text live. r=longsonr a=roc 2010-10-13 21:20:37 +01:00
Robert Longson
9be7915c59 Bug 599813 - nsSVGGlyphFrame::getCharacterData is expensive avoid calling it too many times. r+a=roc 2010-10-14 05:16:48 +01:00
Daniel Holbert
b5aa5d79c6 Bug 598798 patch 5: Make nsSVGImageFrame::PaintSVG use nsLayoutUtils::DrawSingleImage. r=roc r=jwatt a=blocking-betaN 2010-10-11 13:08:19 -07:00
Robert Longson
c92d390c9d Bug 601406 - GetBBox crashes when called on an SVG a element r=jwatt a=blocking-final 2010-10-08 17:49:39 +01:00
Robert Longson
5f29256b79 Bug 571863: Make sure to update graphic and/or invalidate transform on an inner <svg> element when its various attributes are modified. r=dholbert a=blocking-betaN+ 2010-10-07 12:19:32 -07:00
L. David Baron
a56a24a514 Change callers to use new nsIFrame overflow APIs. (Bug 542595, patch 20) r=roc a2.0=blocking2.0:beta8 2010-10-06 21:25:47 -07:00
L. David Baron
40d60928c6 Fix miscellaneous reflow methods to use new overflow area APIs. (Bug 542595, patch 19) r=roc a2.0=blocking2.0:beta8 2010-10-06 21:25:46 -07:00
Daniel Holbert
27a432d4a3 Bug 600574 part 2: Check for SVG images with viewBox in nsStyleBackground::Layer::RenderingMightDependOnFrameSize. r=bz r=longsonr a=blocking-betaN+ 2010-10-06 15:18:52 -07:00
KUROSAWA, Takeshi
6692b57dcc Bug 333698 - Fix x and y positioning of nested tspans; r=longsonr; a=roc 2010-09-18 12:46:48 +09:00
Tom Brinkman
ceef26ba74 Bug 576437 - CreateOffscreenSurface should not silently translate ImageFormat24 into ImageFormat16_565. r=joe a=blocking2.0 2010-09-16 14:34:53 -07:00
Markus Stange
0f5da2f8ac Bug 590404 - Crash [@ nsURIHashKey::HashKey] with -moz-element in data: document; r=roc a=blocking-final+ 2010-09-14 15:50:41 -04:00
Robert Longson
83b62023a0 Bug 590291. r=dholbert,a=blocking2.0 2010-09-10 20:58:48 +01:00
Felipe Corrêa da Silva Sanches
b290b3c8a6 Bug 421473: Move tests from layout/reftests/svg/bugs to layout/svg/crashtests. r=dholbert a=tests-only
--HG--
rename : layout/reftests/svg/bugs/bug314244.xul => layout/svg/crashtests/314244-1.xul
rename : layout/reftests/svg/bugs/bug327709.svg => layout/svg/crashtests/327709-1.svg
rename : layout/reftests/svg/bugs/bug337408.xul => layout/svg/crashtests/337408-1.xul
rename : layout/reftests/svg/bugs/bug367368.xhtml => layout/svg/crashtests/367368-1.xhtml
2010-09-09 15:49:41 -04:00
Daniel Holbert
fd2bfc1250 Bug 276431 Patch 12d: Make nsSVGOuterSVGFrame::ComputeSize use containing-block-size as its own size if we're in <img>, just like we do for <embed>. r=roc a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
2ac6d89f7e Bug 276431 patch 12c: Make nsSVGRenderingObserver into a generic interface, and rename the existing impl to nsSVGIDRenderingObserver. r=roc a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
b24a5d67c8 Bug 276431 Patch 5: Move two nsSVGUtils methods to header file so they can be inlined in non-gklayout code. r=roc a=blocking 2010-09-08 13:40:39 -07:00
Markus Stange
df248c791c Bug 591141. Protect against null pattern. r=roc
--HG--
extra : rebase_source : 51658e6b24a3c2b7857e44ab5880d240aacd8115
2010-09-06 15:12:46 +12:00
L. David Baron
6f943b1da3 Introduce nsStyleCoord::HasCoordOrNonPercentCalc to check for either a coord value or a calc() value not containing a percent. (Bug 585715) r=bzbarsky a2.0=blocking+ 2010-08-25 12:17:55 +02:00
Ms2ger
27271a8a8f Bug 562698 - Part a: Pass Elements to nsIMutationObserver::AttributeChanged and nsCSSFrameConstructor::AttributeChanged; r=bzbarsky, a=dbaron 2010-08-24 09:05:56 +02:00
Robert O'Callahan
812e6204ae Bug 584282. Use nsDisplayItem::ToReferenceFrame() instead of calling nsDisplayListBuilder::ToReferenceFrame, wherever possible. r=tnikkel,a=dbaron
--HG--
extra : rebase_source : 730ba8640cb37bd8484ff069b5d6fd46d9bc3e84
2010-08-13 22:01:58 +12:00
Robert O'Callahan
a581cd6197 Bug 584282. Add nsDisplayItem::mToReferenceFrame and initialize it in the constructor. r=tnikkel,a=dbaron
--HG--
extra : rebase_source : 496cbde7c495eb8872c3d0ffc0ca4c57c2a6a777
2010-08-13 22:01:13 +12:00
Robert O'Callahan
8cbf8e9f2a Bug 585817. Part 3: Remove nsSVGUtils::GetThebesComputationalSurface and use gfxPlatform::ScreenReferenceSurface instead. r=jwatt 2010-08-20 14:29:01 -05:00
Robert O'Callahan
06241c1e45 Bug 585817. Part 2: Change nsIPresShell::CreateRenderingContext to GetReferenceRenderingContext, that uses the shared 1x1 surface, and use it all over the place. r=mats,sr=dbaron 2010-08-20 14:29:01 -05:00
Chris Jones
921ef38edc Backed out changeset 7b3726c3a580 2010-08-19 19:04:08 -05:00
Robert O'Callahan
210184cb84 Bug 585817. Part 2: Change nsIPresShell::CreateRenderingContext to GetReferenceRenderingContext, that uses the shared 1x1 surface, and use it all over the place. r=mats,sr=dbaron 2010-08-19 13:49:35 -05:00
Daniel Holbert
5b754a5516 Bug 582004 part 2: Make imgIContainerObserver::FrameChanged take a const aDirtyRect argument. r=joe a=blocking 2010-08-13 21:09:48 -07:00
Robert O'Callahan
f8dc984ede Backing out bug 584282 and bug 537890 2010-08-14 02:35:06 +12:00
Markus Stange
18bccb9bd9 Bug 572689 - Allow overriding ID targets with mozSetImageElement for the BackgroundImageProperty which is used for -moz-element drawing. r=roc 2010-08-13 15:36:05 +02:00
Markus Stange
c90a203b09 Bug 506826 - Add nsSVGIntegrationUtils::DrawPaintServer for use in -moz-element drawing. r=roc 2010-08-13 15:32:27 +02:00
Markus Stange
12b1bcc7b0 Bug 506826 - Use a frame state bit for recursion detection in SVG pattern drawing. r=roc 2010-08-13 15:32:15 +02:00
Markus Stange
2ea78354c5 Bug 572689 - Make nsSVGRenderingObservers observe elements instead of frames. r=roc 2010-08-13 15:31:31 +02:00
Markus Stange
d3a1fa6d47 Bug 572689 - Add an SVG property for -moz-element called BackgroundImageProperty and make it able to handle multiple observers with different observer URLs. r=roc 2010-08-13 15:30:45 +02:00
L. David Baron
ee89e22866 Add support for calc() to the 'width' property. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:53 -07:00
Dão Gottwald
f246f9a00f Backed out changeset cdd440adb726 2010-08-10 15:10:11 +02:00
Ms2ger
e0dc6046da Bug 562698 - Part a: Pass Elements to nsIMutationObserver::AttributeChanged and nsCSSFrameConstructor::AttributeChanged; r=bzbarsky, a=dbaron 2010-08-10 14:25:28 +02:00
Robert Longson
f8e75e6fb6 Bug 577850 - A gradient applied to SVG Text element should render as if the objectBoundingBox spans the entire Text content. r=roc 2010-08-07 10:38:11 +01:00
Robert O'Callahan
9eb991d75a Bug 584282. Use nsDisplayItem::ToReferenceFrame() instead of calling nsDisplayListBuilder::ToReferenceFrame, wherever possible. r=tnikkel,a=dbaron 2010-08-13 22:01:58 +12:00
Robert O'Callahan
6ea38bb418 Bug 584282. Add nsDisplayItem::mToReferenceFrame and initialize it in the constructor. r=tnikkel,a=dbaron 2010-08-13 22:01:13 +12:00
Robert Longson
2316d387ff Backout Bug 578309 due to mochitest failures 2010-07-27 09:35:54 +01:00
Robert Longson
c28d8f49a4 Bug 578309 - mask and clipPath applied to foreignObject are translated. r=roc a=blocking 2010-07-27 08:33:01 +01:00
Craig Topper
432b14f38e Bug 580902 - Remove "using namespace mozilla;" from nsSVGElement.h and fixup the places that relied on it. r=jwatt 2010-07-25 17:25:38 -07:00
Craig Topper
b9673b8709 Bug 577438 Part 1: Add previous sibling to nsIMutationObserver::ContentRemoved. r=sicking 2010-07-21 15:05:17 -07:00
Henri Sivonen
5bf17b6fc0 Bug 552938 - Implement the SVG load event in text/html, make the SVG load event in XML async and only supported on <svg>. (Also disable/tweak 2 broken tests) r=dholbert, sr=roc 2010-07-18 15:07:54 -07:00
Daniel Holbert
afe13ab23c Bug 578459: Add a comment to currently-unused file svgBindings.xml to indicate why it hasn't been removed. [comment-only change] r=jwatt 2010-07-18 15:07:54 -07:00
Robert Longson
f098d16c9b Bug 487649 - Markers handle viewBox and preserveAspectRatio badly. r=jwatt 2010-07-18 11:06:03 +01:00
Jonathan Watt
fe8a477f84 Bug 515116. DeCOMify SVG length-list, and implement SMIL animation of length-list. r=longsonr, r=dholbert, sr=roc 2010-07-16 22:42:12 +01:00
Michael Ventnor
8139bee929 Bug 564991. Part 3: Create unique nsDisplayItem types for every single display item. r=tnikkel 2010-07-16 09:07:49 +12:00
Robert Longson
9c5cda0b67 Bug 576986 - Fix pointer-events on foreignObject with clip-path. r=roc 2010-07-15 09:10:59 +01:00
Jonathan Kew
1341e3f276 bug 511339 - part 1 - implement -moz-font-feature-settings and -moz-font-language-override in CSS. r=dbaron 2010-07-13 21:30:42 +01:00
Benjamin Smedberg
a249678c04 Final merge and landing of bug 568691 and dependent bugs to mozilla-central on a CLOSED TREE.
* bug 568691, register XPCOM components statically using manifests. r=mossop, with some test and build stuff r=vlad,sdwilsh
* bug 573557, rename categories with spaces to use hypens. r=jst
* bug 573739, Don't get the private browsing service during layout module initialization, r=ehsan

This initial merge does not include some work planned to land imminently:
* The extension manager still restarts. I need to solve a problem re-reading default preferences from extensions.
* MOZ_OMNIJAR is broken: there is a patch which I need to update in bug 568691.
* I will concurrently land a mobile-browser fix for component registration, but it may require some additional packaging changes.
2010-07-01 14:26:25 -04:00
Markus Stange
194000051b Bug 572697 - Teach SVG paint servers how to use arbitrary nsIFrames as the drawing target. r=longsonr
--HG--
extra : rebase_source : fea2f616f11668fccdc7d172b03e51c3f2b222cf
2010-07-01 18:40:30 +02:00
Markus Stange
5a166a073b Bug 572697 - Add frame types eSVGGeometry and eSVGPaintServer. r=roc
--HG--
extra : rebase_source : c4f39637b2e251d851cbbd3dadc91a516fd93e4b
2010-07-01 18:40:19 +02:00
Benjamin Smedberg
4d172dd53d Merge mozilla-central, including the Electrolysis changes, into the branch for bug 568691. 2010-07-01 11:55:57 -04:00
Benjamin Smedberg
63c0077443 Merge mozilla-central into the branch for bug 568691, including fixup of the new jetpack binary module. 2010-06-25 19:41:09 -04:00
Benjamin Smedberg
45af085fff Merge mozilla-central into the "branch" for but 568691. The omnijar XPT/component/chrome registration was removed during this merge, and will be re-added to the component manager shortly.
--HG--
rename : content/base/public/nsIChromeRegistry.idl => chrome/public/nsIChromeRegistry.idl
2010-06-21 11:41:42 -04:00
Benjamin Smedberg
9045c05660 Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files 2010-06-10 14:11:11 -04:00
Robert Longson
5a4ce6bb1f Bug 573687 - Clamp radial gradients with small radii correctly. r=jwatt 2010-06-30 21:24:53 +01:00
Robert O'Callahan
6a21a7add0 Bug 572287. Fix leak of mThebesComputationalSurface. r=jwatt 2010-06-18 21:21:13 +12:00
Daniel Holbert
79fa9a7cdd Backed out changeset a8ac411e1653 (bug 552938) for causing some randomorange. 2010-06-09 17:16:25 -07:00
Henri Sivonen
8a99f75610 Bug 552938 - Implement the SVG load event in text/html, make the SVG load event in XML async and only supported on <svg>. r=dholbert, sr=roc.
--HG--
extra : rebase_source : 6b4eb0b424b328cbb7853d767c2552ed01abc519
2010-05-25 14:57:58 +03:00
L. David Baron
d574dd00ce Use macros for frame state so that it's easy to change the size and easier to read the constants. (Bug 570837) r=roc 2010-06-08 22:28:14 -07:00
Jesse Ruderman
3dbc6bd8c8 Add a bunch of crashtests 2010-06-08 17:53:08 -07:00
Ms2ger@gmail.com
a4005e2fd1 Bug 538362 - rename nsIDocument::GetPrimaryShell to nsIDocument::GetShell. r=smaug 2010-06-25 15:59:57 +02:00
Robert Longson
4be6c6e0c5 Bug 561726 - make animateTransform work on gradientTransform and patternTransform. r=jwatt 2010-05-28 13:15:56 +01:00
Boris Zbarsky
ae06132e92 Bug 566216. Our parent could be a document fragment. r=dholbert 2010-05-17 14:18:25 -04:00
Boris Zbarsky
ecc1fd2ec3 Bug 562700 part 2. Change the restyle-event functions to take Element. r=dbaron 2010-05-14 13:04:51 -04:00
Boris Zbarsky
45dd44b40c Bug 565826. Use Element in SMIL code as needed. r=dholbert 2010-05-14 13:04:51 -04:00
Boris Zbarsky
626e1bb052 Bug 565820. Use Element as the return value for ReferencedElement. r=roc 2010-05-14 13:04:51 -04:00
Michael Kohler
9397418412 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Robert O'Callahan
5b63e43695 Bug 564993. Part 3: Split nsDisplayList::Paint into PaintForFrame and PaintRoot. Set the visible rect on the root layer from PaintRoot, let the visible rects of other layers be set when they're placed in their containers. r=mats 2010-03-11 09:55:05 +13:00
Robert Longson
1744d281b9 Bug 490003: Take outer <svg> element's border and padding into account, for invalidation and hit-testing. r=roc 2010-05-12 14:41:47 -07:00
Boris Zbarsky
e98cd67374 Bug 564574. Pass the first appended node to ContentAppended. r=jst, sr=sicking 2010-05-10 21:12:34 -04:00
L. David Baron
7c61f15cf1 Annotate remainder of crashtest mainfests (all but one test) with the tests that are known to assert. (Bug 472557) 2010-05-06 09:28:01 -07:00
Boris Zbarsky
f7d7c95ec6 Bug 562971. Include Element.h as mozilla/dom/Element.h and don't use 'using namespace' quite as much. r=jst 2010-05-05 14:18:05 -04:00
Boris Zbarsky
4625aac0dd Bug 560503. Don't check for mutation observer uniqueness; callers should handle that. r=sicking 2010-05-05 14:18:03 -04:00
timeless@mozdev.org
96aae71c09 Bug 562428 - comparison between signed and unsigned integer expressions in nsSVGGlyphFrame::GetCharNumAtPosition, r=roc 2010-04-28 12:46:00 -07:00
Boris Zbarsky
ca01cf3893 Bug 562688 part 13. Eliminate eELEMENT usage in layout/style, except the rule processor. r=dbaron 2010-04-30 09:12:06 -04:00
Boris Zbarsky
7773612f1a Bug 562688 part 12. Eliminate eELEMENT usage in the rest of layout except layout/style. r=dbaron 2010-04-30 09:12:06 -04:00
Boris Zbarsky
04027a9479 Bug 562688 part 4. Change GetRootContent and the like to return Elements. r=jst, sr=sicking 2010-04-30 09:12:05 -04:00
Daniel Holbert
49730afb12 Bug 436418, patch E: SVG/SMIL animateMotion - add support for <animateMotion> element and its core logic. r=roc 2010-04-28 16:00:54 -07:00
Jeff Muizelaar
f8ad58b7c9 Bug 542605. Use EXTEND_PAD_EDGE when painting svg images. r=jwatt
This was part of the cairo update, but I'm doing it separately to
minimize the amount of unrelated change.
2010-04-16 11:13:07 -04:00
Robert Longson
eb179fd968 Bug 456286 - support altGlyph elements as tspans. r=roc 2010-04-13 09:58:09 +01:00
Craig Topper
771eede254 Bug 557416: Remove unnecessary includes and forward declarations of nsPresContext. r=roc 2010-04-10 16:10:12 -04:00
Craig Topper
9eccdbd4d7 Bug 557416: Remove unnecessary includes and forward declarations of nsIPresShell. r=roc 2010-04-10 16:09:38 -04:00
Jeff Muizelaar
d751aaf9e3 Backed out changeset 9480726de986
Rendering/Invalidation problems showed up.
2010-04-08 09:44:28 -04:00
Jeff Muizelaar
aff371e5cb Bug 542605. Update cairo to 12d521df8acc483b2daa844d4f05dc2fe2765ba6. r=vlad,jwatt,bas
Reland after fixing quartz related clipping bug.
2010-04-05 22:28:54 -04:00
Felipe Gomes
960464193b Bug 489127 - nodesFromRect required for better usability on mobile devices (part 1+2) [r=roc] 2010-04-07 20:31:26 -04:00
Jeff Muizelaar
a7d2620943 Bug 542605. Backed out changeset 2b9a4c865737
Reftest failures that showed up at the last minute.
2010-04-06 00:14:30 -04:00
Jeff Muizelaar
6db34ced75 Bug 542605. Update cairo to 12d521df8acc483b2daa844d4f05dc2fe2765ba6. r=vlad,jwatt,bas 2010-04-05 22:28:54 -04:00
L. David Baron
f64f440371 Use the appropriate color based on visitedness for the color or fallback color parts of 'fill' and 'stroke'. (Bug 147777) r=jwatt 2010-04-02 18:58:26 -07:00
Zack Weinberg
ee4e0f1e56 Bug 494117 preliminary refactor: Search-and-replace 'ReStyle' with 'Restyle' throughout layout. r=roc 2010-03-31 17:43:32 -07:00
Craig Topper
980fd2992c Bug 253889: DeCOMtaminate nsIPresShell - IsReflowLocked(). r=roc
--HG--
extra : rebase_source : 46adf0d5ad41602276c8bcded46e7dae0f399da9
2010-03-31 08:43:27 -04:00
Robert Longson
865f529f51 Bug 521636 - A single rotate number should rotate all glyphs. r=roc 2010-03-31 09:57:28 +01:00
Kyle Huey
53dc79a0f8 Backing out Bug 253889 to fix Bug 555727. 2010-03-30 19:57:12 -04:00
Kyle Huey
afc6c6ca2d Backed out changeset 4b8936ac4a31 2010-03-30 19:56:44 -04:00
Robert Longson
11cc4a0089 Bug 388547 - initial support for x,y,dx,dy,rotate lists on SVG text and tspan elements. r=roc 2010-03-30 11:21:19 +01:00