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

66 Коммитов

Автор SHA1 Сообщение Дата
cku b8109179f1 Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : 3e090928ccc9ac58533162634f1269f76aba9131
2016-11-04 15:33:38 +08:00
Wes Kocher aaaaf4e40c Backed out 5 changesets (bug 1318266) for clipboard leaks a=backout
Backed out changeset a6d9ee58afd9 (bug 1318266)
Backed out changeset 47b22189955a (bug 1318266)
Backed out changeset 936cc01602c4 (bug 1318266)
Backed out changeset 95d7547ad1c3 (bug 1318266)
Backed out changeset a4c80aed15d8 (bug 1318266)
2016-12-20 11:30:26 -08:00
cku baf48e8a2b Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : b8e0c64cf251f09139cbd12c5e391daf4d0c949c
2016-11-04 15:33:38 +08:00
Iris Hsiao e566e8864d Backed out changeset b3eaebda3d9d (bug 1318266) 2016-12-19 16:17:22 +08:00
cku 5ba953493d Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : 82443b6ac28d1afe93c376485368edbd141fa1d4
2016-11-04 15:33:38 +08:00
Robert Longson 1bae76206e Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
--HG--
rename : dom/svg/nsSVGPathGeometryElement.cpp => dom/svg/SVGGeometryElement.cpp
rename : dom/svg/nsSVGPathGeometryElement.h => dom/svg/SVGGeometryElement.h
rename : dom/svg/nsSVGPolyElement.cpp => dom/svg/SVGPolyElement.cpp
rename : dom/svg/nsSVGPolyElement.h => dom/svg/SVGPolyElement.h
rename : layout/svg/nsSVGPathGeometryFrame.cpp => layout/svg/SVGGeometryFrame.cpp
rename : layout/svg/nsSVGPathGeometryFrame.h => layout/svg/SVGGeometryFrame.h
2016-12-18 11:11:47 +00:00
Sebastian Hengst cdeb642a1b Backed out changeset 0b44e8715bf5 (bug 1239100) for build bustage (SVGGeometryElement.webidl missing). r=backout
--HG--
rename : dom/svg/SVGGeometryElement.cpp => dom/svg/nsSVGPathGeometryElement.cpp
rename : dom/svg/SVGGeometryElement.h => dom/svg/nsSVGPathGeometryElement.h
rename : dom/svg/SVGPolyElement.cpp => dom/svg/nsSVGPolyElement.cpp
rename : dom/svg/SVGPolyElement.h => dom/svg/nsSVGPolyElement.h
rename : layout/svg/SVGGeometryFrame.cpp => layout/svg/nsSVGPathGeometryFrame.cpp
rename : layout/svg/SVGGeometryFrame.h => layout/svg/nsSVGPathGeometryFrame.h
2016-12-18 11:42:51 +01:00
Robert Longson 783bfbb1e4 Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
--HG--
rename : dom/svg/nsSVGPathGeometryElement.cpp => dom/svg/SVGGeometryElement.cpp
rename : dom/svg/nsSVGPathGeometryElement.h => dom/svg/SVGGeometryElement.h
rename : dom/svg/nsSVGPolyElement.cpp => dom/svg/SVGPolyElement.cpp
rename : dom/svg/nsSVGPolyElement.h => dom/svg/SVGPolyElement.h
rename : layout/svg/nsSVGPathGeometryFrame.cpp => layout/svg/SVGGeometryFrame.cpp
rename : layout/svg/nsSVGPathGeometryFrame.h => layout/svg/SVGGeometryFrame.h
2016-12-18 09:54:02 +00:00
Ryan VanderMeulen f31546de18 Backed out 2 changesets (bug 1318266) for breaking tab drawing when a LWT is applied.
Backed out changeset 00bb4e2f5a3c (bug 1318266)
Backed out changeset 55790893cab4 (bug 1318266)
2016-12-17 21:59:10 -05:00
cku 7cb6b79be7 Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : 064baa7d4815b7ddbccdc4c625156ec485418bb2
2016-11-04 15:33:38 +08:00
cku fb19c45aa9 Bug 1322330 - Part 2. Implement EffectProperties::HasInvalidClipPath. r=longsonr+218550
MozReview-Commit-ID: F3m4UZ0ET9x

--HG--
extra : rebase_source : aa11ea80bc566f287095ad91f721a2f70870c13c
2016-12-06 21:28:47 -10:00
Daniel Holbert b054aefef7 Bug 1321056: Add includes/namespaces to fix latent unified bustage in layout/svg. r=TYLin
MozReview-Commit-ID: 8k3FSpKeKOa

