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

55691 Коммитов

Автор SHA1 Сообщение Дата
cku a0c39c61a6 Bug 1348430 - Part 4. Reftest. r=mstange
filter-in-pattern-02.svg/filter-in-pattern-02-ref.svg
  The only difference between 02 and 02-ref is filter effects region setting. The
  effect region of 02 is (x=-1 y=-1 w=10 h=10), while the region of 02-ref
  is (x=0 y=0 w=9 h=9). Supposedly, the rendering result of 02 and 02-ref should
  not be the same. But since we clip effects region by viewporit in
  ComputeTargetBBoxInFilterSpace, 02 look almost the same with 02-ref whithout
  Part 3.

MozReview-Commit-ID: cqMGqGuHL0

--HG--
extra : rebase_source : 416b8378d384fd12638ee73c479ddf2254bdfb45
2017-03-22 14:12:32 +08:00
cku 6f602b53e4 Bug 1348430 - Part 3. Correct mTargetBBoxInFilterSpace. r=mstange
I introduced ComputeTargetBBoxInFilterSpace[1] function in bug 1287492.
Two reasons that I think we should not clip filter boundary by viewport
in that function:
1. The patch in bug 1336480 can also fix bug 1287492 and is more correct.
2. That restriction cause wrong rendering result
  In this bug, reporter apply filter onto a path object in pattern element.
  Before the clipping applied in [1], the boundary of filter effects region is
    (x=-1, y=-1, width=10, height=10) in CSS units
  After clipping by svg viewport, the boundary turns out to be
    (x=0, y=0, width=9, height=9) in CSS units
  which is smaller then we need for filter painting. So we should stop clip the
  boundary by svg viewport. (Please refer to filter-in-pattern-02.svg in the next
  patch).

[1] https://hg.mozilla.org/mozilla-central/file/dbabc189256e/layout/svg/nsFilterInstance.cpp#l235

MozReview-Commit-ID: 2d14rnyWPJs

--HG--
extra : rebase_source : ca3a523c8ae95d166441690d5ee1def2ed56a550
2017-03-22 21:29:14 +08:00
cku fca3b40aa9 Bug 1348430 - Part 2. Rename a local variable in nsSVGPatternFrame::PaintPattern. r=mstange
MozReview-Commit-ID: FIWQOHsC5o5

--HG--
extra : rebase_source : f1c3d0f3c81073ca5c57f6bd4482a061a56fc7a3
2017-03-21 23:40:36 +08:00
cku 21d49e1368 Bug 1348430 - Part 1. (Main) Correct value pass to nsFilterInstance::PaintFilteredFrame in nsSVGUtil. r=mstange
There are two places that use nsFilterInstance::PaintFilteredFrame. One is
nsSVGIntegrationUtil::PaintFilter, we do take care of it in bug 1224207.
Another path is at nsSVGUtils::PaintFrameWithEffects, apparently I missed that
path while working on bug 1224207.

MozReview-Commit-ID: K4MjKa4ZpCR

--HG--
extra : rebase_source : 46696b620b210348052fe554b15abf0c3adedc72
2017-03-20 01:30:32 +08:00
Carsten "Tomcat" Book 4fc85d9151 Merge mozilla-central to autoland 2017-03-22 16:11:34 +01:00
Carsten "Tomcat" Book 62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Emilio Cobos Álvarez adc9b921fb Bug 1345950: Fixup test expectations. r=bholley
MozReview-Commit-ID: HpDW88IGm6B
2017-03-22 13:47:38 +01:00
Iris Hsiao 25b734e893 Backed out changeset 140374af2570 (bug 1341531) for build bustage 2017-03-22 15:52:39 +08:00
Jonathan Watt e42cb4dd27 Bug 1349388, part 5 - Assert in AutoReferenceChainGuard's ctor that we didn't fail to break a loop. r=longsonr 2017-02-17 14:20:32 +00:00
Jonathan Watt b70b72f418 Bug 1349388, part 4 - Allow a single instance of AutoReferenceLimiter to guard against both reference loops and long reference chains. r=longsonr
--HG--
rename : layout/svg/AutoReferenceLimiter.h => layout/svg/AutoReferenceChainGuard.h
2017-02-17 13:15:18 +00:00
Jonathan Watt 618c7360e8 Bug 1349388, part 3 - Provide AutoReferenceLimiter with a default maximum reference chain length. r=longsonr 2017-02-16 11:18:33 +00:00
Jonathan Watt 6f850d0f40 Bug 1349388, part 2 - Add guard to AutoReferenceLimiter to prevent it being used as a temporary. r=longsonr 2017-02-16 10:31:03 +00:00
Jonathan Watt 78209c36d4 Bug 1349388, part 1 - Make AutoReferenceLimiter report long reference chains and reference loops to the console. r=longsonr 2017-02-16 10:26:39 +00:00
Timothy Nikkel ca076ee1dd Bug 1346501. Don't mark every image as visible when a frame is created for it. r=mats
This is a bug from https://hg.mozilla.org/mozilla-central/rev/2d171d75b746 (bug 1157546). It took a shortcut in trying to get around one of the downsides of tracking visibility on frames instead of content nodes.