--HG--
extra : rebase_source : 8a75ab94142f53181fa484ab5fd9750038993ef5
2016-11-29 11:41:16 -08:00
cku 5ee6e3966a Bug 1319667 - Part 2. Move DrawResult from function parameter of PaintClipMask to the return value. r=mstange
Enlight by "Bug 1314536 - Part 1"

MozReview-Commit-ID: Iogdh7LWsWa

--HG--
extra : rebase_source : aacc88ac39551aeb5ffbb84a11580a0d2eec73cc
2016-11-24 00:08:13 +08:00
cku 64b11841c6 Bug 1317636 - Part 5. Fix identation. r=mstange
MozReview-Commit-ID: 84aJzl6LrDC

--HG--
extra : rebase_source : 10ce4c40b1346cbd7f66bc10556b7647141a44de
2016-11-17 15:15:43 +08:00
cku 2f769773d3 Bug 1317636 - Part 4. Use nsSVGUtils::DetermineMaskUsage. r=mstange
MozReview-Commit-ID: JUAof5JvU4j

--HG--
extra : rebase_source : 387567cd33837ab49f5002797bd329dda426d530
2016-11-17 15:11:34 +08:00
cku 6174d59e7e Bug 1317636 - Part 3. Implement ComposeExtraMask. r=mstange
CG is removed. By testing, D2D works fine with composing a mask by OP_IN mode.

MozReview-Commit-ID: Gs5rB6JachJ

--HG--
extra : rebase_source : 37cada77b33cd0f0265b0e1cb3e88ab8cc32e6e0
2016-11-17 12:42:14 +08:00
cku a4e8c8d584 Bug 1317636 - Part 2. Extract PaintFrameIntoMask from nsSVGClipPathFrame::PaintClipMask. r=mstange
MozReview-Commit-ID: LgrortpuwN5

--HG--
extra : rebase_source : 428c0de82eda1301f499a84e8d6f70e06a9541b2
2016-11-16 16:58:59 +08:00
cku e935229722 Bug 1317636 - Part 1. Implement nsSVGClipPathFrame::CreateClipMask and PaintClipMask. r=mstange
Simply split the code in nsSVGClipPathFrame::GetClipMask into two different
functions.

MozReview-Commit-ID: KMdVL3Wg8OC

--HG--
extra : rebase_source : 9a3e354378fe54bed26f8352450c423aa9b700b4
2016-11-17 14:50:35 +08:00
cku 99414ab73f Bug 1258510 - Part 2. Use the return value of nsLayoutUtils::DrawSingleImage & DrawSingleUnscaledImage. r=mstange
MozReview-Commit-ID: Eo8FzwOFAOT

--HG--
extra : rebase_source : 7da0ec5d1066067d5c1b22f0bc69b01cfd1131c5
2016-07-14 12:47:06 +08:00
Nicholas Nethercote a02611e830 Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.

--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Chris Peterson 89c0478b18 Bug 1273363 - Fix -Wshadow warnings in layout/svg/. r=dholbert
layout/svg/SVGTextFrame.cpp:4198:28 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGClipPathFrame.cpp:388:18 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGIntegrationUtils.cpp:562:15 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGIntegrationUtils.cpp:586:26 [-Wshadow] declaration shadows a local variable
layout/svg/nsSVGIntegrationUtils.cpp:620:15 [-Wshadow] declaration shadows a local variable

--HG--
extra : rebase_source : d8652b0c6bc2532119f351d7b0dc860987b32677
2016-05-16 22:02:08 -07:00
Ting-Yu Lin 083eac991f Bug 1264837 Part 18 - Remove nsSVGClipPathFrameBase. r=dholbert
MozReview-Commit-ID: It4pCnQtjDi

--HG--
extra : rebase_source : 3828cf4e22915920c50c5377303cc641dc5e0347
2016-04-18 14:54:51 +08:00
Milan Sreckovic e0b2b9e425 Bug 1259513: Make gfxContext constructor private, use a utility function that can return nullptr. r=bas,lsalzman
MozReview-Commit-ID: rHhLEDZEQt