We cannot get our primary frame during FrameCreate calls because FrameCreate is called during the frame's Init() function, which happens before the primary frame pointer is set.

So when TrackImage is called from FrameCreate |frame| will be null but mFrameCreateCalled will be true. So we won't hit the early return that tries to detect nonvisible images.

The comment being removed is just wrong. We can obtain a frame for <feImage> just as well as any other image type.

The thing that is different about <feImage> is that it calls IncApproximateVisibleCount() followed by FrameCreated() in the frame's Init() function. This means that the frame is marked visible at the time of the FrameCreated, and there will be no further calls to TrackImage (because there are no further changes). So the FrameCreated call is the last chance to mark this image visible. The regressing changeset tries to get around this by just considering the image visible whenever we know a frame exists (because of mFrameCreateCalled) but can't access it. This ends up affecting all types of images, not just <feImage>.

The above paragraph is also true for SVG <image> that are non-display.
2017-03-22 00:32:48 -05:00
Jonathan Watt 6948f30efd Bug 1345851 - Fix the transform-box tests in reftests/transform/transform-box-svg-3a.svg. r=cjku
MozReview-Commit-ID: Hk3x3J2O878
2017-02-14 20:18:26 +00:00
Jonathan Watt f9e4c98200 Bug 1349293, part 3 - More agressivly assert !FrameMaintainsOverflow() in FinishAndStoreOverflow. r=mattwoodrow
MozReview-Commit-ID: H2khv80K5rG
2017-02-13 15:55:27 +00:00
Jonathan Watt 8de18141c7 Bug 1349293, part 2 - Avoid unnecessary nsIFrame::IsFrameOfType and GetType calls in UnionBorderBoxes. r=mattwoodrow
MozReview-Commit-ID: I21poXqIjJy
2017-02-13 15:16:38 +00:00
Jonathan Watt 22e2890de0 Bug 1349293, part 1 - Prevent UnionBorderBoxes from processing NS_FRAME_IS_NONDISPLAY frames. r=mattwoodrow
MozReview-Commit-ID: EDGd5sJo5E2
2017-02-13 15:06:20 +00:00
Jonathan Watt e331fb83fd Bug 1349244 - Rename nsISVGChildFrame to nsSVGDisplayableFrame to reduce confusion. r=longsonr
MozReview-Commit-ID: IQCv2ebZbwk

--HG--
rename : layout/svg/nsISVGChildFrame.h => layout/svg/nsSVGDisplayableFrame.h
2017-02-09 18:24:31 +00:00
Wes Kocher 3c092e1002 Merge m-c to inbound, a=merge
MozReview-Commit-ID: GjXiiENYBmx
2017-03-21 16:20:08 -07:00
Wes Kocher 8fb7d84cb4 Merge inbound to central, a=merge
MozReview-Commit-ID: FKkx5SygvHz
2017-03-21 16:08:32 -07:00
Carsten "Tomcat" Book 97f79397b6 Merge mozilla-central to mozilla-inbound 2017-03-21 12:07:49 +01:00
Carsten "Tomcat" Book 6fd1303c2a merge mozilla-inbound to mozilla-central a=merge 2017-03-21 12:04:43 +01:00
Timothy Nikkel 5587bb56c5 Bug 1346109. Set a displayport base rect in MobileViewportManager::UpdateDisplayPortMargins when we are setting displayport margins. r=botond
It's easy to calculate because it's always a root content document.
2017-03-21 00:16:41 -05:00
JerryShih e4e7794105 Bug 1347164 - set expected-fail for css-color-4 test with stylo. r=xidorn
Currently, stylo doesn't have css-color-4 implementation. Set expected-fail for these tests.