--HG--
extra : rebase_source : 4988f3f488c19dd35a9979e96f78a5511ee8f3d2
2016-04-12 15:18:11 -04:00
Jeff Muizelaar 1b059a3417 Bug 1258650. Properly use aExtraMasksTransform when combining masks. r=Bas,a=kwierso
Previously we were ignoring the scale.
2016-03-31 16:34:32 -04:00
Jonathan Watt 58fc2aef57 Bug 1253590, part 4 - Follow-up to return the correct type. r=bustage 2016-03-12 18:43:40 +00:00
Jonathan Watt 9857ea9ad4 Bug 1253590, part 2 - Use the new AutoReferenceLimiter helper to limit clip path reference chain lengths. r=longsonr 2016-03-09 10:26:48 +00:00
Jonathan Watt c633855102 Bug 1253590, part 1 - Generalize AutoReferenceLoopDetector to allow it to be used to limit reference chain lengths. r=longsonr 2016-03-09 10:26:48 +00:00
Bas Schouten 847be1fa4d Bug 1251431 - Part 2: Do not apply the device transform when drawing to an already intermediate surface. r=jwatt
MozReview-Commit-ID: 5DCEvQJK3Us
2016-03-18 14:47:12 +01:00
Ting-Yu Lin 2d02ad0652 Bug 1227927 Part 3 - Use ranged-based for-loop to rewrite some simple loops in part 2. r=mats
--HG--
extra : commitid : CcdpGdlMNIk
extra : rebase_source : 9c184cb8107bf6276c237d03d240f8755fd61553
2016-01-29 22:42:15 +08:00
Ting-Yu Lin 1889f6bc41 Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats
--HG--
extra : commitid : 5qtaK1nS8RC
extra : rebase_source : dcc98f423b2446269beb6fa6a9d092ae8213f38e
2016-01-29 22:42:14 +08:00
Jonathan Watt 7d5550b906 Bug 1223644 - Clean up the nsSVGClipPathFrame reference loop detection code. r=longsonr 2016-01-28 09:30:47 +00:00
Jonathan Watt e7af97097b Bug 1223604 - Disentangle nsSVGClipPathFrame::ApplyClipOrPaintClipMask and make the code easier to understand. r=Bas 2016-01-26 17:27:44 +00:00
Robert Longson e5adaf828f Bug 1145195 part 1 - Create a helper function for PrependLocalTransformsTo in SVGContentUtils r=dholbert 2015-12-02 22:36:23 +00:00
Bas Schouten 9c69abbb6c Bug 1224798: Do not produce a clip mask if our context is entirely clipped out anyway. r=jrmuizel 2015-11-17 16:27:17 +01:00
Bas Schouten 36cd89f36b Bug 1210560 - Part 3: Convert more complex SVG usecases to PushGroupForBlendBack. r=jwatt r=jrmuizel 2015-11-11 16:15:39 +01:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Andrea Marchesini 2c4f63331f Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Robert Longson dce1292dc9 Bug 1090936 - Make invalidation of rendering observers asynchronous. r=jwatt 2014-11-06 09:30:11 +00:00
Jonathan Watt 6d0a255540 Bug 1091321, part 4 - Convert nsISVGChildFrame::PaintSVG and related code from nsRenderingContext to gfxContext. r=longsonr 2014-10-31 20:08:54 +00:00
Jonathan Watt 8cd45d65a6 Bug 1091321, part 1 - Convert nsSVGClipPathFrame::ApplyClipOrPaintClipMask and related code from nsRenderingContext to gfxContext. r=longsonr 2014-10-31 20:08:53 +00:00
Robert Longson fdd99e683b Bug 1078031 - get rid of renderMode. r=jwatt 2014-10-11 09:24:44 +01:00
Jonathan Watt 2c5b4e5e64 Bug 932762, part 2 - Make SVG elements cache their Moz2D path data to speed up rendering, hit-testing, clipPath clipping, bbox calculations and animation/text along a path. r=longsonr 2014-10-04 12:13:30 +01:00
Jonathan Watt 12ea292678 Bug 1074294, part 1 - Convert SVGAutoRenderState to act on a Moz2D DrawTarget. r=longsonr 2014-09-30 18:08:13 +01:00
Jonathan Watt 537966729a Bug 1073974, part 1 - Make simple SVG clipPath clipping use a Moz2D Path object directly. r=longsonr 2014-09-29 14:15:19 +01:00
Matt Woodrow 5056e93044 Bug 1054838, part 2 - Remove callers of DrawTarget::Mask. r=Bas,jwatt 2014-09-12 08:20:12 +01:00
Jonathan Watt 13e1e5f79d Bug 1062249 - Vastly simplify the various GetCanvasTM methods. r=longsonr
--HG--
extra : rebase_source : b0ba980a34c720bd3c3f3c95733083e92f0c0513
2014-09-08 12:28:50 +01:00
Jonathan Watt 2ec303fb9e Bug 932771, part 3 - Make PaintSVG painting work by passing transforms down, rather than walking up the tree using GetCanvasTM. r=longsonr 2014-08-29 20:42:07 +01:00
Jonathan Watt 9cf6a9f6a0 Bug 1052913 - Clean up some nsSVGClipPathFrame code and add some documentation to make it clearer. r=dholbert 2014-08-13 13:36:32 +01:00
Jonathan Watt 5762a0a0eb Bug 1052915 - Stop unnecessarily calling nsSVGUtils::AdjustMatrixForUnits() over and over in nsSVGClipPathFrame. r=longsonr 2014-08-13 13:34:52 +01:00