--HG--
extra : rebase_source : 7740e267deed0482a25289704868cadd30e35e0f
2017-03-20 17:26:06 +08:00
JerryShih bd940f844f Bug 1347164 - css-color specified style test. r=dholbert
MozReview-Commit-ID: 6RRhz8ftEVO

--HG--
extra : rebase_source : f9f2ce3b84384d3b265d4da7b965dce147165688
2017-03-20 17:26:06 +08:00
JerryShih 72a3987a48 Bug 1347164 - rewrite mochitest test_specified_value_serialization.html to look more like test_computed_style.html. r=dholbert
MozReview-Commit-ID: 4XSBQXtYSth

--HG--
extra : rebase_source : e412de66d6cafa3246036df19185b7be270fb026
2017-03-20 17:26:06 +08:00
JerryShih d54436c0d2 Bug 1347164 - css-color computed style test. r=dholbert
MozReview-Commit-ID: 36qT5LxhB9Z

--HG--
extra : rebase_source : b1bfc7113e93566b940449c4970f4a96cdc122e4
2017-03-20 17:26:06 +08:00
JerryShih 5094f3ce80 Bug 1347164 - serialize colors using "rgba()" as the color-function, if they have a non-opaque alpha channel. r=dholbert
MozReview-Commit-ID: 44T8gy7UWFJ

--HG--
extra : rebase_source : 58f8621c70e0acff99f95d3305ef7ef0cc11c870
2017-03-20 17:26:05 +08:00
Cameron McCormack cf1045e125 Bug 1302054 - Part 3: Remove mention of nsChangeHint_Hints_NotHandledForDescendants in RestyleManager::ChangeHintToString. r=dbaron
MozReview-Commit-ID: K21VDcNd9Oy
2017-03-21 16:33:05 +08:00
Cameron McCormack cf56de72b5 Bug 1302054 - Part 2: Remove no longer useful nsStyleContext::CalcDifference optimization that handles the same-rule-node case. r=dbaron
nsStyleContext::CalcDifference had an optimization where, when we knew
that the old and new style context have the same rule node, we knew that
the only change hints that would need to be handled are those in the
"not handled for descendants" category, generated due to explicit
'inherit' values on reset properties.  This was because any changes due
to differences in inherited properties should only have generated
"handled for descendants" change hints (and thus would already have been
handled on an ancestor).

Before bug 931668, this let us avoid calling CalcDifference on structs
that only would have generated hints that we knew we already would have
handled.  However, after bug 931668, we compare all structs anyway so
that we can set the aEqualStructs outparam, so we don't gain anything
from this optimization.  We can still return these change hints we know
will not need to be handled, and rely on ElementRestyler::CaptureChange
to filter them out.

MozReview-Commit-ID: Ld1s2Js0i6r
2017-03-21 16:33:05 +08:00
Cameron McCormack 5131fe23a2 Bug 1302054 - Part 1: Avoid computing style differences when we just want to ensure structs are cached on the new context. r=dbaron
MozReview-Commit-ID: DLhHcCD4GQS
2017-03-21 16:33:05 +08:00
Cameron McCormack 767a077d73 Bug 1301258 - Part 2: Remove all subsumed hints when generating changes from restyles. r=dbaron
This changes ElementRestyler::CaptureChange so that it avoids generating the
current frame's entire set of change hints, if only some of the hints were
handled by ancestors, and instead to remove the hints that we know are
subsumed.

MozReview-Commit-ID: JvhxeQC6MmQ
2017-03-21 16:33:05 +08:00
Cameron McCormack 2a3ed57d71 Bug 1301258 - Part 1.5: Tweak some comments around change hints. r=dbaron
MozReview-Commit-ID: Gze6SFaXvSA
2017-03-21 16:33:05 +08:00
Cameron McCormack d2bf6adc7c Bug 1301258 - Part 1: Define macros for change hints always, never and sometimes handled for descendants. r=dbaron
MozReview-Commit-ID: 1lOl7U6rlC5
2017-03-21 16:33:05 +08:00
Wes Kocher 5d7c0bee97 Merge m-c to inbound a=merge
MozReview-Commit-ID: 860fBgcgHiy
2017-03-20 18:28:24 -07:00
Wes Kocher 4f5262444c Merge inbound to central, a=merge
MozReview-Commit-ID: 2omKclRg40c
2017-03-20 18:19:52 -07:00
Mats Palmgren b3478c6ec2 Bug 1343795 - Hold a strong ref on the Selection while calling ScrollIntoView with SCROLL_DO_FLUSH. r=smaug
MozReview-Commit-ID: 5C10dmT0bI9
2017-03-21 02:12:41 +01:00
Sebastian Hengst af455321f5 Backed out changeset b4e95d147909 (bug 1343795) for bustage in layout/generic/nsSelection.cpp. r=backout 2017-03-20 23:41:44 +01:00
Mats Palmgren 69a981c64a Bug 1343795 - Hold a strong ref on the Selection while calling ScrollIntoView with SCROLL_DO_FLUSH. r=smaug
--HG--
extra : rebase_source : d2bd613d69ac59244818dbe2403e2f7b18deca35
2017-03-20 18:21:00 -04:00
Mats Palmgren bf4cac95a4 Bug 1348665 part 5 - Remove the aFrame param to ReparentFrameViewTo and make it a member function instead. r=tnikkel
MozReview-Commit-ID: HStZiMcSOZa
2017-03-21 01:22:13 +01:00
Mats Palmgren b0adfe4733 Bug 1348665 part 4 - Remove some params to SyncFrameViewProperties and make it a member function instead. Make the aView param optional, use the frame's view if none provided. r=tnikkel
MozReview-Commit-ID: KTUaiqr0cmT
2017-03-21 01:22:13 +01:00
Mats Palmgren 4b52d84cfa Bug 1348665 part 3 - Remove the aFlags param to SyncFrameViewProperties because all callers pass zero. r=tnikkel
MozReview-Commit-ID: 7zohl3bOsO1
2017-03-21 01:22:13 +01:00
Mats Palmgren 896c347cb8 Bug 1348665 part 2 - Remove the ViewProperty and store the nsView* in a field on the relevant frame classes instead. r=tnikkel
The relevant frame classes are:
SubDocumentFrame
ListControlFrame (only when used for (non-e10s?) comboboxes)
PluginFrame
ViewportFrame
MenuPopupFrame

The view is now created in the frame's Init() method, except for
ViewportFrame which has its view assigned by the frame constructor
via a SetView() call.

MozReview-Commit-ID: 4O7Hm1yqwIp
2017-03-21 01:22:13 +01:00
Mats Palmgren 48fe777dbb Bug 1348665 part 1 - Move a few nsView related methods from nsContainerFrame to nsIFrame/nsFrame (idempotent patch). r=dholbert
Views are used for PluginFrame which inherits nsFrame, not nsContainerFrame,
so it's more appropriate that these methods should live in nsIFrame/nsFrame.

MozReview-Commit-ID: 87EgCnkF5YT
2017-03-21 01:22:13 +01:00
Boris Zbarsky ec233151ac Bug 1348331 part 2. Switch Preferences::RegisterCallback/RegisterCallbackAndCall consumers that want prefix matches to the new RefisterPrefixCallback(AndCall) APIs. r=froydnj,padenot
MozReview-Commit-ID: 2ebVZO4fN6i
2017-03-21 14:59:02 -04:00
Geoff Brown df122d5bfa Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
cku ff59d84e8f Bug 1349115 - Remove gfxPattern::CairoStatus r=mstange
This function is not a virtual function and always returns CAIRO_STATUS_SUCCESS
after the patch in bug 1054838 landed. There is no reason to keep it anymore.

MozReview-Commit-ID: EadrrFQyjfY

--HG--
extra : rebase_source : 3f6a284dc9fa396d5cfd3f64190562373801a0a2
2017-03-21 14:32:22 +08:00
Boris Chiou 07c4d7dc13 Bug 1343153 - Part 3: Replace pointer to const with immutable reference for nsTimingFunction. r=emilio,hiro
MozReview-Commit-ID: BcY4mTtCtjn

--HG--
extra : rebase_source : c0884e86971bbb50028247b11c4f93ad72babc21
2017-03-21 14:29:43 +08:00
Boris Chiou 384142c233 Bug 1343153 - Part 2: Use Servo css-parser for ParseEasing. r=birtles,emilio
We use Servo css-parser to parse keyframe property-value pairs, so we
should also use it to parse easing for Web Animations.

MozReview-Commit-ID: FsfHQaNT2xO

--HG--
extra : rebase_source : 8eb6489f257839f2c0de943b63cc1c04b44ff7a5
2017-03-21 14:27:46 +08:00