Commit Graph

49460 Commits

Author SHA1 Message Date
Daniel Holbert
36fc48e775 Bug 1192376: Make nsImageBoxFrame check whether image size is available before trying to paint an image. r=seth 2016-02-29 15:09:13 -08:00
Daniel Holbert
e23c4f231b Bug 1247478: Rename FirstAdditionalAuthorSheet() to GetFirstAdditionalAuthorSheet(), since it can return null. r=heycam 2016-02-29 15:09:13 -08:00
Daniel Holbert
3b5be30cb3 Bug 1245978 part 3: Drop unnecessary whitespace in NS_DECL_NSIDOCUMENTVIEWERPRINT macro. (whitespace only, no review) 2016-02-29 15:09:13 -08:00
Daniel Holbert
65bef52b4d Bug 1245978 part 2: Drop redundant 'virtual' keyword from NS_DECL_NSIDOCUMENTVIEWERPRINT macro (which already includes 'override' keyword). r=heycam
This makes these lines shorter, and brings us into alignment with the Mozilla Coding Style Guide. See mozilla.dev.platform post "Proposal to alter the coding style to not require the usage of 'virtual' where 'override' is used" for more info.
2016-02-29 15:09:13 -08:00
Daniel Holbert
541713fc1f Bug 1245978 part 1: Make nsDocumentViewer::CreateStyleSet directly return the thing it creates. r=heycam 2016-02-29 15:09:13 -08:00
Jamie Nicol
609f6141ab Bug 1247098 - Take document resolution into account when computing root composition bounds for displayport base. r=tnikkel
nsLayoutUtils::CalculateCompositionSizeForFrame() is not affected by the
document resolution when called for the root content document's root
scroll frame. When determining the root composition bounds in order to
calculate a displayport base, if the frame used is the RCD-RSF we must
be sure to scale the bounds ourselves by the document resolution.

MozReview-Commit-ID: ATctmEYvWIJ

--HG--
extra : rebase_source : ba96e7ecc2cefdbeacb08fbd3f5817819dd933c8
2016-02-24 15:30:10 +00:00
Jamie Nicol
4443e3c227 Bug 1247098 - Mark nsIPresShell::GetResolution and nsPresContext::IsRootContentDocument as const. r=tnikkel
MozReview-Commit-ID: 5IXm4EUy7IN

--HG--
extra : rebase_source : 7028a908adcb36828a58bb3ad7403559cfad9eb2
2016-02-24 14:57:43 +00:00
Ting-Yu Lin
a423fc51d3 Bug 1251915 - Ignore handling eTouchCancel events. r=roc
In my original design, I treat eTouchCancel to be like eTouchEnd for
ending a caret dragging procedure.

However when pointer events is enabled, it sents an eTouchCancel event
after the eTouchStart event whose primary usage is to be converted to
pointer events, which then cancels the normal caret dragging procedure.

Moreover, when pointer events is disabled, we don't get eTouchCancel
during a normal caret dragging scenario, so we don't really need to
handle eTouchCancel anyway.

MozReview-Commit-ID: GKju2Tp0q3Q

--HG--
extra : rebase_source : 31da189fc5543c7df0d748df004fc67c87f4da7f
2016-02-29 15:51:44 +08:00
Ting-Yu Lin
5b6692bd2c Bug 1251915 - Correct AccessibleCaretEventHub coding style by clang-format. r=roc
This patch is generatedy by applying clang-format on
AccessibleCaretEventHub.cpp.

MozReview-Commit-ID: 10qPJ47CVMH

--HG--
extra : rebase_source : ff39be696ef4cd93ffbe0b9e7c95920aa03a6893
2016-02-29 15:51:44 +08:00
Bogdan Postelnicu
5a04584913 Bug 1252039 - corrected MOZ_ASSERT expression in SeparatorRequiredBetweenTokens. r=dbaron
MozReview-Commit-ID: 89XUK8hKSSE

--HG--
extra : rebase_source : 53a336311edc4faabf20a829f58ed95461aa6cf6
2016-02-29 14:26:22 +02:00
Ting-Yu Lin
883cfca3eb Bug 1250560 - Fix crash in HandleTouchEvent. r=roc
When enabling "dom.w3c_pointer_events.enabled", we might get a
eTouchCancel event without any touch data. That is, aEvent->touches is
an empty array. We need to make sure it's non-empty before accessing
aEvent->touches[0].

MozReview-Commit-ID: BQUsrJjHHEl

--HG--
extra : rebase_source : d5f435792ecc0cac79937121fa03ce6f22c59582
2016-02-28 23:16:45 +08:00
David Anderson
0efa6917a2 Ensure that content processes recreate rendering devices. (bug 1245765 part 8, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
David Anderson
c00e9a5d93 Handle device resets by recreating the compositor, rather than the compositor IPDL stack. (bug 1245765 part 7, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
David Anderson
dd2df9d99a Remove some static_casting in CompositorParent. (bug 1245765 part 5, r=mattwoodrow) 2016-02-29 01:53:14 -05:00
David Anderson
baa8528ec5 Fold nsDisplayBlendContainer constructors. (bug 1209278 part 3, r=mstange) 2016-02-29 01:45:43 -05:00
David Anderson
4de734947b Remove lazy scrollinfo hoisting introduced in bug 1193557. (bug 1209278 part 2, r=mstange) 2016-02-23 10:11:43 -08:00
David Anderson
b7dba4cb77 Require mix-blend mode support in all compositors and layer managers. (bug 1209278 part 1, r=mstange) 2016-02-23 10:11:21 -08:00
Ryo Motozawa
35966647ca Bug 1244641 - Part 5: Add duration tests in layout/style/test. r=hiro
MozReview-Commit-ID: JrsLXlvjJa8

--HG--
extra : transplant_source : H%24%12%FF%01%40%97%02%23ym%88%C2%C6%08T%ACB%20%91
2016-02-27 06:41:40 +09:00
Robert O'Callahan
e0d9d3c032 Bug 1250143. Account for border/padding on outer <svg> elements in GeometryUtils. r=mats
MozReview-Commit-ID: KwEwnukNgeF

--HG--
extra : rebase_source : d0ba2e4cd3e45280d8d030517c515caa04cb0b66
2016-02-25 23:54:09 +13:00
Bobby Holley
5c409b2ed2 Bug 1251496 - Forward stylesheet management to RawServoStyleSet. r=heycam 2016-02-28 00:25:34 -08:00
Bobby Holley
205b124ab5 Bug 1251496 - Introduce a servo-side data structure to represent the style set. r=heycam 2016-02-28 00:25:33 -08:00
Bobby Holley
90a86c1a2e Bug 1251496 - Hoist existing RefPtrTraits into a ServoBindingHelpers.h. r=heycam
I think we're going to have a fair number of things like this, so I'd rather
put them all in one place, rather that defining them in the header for the first
consumer that uses the type.
2016-02-28 00:25:32 -08:00
Eric Rahm
fa0cddb6fb Bug 1251770 - Remove remaining references to MOZILLA_XPCOMRT_API from layout. r=dbaron 2016-02-27 11:12:08 -08:00
Timothy Nikkel
82b750a534 Backed out changeset 93f722efcdec (bug 1145903) for causing bug 1251796. 2016-02-27 12:53:28 -06:00
Peter Van der Beken
946ac27409 Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz.
--HG--
extra : rebase_source : 88c93e93905e20d2f6755d67d86902fdfc923eb4
2016-02-14 15:59:48 +01:00
CJKu
40d4481e10 Bug 1251115 - Fix incorrect rendering result while mask path is not resolvable; r=mstange
MozReview-Commit-ID: JBl379AKnLU
2016-02-27 17:30:01 +08:00
Geoff Brown
e9ffb61914 Bug 1246797 - Avoid some new reftest failures on Android 4.3 with new AVD; r=kats 2016-02-26 14:01:12 -07:00
Geoff Brown
6dc481a362 Bug 1146693 - Enable some layout/reftests/bugs tests on Android 4.3; r=me 2016-02-26 14:01:11 -07:00
Geoff Brown
8eb29268ad Bug 1146690 - Enable layout/reftests/margin-collapsing/block-float-1b.html on Android 4.3; r=me 2016-02-26 14:01:11 -07:00
Wes Kocher
946e80d2aa Backed out changeset 3eb7e82deef8 (bug 1251115) for android mask-composite-1b.html failures
MozReview-Commit-ID: HsTW97D6aSa

--HG--
extra : rebase_source : 9357eeface8857f552ff9cbf7ff61187f01cc4b1
2016-02-26 10:06:22 -08:00
Benoit Girard
222f9bc8c4 Bug 1145903 - Use CSS to shrinkToFit instead of a racy set of width/height on the image frame. r=tnikkel
MozReview-Commit-ID: GnBcPLMGKDS

--HG--
extra : rebase_source : 665ac8fd0cf60745dff19940ddd1201a6cd5145f
2016-02-22 19:02:26 -05:00
Daniel Holbert
712c311be3 Bug 1251530: Use 'MakeUnique' instead of 'new' to populate UniquePtr variable in AddCSSValuePair. r=jwatt 2016-02-26 07:34:37 -08:00
Milan Sreckovic
65bcdb7519 Bug 1249640: Part 2 gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280 2016-02-22 14:23:00 +01:00
Milan Sreckovic
ad2dbbf528 Bug 1252929: Next.1. Make layers.max-active preference not need a restart. r=mstange 2016-03-04 12:13:57 -05:00
vincentliu
2b8952ed36 Bug 801176 - part3-v6: Keep CSSParser operations as threading safe. r=heycam
---
 dom/canvas/CanvasRenderingContext2D.cpp | 13 +++++---
 layout/style/ErrorReporter.cpp          |  9 +++++-
 layout/style/nsCSSParser.cpp            | 55 ++++++++++++++++++++-------------
 3 files changed, 51 insertions(+), 26 deletions(-)
2016-03-04 15:22:58 +08:00
Mats Palmgren
40399b7a96 Bug 1185140 - Change the expected computed display value to 'block' for flex items, also for table display types. r=bustage 2016-03-03 21:57:32 +01:00
Mats Palmgren
782f52a633 Bug 1185140 - [flexbox] Mark a few flexbox reftest as failing for now, since they assume table pseudo creation occurs before blockification. 2016-03-03 19:37:58 +01:00
Mats Palmgren
089d18caf8 Bug 1185140 - [css-grid] Reftests for Grid item blockification. 2016-03-03 19:37:58 +01:00
Mats Palmgren
95cbb97e58 Bug 1185140 - [css-grid][flexbox] Make grid/flex item blockification happen before creating table pseudos, per the latest specs. r=dholbert
CSSWG resolution:
https://lists.w3.org/Archives/Public/www-style/2015Sep/0038.html
2016-03-03 19:37:58 +01:00
Gabor Krizsanits
02d06252fa Bug 1248806 - Splitting out protocol handlers from nsLayoutModule. r=bholley 2016-03-03 12:05:52 +01:00
Seth Fowler
b4ddf9bb30 Bug 1171371 - On memory-pressure, remove any stale images from the visible images list. r=tn 2015-06-04 11:08:19 -07:00
Cameron McCormack
49f6905565 Bug 1250790 - Don't try to add CSSStyleSheets from the style sheet service to a ServoStyleSet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
0252199029 Bug 1250788 - Unified build fix. 2016-02-26 12:51:02 +11:00
Cameron McCormack
b8519d7944 Bug 1250788 - Part 6: Create ServoStyleSheets for the pref style sheet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
4a6f4650a2 Bug 1250788 - Part 5: Create and parse ServoStyleSheets in css::Loader. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
c85f997b63 Bug 1250788 - Part 4: Implement enough of ServoStyleSet to handle the UA style sheets being added to it. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
bc4b843c37 Bug 1250788 - Part 3.3: Implement enough of ServoStyleSheet for Loader to be able to create and parse one. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
03e9025216 Bug 1250788 - Part 3.2: Factor out CSSStyleSheet members so they can be used by ServoStyleSheet. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
604555f6e0 Bug 1250788 - Part 3.1: Factor out CSSStyleSheetInner members so they can be used by ServoStyleSheet. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
8a373903a7 Bug 1250788 - Part 2: Expose IsCSSSheetType method. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
59c55b2932 Bug 1250788 - Part 1: Add interface to create and parse Servo style sheets. r=bholley 2016-02-26 12:51:01 +11:00
CJKu
9f8577fe60 Bug 1251115 - Fix incorrect rendering result while mask path is not resolvable; r=mstange
MozReview-Commit-ID: GoYRMRPHbze

--HG--
extra : rebase_source : 78b058a4b5681ee8ca96456c3d0587d541c912db
2016-02-26 02:32:10 +08:00
James Kitchener
15da814dcd Bug 1240799 - Apply axis height for mfrac elements without bar. r=fredw
--HG--
extra : rebase_source : e1af3219a73e3cf10b04f6b0dde81df0a56b684a
2016-02-20 02:59:00 +01:00
Alexander Surkov
d26328b368 Bug 1250333 - do not create accessibles for trailing BRs, r=davidb, roc 2016-02-25 07:09:59 -05:00
CJKu
4985b55721 Bug 1224424 - Replace mask-mode:auto keyword by mask-mode:match-source; r=dbaron
MozReview-Commit-ID: FKEJI1rHTIA

--HG--
extra : rebase_source : cdd72c6ae3b44e75d0f3415d99d3a897729a43fc
2016-02-25 17:31:47 +08:00
Brendan Dahl
1e077c8a5f Bug 1104916 - Implement CSS media query display-mode. r=cam 2016-02-23 17:10:00 +01:00
Cameron McCormack
995d7af691 Preemptive unified build fix; no bug. 2016-02-25 17:26:12 +11:00
Matt Woodrow
3bf68e972e Bug 1248323: P3. Add test for NV12/YUV422 readback. r=me
reftest is disabled on windows due to localized try readback errors that can't be reproduced.

MozReview-Commit-ID: 379PZsRE5d6

--HG--
extra : rebase_source : b990572c0f33860998eb5485824e417387d3e204
2015-02-26 08:01:07 +13:00
Brian Birtles
1231ac3eea Bug 1239945 part 5 - Use MayHaveAnimations() to return early in CommonAnimationManager::GetAnimationCollection; r=dholbert
Currently, CommonAnimationManager::GetAnimationCollection returns early when
the referenced list of animation collections is empty. So, for example, if
we try to get the collection of CSS animations on an element on a page with no
CSS animations, we will quickly return null without possibly expensive property
lookup. However, if there is just one CSS animation on the page, we will do the
property lookup for every element in the page where this method is called.

In this bug, we would like to remove the linked list of animation collections
since this is now the only place where it is used. So, in place if this
optimization, we introduce quite a different one based on the changes from bug
1226091 which makes MayHaveAnimations() apply to animations on the element
itself as well as pseudo elements. Using this, we can return early for any
element that has never had any kind of animation on it. The page may have
dozens of other animations but we will still return early. However, if the
element has ever had any kind of animation on it, we will not return early. It
is expected that this optimization is at least as good as the one it replaces.
2016-02-24 16:09:31 +09:00
Brian Birtles
f6ce89fead Bug 1239945 part 4 - Remove the pointer from an AnimationCollection to its manager since it is no longer used; r=dholbert 2016-02-24 16:08:56 +09:00
Brian Birtles
5413ebdb9d Bug 1239945 part 3 - Move AnimationCollection to a separate file; r=dholbert
In this bug we will trim off unnecessary functionality from the animation
managers and make AnimationCollection into an independent data type
so in this patch we separate it into its own file.

It is also generally easier to navigate the source code and eliminate
cyclic dependencies between header files when there is a rough
correspondance between class names and file names (e.g. rather than having
#include "AnimationCommon.h" // For mozilla::AnimationCollection).

This patch also makes a few simplifications to include dependencies since
they're a bit of a mess (making it hard to move code around). The changes to
IncrementalClearCOMRuleArray.cpp are due to the changes to the unified build
introduced by adding AnimationCollection.cpp exposing a missing include from
that file.
2016-02-24 16:08:20 +09:00
Brian Birtles
a9218457d2 Bug 1239945 part 2 - Drop CommonAnimationManager::ContentOrAncestorHasAnimation; r=dholbert
This was added in bug 780692 to work around assertions that arose due to the
inconsistent state introduced by mini-flushes. However, that workaround
no longer seems necessary. In particular, the crashtest for bug 813372 no
longer reports failed assertions when we remove this method and nor do any
other tests.

I'm not sure exactly what changed about how we do mini-flushes but I suspect
it was bug 960465 or one of the related follow-ups.
2016-02-24 15:42:33 +09:00
Brian Birtles
d06f85599d Bug 1239945 part 1 - Drop a number of animation manager/collection-related methods that are unused (and in some cases undefined); r=dholbert 2016-02-24 13:41:16 +09:00
Brian Birtles
633a6e61b2 Bug 1239945 part 0 - Fix unified build 2016-02-25 12:00:46 +09:00
Hiroyuki Ikezoe
8f7f1cc1b7 Bug 1242872 - Part 8: ElementPropertyTransition::ToValue(). r=birtles
MozReview-Commit-ID: 2zSAG6zcoYc
2016-02-19 16:43:06 +09:00
Hiroyuki Ikezoe
07c3358f3c Bug 1242872 - Part 7: Eliminate creation of temporary animations. r=dbaron
This patch removes a loop for the new temporary animation collection in
CheckAnimationRule.  The old collection is passed to CSSAnimationBuilder,
and CSSAnimationBuilder removes each animation which matches to new animation
name in it.
:birtles took care of storing animations in AnimationCollection in reverse order.
Thanks so much!

MozReview-Commit-ID: KmlnjFptKdv
2016-02-19 14:10:43 +09:00
Hiroyuki Ikezoe
606ae12164 Bug 1242872 - Part 6: Trigger a layer update explicitly when copying animation properties. r=birtles
MozReview-Commit-ID: AWL43ypqLPT
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
e80b4bb7b2 Bug 1242872 - Part 5: Change CopyPropertiesFrom to UpdateProperties. r=birtles
Once we don't create any temporary effect, we do not need to pass
the effect to CopyPropertiesFrom.

MozReview-Commit-ID: HczU5IU6Ggp
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
1cdd02df80 Bug 1242872 - Part 4: Factor updating animation properties process out. r=dbaron
MozReview-Commit-ID: 8VWdC3wFRZX
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
d0a6cc2bb8 Bug 1242872 - Part 3: Factor finding old animations process out. r=dbaron
MozReview-Commit-ID: H4bFKGpnhpX
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
67a3778e18 Bug 1242872 - Part 2: Set timeline in CSSAnimationBuilder::Build. r=dbaron
MozReview-Commit-ID: 6bisME1VK0d
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
e0d8bc16e9 Bug 1242872 - Part 1.1: Move AnimationManager::BuildAnimations. r=dbaron
MozReview-Commit-ID: ENfBlECSiDP
2016-02-19 09:16:15 +09:00
Hiroyuki Ikezoe
ed1cf18658 Bug 1242872 - Part 1: Introduce CSSAnimationBuilder to factor a bunch of stuff in BuildAnimations and CheckAnimationRule out. r=dbaron
MozReview-Commit-ID: 7921De3IVA6
2016-02-19 09:16:15 +09:00
Cameron McCormack
0ea3fe0527 Bug 1250767 - Unified build bustage fixups. 2016-02-25 11:09:34 +11:00
Bobby Holley
3b95f5b981 Bug 1250767 - Reorder Gecko EventState to match Servo's ElementState, and add an API to let Servo access it. r=heycam,r=bz 2016-02-23 17:51:47 -08:00
Bobby Holley
eb6ef53678 Bug 1250767 - Add support for hanging servo node data off Gecko nodes. r=heycam,r=bz 2016-02-23 17:28:50 -08:00
Bobby Holley
bb80449368 Bug 1250767 - Basic Servo Bindings. r=heycam 2015-11-24 17:14:39 -08:00
L. David Baron
b64070584c Bug 1187851 patch 6 - Make dynamic changes to filter change fixed position containing block for descendants. r=roc
MozReview-Commit-ID: DDSadc3yzDL
2016-02-24 16:08:31 -08:00
L. David Baron
ba1571ac4f Bug 1247929 patch 5 - Remove spurious canvas rule from reftests. r=dholbert
This removes a rule that was incorrectly added in the tests in patch 3,
which dholbert pointed out in a review comment (comment 18) made after
granting review (and only 3 minutes before I pushed the patches), which
I didn't see before pushing them.

I had incorrectly copied that rule from the
min-intrinsic-with-percents-across-elements.html test, which I based
these on.

MozReview-Commit-ID: IARSYkKkIRx
2016-02-24 16:08:31 -08:00
Sebastian Hengst
7988324ccb Backed out changeset 24309d9b5c7e (bug 1250767) for Windows bustage. r=bustage on a CLOSED TREE 2016-02-24 22:51:02 +01:00
Sebastian Hengst
48649adbe3 Backed out changeset 59ee7ae2519d (bug 1250767) 2016-02-24 22:50:51 +01:00
Sebastian Hengst
005b11b368 Backed out changeset 796b681561a7 (bug 1250767) 2016-02-24 22:50:40 +01:00
Bobby Holley
628b01c94e Bug 1250767 - Reorder Gecko EventState to match Servo's ElementState, and add an API to let Servo access it. r=heycam,r=bz 2016-02-24 13:01:18 -08:00
Bobby Holley
e1f6eb4ca5 Bug 1250767 - Add support for hanging servo node data off Gecko nodes. r=heycam,r=bz 2016-02-24 13:01:15 -08:00
Bobby Holley
3ee259b378 Bug 1250767 - Basic Servo Bindings. r=heycam 2016-02-24 13:01:04 -08:00
Robert O'Callahan
ffcca678ac Bug 1243623. Don't skip unregistering a table part if we have a split table. r=mats
MozReview-Commit-ID: 2GHprw8YGsx

--HG--
extra : rebase_source : 1e81751c22f7c78e26b2838d74ec2d682f00d0a6
2016-02-10 12:18:55 +13:00
L. David Baron
1cd0ed68ff Bug 1250342 patch 5 - Additional comment and variable name changes that should have been in patches 1 or 3.
MozReview-Commit-ID: IniRrCKSNuZ

--HG--
extra : rebase_source : ce42730f9f1d8a2e87fcf0d8f0095803d8ef099c
2016-02-24 11:06:25 -08:00
Daniel Holbert
d79889429f Bug 1250342 patch 4: Update & rename reftest 'text-align-true.html' to use 'unsafe' instead of 'true'. r=dbaron
MozReview-Commit-ID: vKXJ8M8GSs

--HG--
rename : layout/reftests/text/text-align-true-ref.html => layout/reftests/text/text-align-unsafe-ref.html
rename : layout/reftests/text/text-align-true.html => layout/reftests/text/text-align-unsafe.html
2016-02-24 10:40:30 -08:00
L. David Baron
1182aed626 Bug 1250342 patch 3: Rename preference layout.css.text-align-true-value.enabled to layout.css.text-align-unsafe-value.enabled . r=mats
MozReview-Commit-ID: 6IKnuvxZQcI
2016-02-24 10:40:30 -08:00
L. David Baron
96d86ab5e7 Bug 1250342 patch 2: Rename NS_STYLE_TEXT_ALIGN_TRUE to NS_STYLE_TEXT_ALIGN_UNSAFE. r=mats
MozReview-Commit-ID: LuHepP37jtr
2016-02-24 10:40:30 -08:00
L. David Baron
b6111122f6 Bug 1250342 patch 1: Rename exposed keyword for text-align: true to unsafe. r=mats
MozReview-Commit-ID: LYR3LtMtT2Q
2016-02-24 10:40:30 -08:00
L. David Baron
772aa66f53 Bug 1247929 patch 4 - Adjust reftest manifest for existing tests. r=dholbert
This reverts some of the changes made in bug 823483 patch 3 because it
turns out we don't want all of that behavior change.

MozReview-Commit-ID: Lbpi762qsbM
2016-02-24 10:40:30 -08:00
L. David Baron
a549515438 Bug 1247929 patch 3 - Reftests. r=dholbert
MozReview-Commit-ID: 95m014qFquG
2016-02-24 10:40:30 -08:00
L. David Baron
80475d611d Bug 1247929 patch 2 - Hard-code the Web-compatible set of form controls whose intrinsic minimum inline-size shrinks to 0 when inline-size (width) is specified as a percentage. r=dholbert
This adjusts the behavior previously modified by bug 823483 patch 2 and
bug 823483 patch 5.

MozReview-Commit-ID: 5IjYhFLUr68
2016-02-24 10:40:29 -08:00
L. David Baron
19ebacc921 Bug 1247929 patch 1 - Add GetType() overrides for nsProgressFrame and nsMeterFrame. r=dholbert
These frames previously inherited nsFrame::GetType (which returns null).

MozReview-Commit-ID: 42UzPxaD5pN
2016-02-24 10:40:29 -08:00
Sebastian Hengst
00a63ca413 Backed out changeset 303b759e886e (bug 1249640) 2016-02-24 19:02:00 +01:00
Jeremy Chen
206668d3fe Bug 1250375 - Remove hardware acceleration related preferences setting in reftest. r=roc
Setting "live" preferences in reftest is not supported, so these non-working codes should be removed.
2016-02-22 19:13:00 +01:00
Milan Sreckovic
1498964285 Bug 1249640: Part 2 gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280 2016-02-22 14:23:00 +01:00
Robert O'Callahan
b643b26155 Bug 1250773. Ignore viewBoxes with negative width/height. r=heycam
MozReview-Commit-ID: Be5fxaDz85w

--HG--
extra : rebase_source : 10ebb9d0dd466be36888aa0f6593fb547020e28f
2016-02-24 17:29:14 +13:00
Cameron McCormack
3633214b94 Bug 1250379 - Create css::Loaders for specific style backend types. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack
7e32ad166a Bug 1250377 - Part 3: Create a ServoStyleSet for HTML documents in content docshells. r=bholley 2016-02-24 18:01:12 +11:00
Cameron McCormack
4385370753 Bug 1250377 - Part 2: Stub out enough ServoStyleSet methods to be able to create one for a document. r=bholley 2016-02-24 18:01:12 +11:00
Cameron McCormack
9de96733e9 Bug 1250377 - Part 1: Use MOZ_STYLO environment variable to switch on Servo-backed style system. r=bholley 2016-02-24 18:01:12 +11:00
Cameron McCormack
89cac5abd1 Bug 1248864 - Part 3: Use RestyleManagerHandle instead of concrete restyle manager class. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack
60253e6183 Bug 1248864 - Part 2: Add skeleton ServoRestyleManager and a RestyleManagerHandle smart pointer. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack
736a5f47e7 Bug 1248864 - Part 1: Move RestyleManager.h to EXPORTS.mozilla. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack
0ecd5593cc Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert 2016-02-24 18:01:12 +11:00
Cameron McCormack
8b44372832 Bug 1244074 - Part 3: Add skeleton ServoStyleSheet and a StyleSheetHandle smart pointer. r=dholbert 2016-02-24 18:01:11 +11:00
Cameron McCormack
c30825ac6f Bug 1244074 - Part 2: Add HandleRefPtr for refcounting StyleSheetHandles. r=dholbert r=waldo 2016-02-24 18:01:11 +11:00
Cameron McCormack
919e1a53c7 Bug 1244074 - Part 1: Move SheetParsingMode to a separate file. r=dholbert 2016-02-24 18:01:11 +11:00
Cameron McCormack
7c95c39734 Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert 2016-02-24 18:01:11 +11:00
Cameron McCormack
2d34f1889d Bug 1244068 - Part 3: Factor out nsStyleSet getting in RestyleManager/ElementRestyler. r=dholbert 2016-02-24 18:01:10 +11:00
Cameron McCormack
c7df59c911 Bug 1244068 - Part 2: Add skeleton ServoStyleSet and a StyleSetHandle smart pointer. r=dholbert 2016-02-24 18:01:10 +11:00
Cameron McCormack
33e2e009b1 Bug 1244068 - Part 1: Add enum to represent the style system backend type. r=dholbert 2016-02-24 18:01:10 +11:00
Xidorn Quan
cf344838d0 Bug 1248505 - Remove nsDocument::IsFullScreenDoc and its uses. r=smaug
MozReview-Commit-ID: DfPI5U531ad

--HG--
extra : source : bcfb7b8155c7460b861ef3e11d92900ecb6c5029
2016-02-24 08:40:08 +08:00
Wes Kocher
42c013e034 Backed out 3 changesets (bug 1250342) for reftest failures in text-align-true.html CLOSED TREE
Backed out changeset 0eae0890ee11 (bug 1250342)
Backed out changeset e82e430d0eda (bug 1250342)
Backed out changeset 866f8a7337df (bug 1250342)

--HG--
extra : commitid : Gme2p6OagcA
2016-02-23 13:10:40 -08:00
Jonathan Watt
b7a8647630 Bug 1110460, part 5 - Factor out a nsStyleBasicShape::GetShapeTypeName method. r=dholbert 2016-02-17 00:19:27 +00:00
Jonathan Watt
169c41ba88 Bug 1110460, part 4 - Fix MOZ_ASSERT bug in nsComputedDOMStyle.cpp. r=dholbert 2016-02-17 00:19:26 +00:00
Jonathan Watt
33c16bb994 Bug 1110460, part 3 - Factor out a AddCSSValuePair helper in StyleAnimationValue.cpp. r=dholbert 2016-02-17 00:19:26 +00:00
Jonathan Watt
888be2d909 Bug 1110460, part 2 - Move AddPositions() further up StyleAnimationValue.cpp and add asserts. r=dholbert 2016-02-17 00:19:26 +00:00
Jonathan Watt
d4faa9c0c1 Bug 1110460, part 1 - Add operator= to nsCSSValuePair. r=dholbert 2016-02-17 00:19:26 +00:00
Wes Kocher
a9ea5f6a56 Backed out 2 changesets (bug 1193557, bug 1209278) for build bustage
Backed out changeset 755b9088813c (bug 1193557)
Backed out changeset 21356fa4e353 (bug 1209278)

--HG--
extra : commitid : 5hf8aSA5FhN
2016-02-23 10:39:08 -08:00
David Anderson
6fba740086 Remove lazy scrollinfo hoisting introduced in bug 1193557. (bug 1209278 part 2, r=mstange)
--HG--
extra : rebase_source : 004d42f760364cd18e16125fb04f5d22cba2d648
2016-02-23 10:11:43 -08:00
David Anderson
a08042eef1 Require mix-blend mode support in all compositors and layer managers. (bug 1209278 part 1, r=mstange)
--HG--
extra : rebase_source : c63182aa6b4465e22d8d4147bfd40bc1e8183b08
2016-02-23 10:11:21 -08:00
L. David Baron
ec4c382804 Bug 1250342 patch 3: Rename preference layout.css.text-align-true-value.enabled to layout.css.text-align-unsafe-value.enabled . r=mats
MozReview-Commit-ID: 6IKnuvxZQcI
2016-02-23 09:41:48 -08:00
L. David Baron
44d6843d2e Bug 1250342 patch 2: Rename NS_STYLE_TEXT_ALIGN_TRUE to NS_STYLE_TEXT_ALIGN_UNSAFE. r=mats
MozReview-Commit-ID: LuHepP37jtr
2016-02-23 09:41:48 -08:00
L. David Baron
1a1f378269 Bug 1250342 patch 1: Rename exposed keyword for text-align: true to unsafe. r=mats
MozReview-Commit-ID: LYR3LtMtT2Q
2016-02-23 09:41:47 -08:00
Jamie Nicol
c928753abf Bug 1247554 - Budget creation of AGRs by frame area; r=mattwoodrow
In nsDisplayListBuilder keep track of the total area of frames which
have been made animated geometry roots due to having animated offset or
margin properties. This is in order to reduce the total area of created
layers. Once the area has reached a certain limit do not allow any more
frames to be AGRs for this reason.

Currently this only applies to AGRs created due to frames having
animated offset or margin properties. This is because we believe this is
a major source of over-layerisation and too high memory usage. This
could easily be extended to include the creation of AGRs due to other
reasons too.

Note that this technically limits the area of AGR frames, not the area
of layers, though it will have a fairly direct impact.

MozReview-Commit-ID: BvgRrC8KMIp

--HG--
extra : transplant_source : %F3rp%193%1A%E4i%8B%E8%24%B1%FE%81%C2U%F8%3A%AEQ
2016-02-18 15:54:13 +00:00
Jamie Nicol
900d65afe1 Bug 1247554 - Mark nsPresContext::GetVisibleArea as const; r=mattwoodrow
MozReview-Commit-ID: 57Ghhfcmxkr

--HG--
extra : transplant_source : O/%C0%7EO%89%CF%A3%7CE0%A6EA%96%F2%E7v%FF/
2016-02-18 15:13:35 +00:00
Jeremy Chen
706c70f0da Bug 1239564 - Add reftest for mask layer composition. r=roc 2016-02-22 04:21:00 +01:00
Kartikaya Gupta
bbc14f488b Bug 1243267 - Guard against reentrancy into the dispatch of a scroll event. r=mats
MozReview-Commit-ID: 5saxPwxOuc8
2016-02-22 14:14:20 -05:00
Phil Ringnalda
1a1ec5b8bb Merge f-t to m-c, a=merge 2016-02-20 17:25:14 -08:00
Kris Maglione
e2f52be2a6 Bug 1213895: Part 1 - Correctly support crop="none" in XUL labels. r=neil
MozReview-Commit-ID: 9OiVjcJy99g

--HG--
extra : rebase_source : ae225dd56f1c94e0e56c236a810ca7b4663ccbdf
extra : source : d61da023339cd16d65aa60c93ce463617f10a5c8
2016-02-10 20:12:00 -08:00
Bogdan Postelnicu
46186eac3d Bug 1230918 - remove useless null-pointer check on aChild that only caused a Coverity - Dereference before null check. r=dbaron
MozReview-Commit-ID: JzpMNHYEpgu

--HG--
extra : rebase_source : 98c9007ef160bffa18a847bc722de29d2719a454
2016-02-10 11:54:45 +02:00
Cameron McCormack
62a2823887 Bug 1133615 - Don't assert about the contents of RestyleData::mDescendants when in a full style rebuild. r=dbaron 2016-02-20 13:20:24 +11:00
Geoff Brown
763998cf8c Bug 1249681 - Set utilityPath for Android mach reftests; r=bdahl 2016-02-19 16:10:22 -07:00
Jonathan Kew
9d0b4976bc Bug 1240533 - Parameters to ScreenForRect need to be passed as desktop pixels, not device pixels. r=emk 2016-02-19 21:20:57 +00:00
Carsten "Tomcat" Book
fd2c2d9b1a merge mozilla-inbound to mozilla-central a=merge 2016-02-19 12:02:26 +01:00
chaithanya
1cea93e0d5 Bug 1243435 Remove unused prefs toolkit.telemetry.prompted / toolkit.telemetry.notifiedOptOut from test suites r=Dexter
MozReview-Commit-ID: 83IOB4Xvf8I
2016-02-18 10:51:24 -08:00
Daniel Holbert
2cdfef61a2 Bug 1249134: Remove support for -webkit-appearance as an alias for -moz-appearance, since the two prefixed properties behave differently in practice. r=heycam 2016-02-17 19:03:39 -08:00
Jonathan Kew
1e18852d87 Bug 1248551 - Add assertion to confirm that the bidi code is not trying to execute an invalid state-machine action. r=roc 2016-02-17 21:41:43 +00:00
Carsten "Tomcat" Book
a363262826 Merge mozilla-central to mozilla-inbound 2016-02-17 14:37:20 +01:00
Carsten "Tomcat" Book
436f1bf747 Backed out changeset bc3e37b63def (bug 1246918) for fix frequent android c1 test failures 2016-02-17 14:35:10 +01:00
Carsten "Tomcat" Book
8cbc76d2fd Backed out changeset 10e71da98b14 (bug 1246918) 2016-02-17 14:34:49 +01:00
Jonathan Kew
ed3d3edf14 Bug 1248128 - The fallback caret-move handling from bug 1153237 should be more selective to avoid undesired side-effects. r=roc 2016-02-17 12:05:10 +00:00
Jamie Nicol
7a3d99d8ca Bug 1246443 - Only restrict displayport base to root composition bounds if content has displayport; r=tnikkel
Bug 1241917 made it so that a subframe's displayport base is restricted
to the root composition bounds (in addition to its previous
restrictions). This involved an expensive coordinate transformation
causing a scrolling performance regression.

This avoids restricting the displayport base to the root composition
bounds unless the frame has a display port, avoiding the expensive
computation unless necessary.

MozReview-Commit-ID: FVacUscAfu2

--HG--
extra : transplant_source : %F9%E9%19%06/%9C%EA%8C%D1%D5%BD%ED%26C%97y%15%92%7E%CB
2016-02-09 13:53:27 +00:00
Ting-Yu Lin
585b41e8b5 Bug 1246918 - Handle PresShell gone after FlushLayout(). r=roc
After calling FlushLayout(), PresShell::Destroy() might be called and we
should consider PresShell and other resources will be no longer valid.

Before this patch, AccessibleCaretManager and AccessibleCaret(s) are
deallocated in PresShell::Destroy(). However FlushLayout() are all
invoked in AccessibleCaretManager, we need to keep manager alive to
clean up after PresShell::Destroy().

This patch makes AccessibleCaretManager live after PresShell::Destroy(),
and use IsTerminated() to check whether PreShell is vaild after each
FlushLayout() calls.

Note that event though AccessibleCaretEventHub will be unref in
PresShell::Destroy(), all the callers to AccessibleCaretEventHub's
public methods already add a ref to AccessibleCaretEventHub. So we don't
need to worry about AccessibleCaretEventHub and AccessibleCaretManager
die immediately after PresShell::Destroy().

MozReview-Commit-ID: DDpXZ7v3zyo

--HG--
extra : rebase_source : 2698f0313e394b64ff8caacf21493c874510a7ce
2016-02-15 15:12:35 +08:00
Ting-Yu Lin
8f500a4074 Bug 1246918 - Fix carets missing after scrolling down in selection mode on Fennec. r=roc
Fennec enables sCaretsExtendedVisibility which uses
Appearance::NormalNotShown instead of Appearance::None to keep actionbar
shown during scrolling. This breaks selection mode update when the
positions of the carets are not changed after scrolling.

To fix this, we need to implement appearance recovering for selection
mode scrolling like we did for cursor mode in bug 1212732, and make
UpdateCaretsForSelectionMode() respects UpdateCaretsHint.

MozReview-Commit-ID: LkfUIGKHL0h

--HG--
extra : rebase_source : 2e68786e09046967f7c6af16fa6b393f133dc12c
2016-02-11 16:22:57 +08:00
Xidorn Quan
510a3f68bd Bug 743198 part 7 - Add :fullscreen pseudo class. r=heycam
--HG--
extra : source : 245ce2e3f4f51029f8b70bdbd0ca327385be9cdf
2016-02-17 08:47:11 +08:00
Xidorn Quan
61f1684757 Bug 743198 part 2 - Add unprefixed Fullscreen API to Document and Element. r=smaug
--HG--
extra : source : aaf4d12b511ba25ba93e6135cb849a3264435f7c
2016-02-17 08:47:11 +08:00
Xidorn Quan
6b28759520 Bug 1218706 - Make 'unicode-bidi: isolate' the default for elements with a dir attribute. r=dbaron,jfkthame
--HG--
extra : source : b558ee0be0a413438660e1e858ac535930cf6603
extra : amend_source : c833b22b855610750c47f47b24e6816931782895
2016-02-17 08:39:54 +08:00
Mason Chang
08b7452541 Bug 1246213. Part 2. Followup to fuzz menclose-3-radical.html. r=me 2016-02-16 11:35:41 -08:00
Botond Ballo
17ea77b2cf Bug 1238137 - Telemetry pings for main thread scrollbar-driven scroll input methods. r=kats
--HG--
extra : commitid : GhlyvPny7Af
extra : rebase_source : 56705246d76aeba3ea3db32a8a672cf560f4aece
extra : amend_source : 856aef19ec8f8711759d2e9ffc06ffc971b1130c
extra : histedit_source : db4efe5b05499a019d76d8655b862815026029c8
2016-02-05 16:21:54 -05:00
Botond Ballo
45d03919dc Bug 1238137 - Telemetry pings for main thread scrolling to bring the caret into view after moving it in response to keyboard input. r=ehsan
--HG--
extra : commitid : 6E0SPxaKbMl
extra : rebase_source : ca82cafc8b462318ffc5030319546731d9e7a540
extra : histedit_source : 63c1e103a3aaf2ce340b1b4f2276763c16ac2237
2016-02-03 20:36:24 -05:00
Botond Ballo
51957870b3 Bug 1238137 - Telemetry pings for main thread keyboard-driven scroll input methods. r=ehsan
Pings are sent in the implementations of the nsISelectionController methods
ScrollLine, ScrollPage, ScrollCharacter, and CompleteScroll. It is assumed
that these methods are triggered by keyboard input.

A small number of false positives can occur if these methods are called
in response to something other than keyboard input; this is considered
acceptable.

--HG--
extra : commitid : JDXW8ptuXkF
extra : rebase_source : c45fe2b16484ad370edb852d8eafbc76ca7d0bac
extra : amend_source : b4af21228768221211a42c11a2ff306a6f2bb402
extra : histedit_source : 7cdc4b4df3579682fad194ddfc04c7a5d02c0d3e
2016-02-03 19:51:03 -05:00
Mason Chang
b4c228baec Bug 1246213 - Skia reftest fuzzing for Skia content on OS X. r=jmuizelaar 2016-02-16 09:07:52 -08:00
Edwin Flores
7d1d94d936 Bug 1229250 - Auto-extend the reftest timeout - r=kats 2016-02-16 14:46:56 +00:00
Aidin Gharibnavaz
6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
ISHIKAWA, Chiaki
be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Jamie Nicol
bf038be32c Bug 1241078 - Only treat items as backface hidden if they are 3D-transformed. r=tlee
Add helper function nsIFrame::In3DContextAndBackfaceIsHidden() which
checks both if a frame is backface-hidden and whether it is within a
3D-transform context.

In FrameLayerBuilder, check this function rather than BackfaceIsHidden()
to determine whether a frame needs a backface-hidden layer. This will
avoid creating unnecessary extra layers for non-3d-transformed items
which for some reason have backface-hidden set.
2016-02-08 22:34:13 +00:00
Matt Woodrow
04f750f035 Bug 1245450 - Only setup AutoSaveRestorePerspectiveIndex for the descendants of the element with perspective. r=roc 2016-02-15 23:21:52 +13:00
Jonathan Kew
4e37cb9e3c Bug 1248248 - Don't break glyph run for orientation mismatch before a cluster-extender. r=xidorn 2016-02-15 09:07:53 +00:00
Jonathan Kew
1dc6cfacb2 Bug 1248248 - Reftest for variation selectors in vertical text with mixed (default) orientation. r=xidorn 2016-02-15 09:07:53 +00:00
Brian Birtles
063bfa030d Bug 1246046 part 2 - Add reftest for style updating for script-generated animations; r=heycam 2016-02-15 16:10:03 +09:00
Brian Birtles
c3fe45107c Bug 1246046 part 1 - Get the animation rule in nsStyleSet::GetContext even if there are no CSS animations; r=heycam
Without this patch, when we have script-generated animations but *no* CSS
animations, nsStyleSet::GetContext will not use the updated animation rule.
2016-02-15 16:08:33 +09:00
Matt Woodrow
c12916f2fc Bug 1246622 - Handle nested preserve-3d contexts when hit testing. r=roc 2016-02-15 09:47:57 +13:00
Mats Palmgren
fad51b17d9 Bug 1216001 part 3 - Cache the result of IsSelected() for the duration of painting. r=bz 2016-02-13 18:40:23 +01:00
Mats Palmgren
b7b78f6d1f Bug 1216001 part 0 - Allow a little bit of fuzz due to anti-aliasing in a few reftests. r=me 2016-02-13 18:40:23 +01:00
Bas Schouten
0ba3291163 Bug 1247775 - Part 2: Remove Direct2D 1.0 code from Thebes. r=dvander
MozReview-Commit-ID: EC8yhkvvood
2016-02-13 14:33:27 +01:00
L. David Baron
fe18585912 Bug 1247865 - Fix assertion to handle restyling of a table::after. r=birtles
I confirmed locally that this patch does fix the assertion in the
crashtest.

MozReview-Commit-ID: L1TIAZZ1aNu

--HG--
extra : transplant_source : %FE_N%7D%AE%11%0D%92B%93%F6%3D%CFyY%3D5%7EFt
2016-02-12 22:54:26 -08:00
L. David Baron
15f112aaec Bug 1247865 - Add crashtest for assertion. r=birtles
I confirmed locally that, without the following patch, the crashtest
harness does detect the single assertion.

MozReview-Commit-ID: FRkCdxSSa7V

--HG--
extra : transplant_source : xF%BC%7E%03%B3%1Bp%EF%07%D9%28%F6C%B5s%C7%C2%15%C1
2016-02-12 22:54:26 -08:00
Kartikaya Gupta
1139f832a4 Bug 1198223 - Remove conditions that are always false. r=jmaher
MozReview-Commit-ID: DVI6R6MH0bo

--HG--
extra : rebase_source : 14edc0dd3f3920a856c51a9460d20a6eba77a13e
2016-02-19 11:34:47 -05:00
Mason Chang
7116fe48b5 Bug 1207332. Part 2: Reftest fuzzing for skia content on OS X. r=lsalzman 2016-02-19 08:50:50 -08:00
Ting-Yu Lin
52bb178c2f Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points. r=mats
Also I removed the 'explicit' keywords from the constructor since they have no
argument so nothing can be implicited converted to them.

MozReview-Commit-ID: GrFcqO0Uf1o

--HG--
extra : rebase_source : 5994787b7feccf409db1faf6359676b5170ea203
extra : source : a27cd3e26cc146006db501efb86b54b097f28b57
2016-02-19 18:21:16 +08:00
Carsten "Tomcat" Book
789b0d7cd9 Merge mozilla-central to mozilla-inbound 2016-02-19 12:07:49 +01:00
Hiroyuki Ikezoe
9cf92adc7d Bug 1249274 - Need preferences for reftest using Web Animation APIs. r=birtles
MozReview-Commit-ID: 4vd2sVHx4fQ

--HG--
extra : transplant_source : %E7%05A%0Fk%D0%87JA%1AX%FB%A9%60%83%14Z%D4DP
2016-02-19 07:53:37 +09:00
Boris Chiou
5c37ed6ba0 Bug 1244049 - Part 4: Define CSSPseudoElementTypeBase. r=dbaron
In order to convert CSSPseudoElementType into its underlying type easier,
we define CSSPseudoElementTypeBase. However, keep using uint8_t directly for
forward declarations.
2016-02-18 19:18:00 +01:00
Carsten "Tomcat" Book
1fec837eb9 Backed out changeset a27cd3e26cc1 (bug 1248847) for bustage 2016-02-19 09:38:59 +01:00
Hiroyuki Ikezoe
87ff70080d Bug 1223249 - Use step-end with reverse direction to avoid intermittent failures. r=dbaron
MozReview-Commit-ID: Db9G4lJfl5z

--HG--
extra : rebase_source : f1ff0f06e7083bb9d11531838c0c5c859a4fa539
2016-02-18 10:17:43 +09:00
Nicholas Nethercote
2abcf180f1 Bug 1249171 - Simplify nsCOMArray::SizeOfExcludingThis(). r=erahm.
Using explicit iteration at measurement sites is much simpler and nicer than
using callbacks.

--HG--
extra : rebase_source : 8b3f7aa702743b665383766b66a866a2c3d17240
2016-02-19 14:54:45 +11:00
Ting-Yu Lin
4a4798d88b Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points. r=mats
Also I removed the 'explicit' keywords from the constructor since they have no
argument so nothing can be implicited converted to them.

MozReview-Commit-ID: GrFcqO0Uf1o

--HG--
extra : rebase_source : c4747c5e3ea09ddfc08bfc1b0c8e4bcedb1d75ce
extra : amend_source : 6289aaff79b22956b72956734e4d99bdd3b7977d
2016-02-18 18:38:44 +08:00
Ting-Yu Lin
9410058023 Bug 1246918 - Handle PresShell gone after FlushLayout(). r=roc
After calling FlushLayout(), PresShell::Destroy() might be called and we
should consider PresShell and other resources will be no longer valid.

Before this patch, AccessibleCaretManager and AccessibleCaret(s) are
deallocated in PresShell::Destroy(). However FlushLayout() are all
invoked in AccessibleCaretManager, we need to keep manager alive to
clean up after PresShell::Destroy().

This patch makes AccessibleCaretManager live after PresShell::Destroy(),
and use IsTerminated() to check whether PreShell is vaild after each
FlushLayout() calls.

Note that event though AccessibleCaretEventHub will be unref in
PresShell::Destroy(), all the callers to AccessibleCaretEventHub's
public methods already add a ref to AccessibleCaretEventHub. So we don't
need to worry about AccessibleCaretEventHub and AccessibleCaretManager
die immediately after PresShell::Destroy().

MozReview-Commit-ID: DDpXZ7v3zyo

--HG--
extra : rebase_source : 280e2512fb9f28d933f5b8d65a9f303ac81c58e5
extra : source : 10e71da98b144fbf42aaa81a1056910a3766a6cb
2016-02-15 15:12:35 +08:00
Ting-Yu Lin
860487f7f6 Bug 1246918 - Fix carets missing after scrolling down in selection mode on Fennec. r=roc
Fennec enables sCaretsExtendedVisibility which uses
Appearance::NormalNotShown instead of Appearance::None to keep actionbar
shown during scrolling. This breaks selection mode update when the
positions of the carets are not changed after scrolling.

To fix this, we need to implement appearance recovering for selection
mode scrolling like we did for cursor mode in bug 1212732, and make
UpdateCaretsForSelectionMode() respects UpdateCaretsHint.

MozReview-Commit-ID: LkfUIGKHL0h

--HG--
extra : rebase_source : 0ef8d28ce55c3ddd29ea32ee6888ee7fe14c34ad
extra : source : bc3e37b63defca87d0de165fe167ef7f8a7db651
2016-02-11 16:22:57 +08:00
kearwood
d2f423667c Bug 1237689 - Enable Oculus hardware latency tester r=daoshengmu
- Generate and pass sequential frame indexes into the ovr_GetTrackingState call and the corresponding call to ovr_SubmitFrame

MozReview-Commit-ID: 5tJl5YJt7Eo

--HG--
extra : rebase_source : 5dbb35ea1451a9f378e28d81a8704b63b1b72b4d
2016-01-08 18:50:10 -08:00
Boris Chiou
f9b04f2758 Bug 1244049 - Part 3: Replace the type of nsCSSSelector::mPseudoType. r=dbaron
--HG--
extra : rebase_source : 4bb852ab13bd448da20f9af4a3f13c5704e3a007
2016-02-17 22:04:00 +01:00
Boris Chiou
e436478f26 Bug 1244049 - Part 2: Replace nsCSSPseudoElements::Type with CSSPseudoElementType. r=dbaron
Also, try to use forward declaraions for CSSPseudoElementType;

--HG--
extra : rebase_source : c00eb9753e8f618a33aa711538ac45c0132b353c
2016-02-17 21:37:00 +01:00
Boris Chiou
185a769719 Bug 1244049 - Part 1: Define scoped enum for CSSPseudoElement type. r=dbaron
--HG--
extra : rebase_source : e53dd269e47fa97eb259ebd9295d012eacbdb612
2016-02-16 23:07:00 +01:00
Jamie Nicol
1c46abe6c4 Bug 1247336 - De-dupe changes in ActiveLayerTracker before treating property as animated. r=roc
In ActiveLayerTracker check if the value of a property has actually
changed, rather than being set to its existing value, before treating
the property as animated. This will help avoid over-layerization of some
frames.
2016-02-12 14:38:50 +00:00
Martijn Wargers
842cd6d33f Bug 1160342 - Implement marquee using mutation observers, r=smaug 2016-02-17 18:47:14 +01:00
Peter Van der Beken
1900a0608e Bug 1020199 - Make sure APZ works with nested oop iframe. r=kats, r=dvander.
--HG--
extra : rebase_source : be158c15f328b19be4e4189c1b755841caabcb10
2016-01-08 20:17:39 +01:00
Ting-Yu Lin
19677da566 Bug 1248309 - Fix caret size not updated when only zoom level is changed. r=roc
On Fennec, it's possible that after automatically zooming an editable
input, the mImaginaryCaretRect for the caret remains the same. Only the
zoom level is changed. Therefore, the zoom level should also be
considered to determine whether the position is changed or not so that
the caret can get updated.

MozReview-Commit-ID: CrictS4S0Yl

--HG--
extra : rebase_source : f26f89cb72a9ae8a55104054121486a67e841513
2016-02-15 18:29:32 +08:00
Timothy Nikkel
43cf2abd48 Bug 1246443. Don't make nsLayoutUtils::MaybeCreateDisplayPort also set the displayport base anymore. r=botond
It's not obvious that it does this (unless you read the comment or the code), and we don't gain much by doing it.

Also we need to split it up for the next patch in this bug.
2016-02-12 16:58:34 -06:00
kearwood
b1d8c6f915 Bug 1247082 - Suppress rendering of nsBackdropFrame for VR content r=dholbert
- The VR specific render path in ContainerLayerComposite does not
  handle nsBackdropFrame correctly, resulting in a alternate frame
  strobing effect in the Oculus Headset.  As VR content is composed
  of a Canvas element that is scaled to the extents of the surface,
  the backdrop would otherwise not have an effect for VR content,
  which means we can simply suppress the backdrop.

MozReview-Commit-ID: 3bCTOApiH8E

--HG--
extra : rebase_source : 015e15dee2ac3235e1e571642d3988b66b97dfd1
2016-02-12 11:14:05 -08:00
Kartikaya Gupta
6de82d82fb Bug 1243589 - Use SingleTiledContentClient even for scrollable layers if the layer is smaller than a single tile. r=mattwoodrow
MozReview-Commit-ID: 6eYFmoOVL6b
2016-02-12 08:29:25 -05:00
Chris Peterson
ad0b562df7 Bug 1247533 - Annotate intentional switch fallthrough to suppress -Wimplicit-fallthrough warning in layout/style/. r=dbaron
layout/style/nsStyleTransformMatrix.cpp:642:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-02-10 23:16:29 -08:00
Hiroyuki Ikezoe
714b328cdf Bug 1228137 - Test that mouse events on the finished animation is surely fired on the animation element when the mouse events happen immediately after animation.finish() is called. r=birtles 2016-02-11 14:20:00 +01:00
Phil Ringnalda
9d0e08b626 Back out 3 changesets (bug 1216001) for Win8 reftest failures in 1193519-sideways-lr-3.html and 1193519-sideways-lr-4.html and intermittent OS X failures in font-display-2.html
CLOSED TREE

Backed out changeset dbadb8fe5803 (bug 1216001)
Backed out changeset a30593ebd58e (bug 1216001)
Backed out changeset c1646ffa71b4 (bug 1216001)
2016-02-11 20:43:41 -08:00
Mats Palmgren
109f95dbe7 Bug 1216001 part 3 - Cache the result of IsSelected() for the duration of painting. r=bz 2016-02-12 02:13:57 +01:00
Wes Kocher
5d6f82ee76 Backed out changeset 19c631cc41c8 (bug 1243589) for test_transformed_scrolling_repaints.html failures on OS X
--HG--
extra : commitid : 8PbwCNrV2to
2016-02-11 16:34:28 -08:00
Matt Woodrow
2f1cbec9a2 Bug 1224433 - Part 2: Clamp the invalidation rect to values that fit within nscoord. r=roc
--HG--
extra : rebase_source : 0aaede54d8622786cddaf8365e6bf091d6bff8f8
2016-02-12 11:35:17 +13:00
Thinker K.F. Li
c731d0ed0c Bug 1224433 - Part 1: Add reftest. r=roc
--HG--
extra : rebase_source : 1636c45e0f32ae22d4c38f90f886e7f1290a8d94
2016-02-12 11:35:03 +13:00
Kartikaya Gupta
9b986bd61e Bug 1243589 - Use SingleTiledContentClient even for scrollable layers if the layer is smaller than a single tile. r=mattwoodrow
MozReview-Commit-ID: LHIrrtFfRgm
2016-02-11 16:49:04 -05:00
Matt Woodrow
5562523a43 Bug 1216832 - Handle preserve-3d visible regions during display list building by always transforming from the preserve-3d root each time. r=roc 2016-02-12 00:18:55 +13:00
Bogdan Postelnicu
0afc7af5f4 Bug 1232635 - since presContext is always a valid pointer remove the useless null check that also confused Coverity. r=bz 2015-12-17 00:18:00 +01:00
Nicholas Nethercote
cdf3731d12 Bug 1246846 (part 4) - Avoid nsTHashtable::RawRemoveEntry() in FramePropertyTable. r=roc.
--HG--
extra : rebase_source : 6d32e956aa0b9bdd2d234ec0bbccf827c72b8dd0
2016-02-09 13:56:07 +11:00
Kartikaya Gupta
2970550b4e Bug 1245925 - Don't allow expiring the displayport on root scrollframes. r=tnikkel
MozReview-Commit-ID: 8LGsk9uKyL5

--HG--
extra : rebase_source : 9edf7c6a4ce795da670f1ad06c8f86f9f05e4850
2016-02-10 17:11:28 -05:00
Andrew Halberstadt
97c3a77bc1 Bug 1247054 - Fix |mach reftest| on Android, r=gbrown
There is an ImportError on Android, as well as a log related
regression from the structured log patch once that is fixed.

MozReview-Commit-ID: KxSEotr38qO

--HG--
extra : rebase_source : 15d8421aab813d9e0dbf6d00611f921aaa779a49
2016-02-09 16:19:44 -05:00
Kartikaya Gupta
7c935ef5ba Bug 1235899 - Don't allow frame reconstruction to clobber the APZ scroll offset. r=botond
MozReview-Commit-ID: HZMavMJNtmq
2016-02-10 16:31:20 -05:00
Ting-Yu Lin
612a133caa Bug 1246185 - Do not collapsed <details> when preference off. r=bz
To retain backward compatibility, <details> tags should not collapse its
children when dom.details_element.enabled = false.

--HG--
extra : rebase_source : 6b47e64672720ffecd23f670c31de1c7d92bee8c
2016-02-09 14:07:01 +08:00
Carsten "Tomcat" Book
7cf726ce07 Bug 1243583 - ensure transition events are dispatched to all the relevant subdocuments, r=dholbert 2016-02-10 14:21:26 +01:00
Carsten "Tomcat" Book
106a8ed3ab Bug 1244250 - r=mats 2016-02-10 14:17:05 +01:00
Eddy Bruel
001f5b604e Bug 1212333 - WorkerDebuggerManager should live on the main thread;r=khuey 2016-02-10 10:45:02 +01:00
Carsten "Tomcat" Book
40d9c0386c Backed out changeset a9e7c8584256 (bug 1232635) for test failures in reftest crashtest-e10s
--HG--
extra : rebase_source : fcdd12ca2cf0936513c1969e8863893c5c52f5ab
2016-02-10 10:11:03 +01:00
Bogdan Postelnicu
3a7965b651 Bug 1246892 - pass aCTF as a reference instead of value. r=roc
--HG--
extra : rebase_source : 40f6a3a7adf06de8d3fdbe39bebd8e024514822e
2016-02-09 12:00:59 +02:00
Bogdan Postelnicu
e0fa8e46e2 Bug 1232635 - since presContext is always a valid pointer remove the useless null check that also confused Coverity. r=bz 2015-12-17 00:18:00 +01:00
Trevor Saunders
8585d6f683 bug 1246772 - work around x87 floating point truncation issues in gecko r=dholbert
test_value_storage.html needs floating point numbers to round trip through css
parsing and serialization, but floating point isn't exact so we should be
careful what numbers we test.  It turns out the value 0.9 the test was using is
close to the border between 229 and 230 when converted to an 8 bit int, but 0.8
is safer so change to that since the test doesn't depend on the value.  Note
that this does not fix the issue that numbers don't always round trip, but only
wall papers over it by changing the test.
2016-02-10 00:10:56 -05:00
Jet Villegas
0c25cb3079 Merged changes 2016-02-09 17:05:59 -08:00
Jet Villegas
09b44a7efc Bug 974309: Fixes the IsEditable() logic for table cells. r=ehsan 2016-02-09 14:06:03 -08:00
Matt Woodrow
0488b4896d Bug 1243409 - Always recompute geometries for inactive layers since we can't easily tell if they will be identical. r=roc
--HG--
extra : rebase_source : 27640facb51895c3a0fcfc8506a6089b85b1027e
2016-02-09 16:05:20 +13:00
Robert O'Callahan
ffe62188d9 Bug 1194466. Use the table-outer frame's margin when requesting the margin for table element with getBoxQuads. r=mats
--HG--
extra : commitid : B0oDQPEJLRh
extra : rebase_source : 8ac8d10d9dae01b9c44b8b531c56d065e1a54d50
2016-02-02 22:47:15 +13:00
Dirk Schulze
d9d4e07104 Bug 1075457, part 2 - Implement circle() and ellipse() for the |clip-path| property. r=mstange, r=jwatt
--HG--
extra : rebase_source : b715d653a39e87524e75f38f1a10ca214b461131
2016-02-08 22:09:08 +00:00
Dirk Schulze
7d71b51c43 Bug 1075457, part 1 - Implement rendering for |clip-path:polygon()|. r=mstange, r=jwatt
--HG--
extra : rebase_source : 17ddbe04589e146c5e64497527b5a74b54337b8b
2016-02-08 22:08:09 +00:00
Andrew Halberstadt
cc33abe5c7 Bug 1034290 - Follow-up fix for reftest error message when application returns non-zero, r=chmanchester
MozReview-Commit-ID: JpHzDSuSQqH

--HG--
extra : rebase_source : 8424bdc1b8c9b5027837fd5ac8023f0f4873e08e
extra : amend_source : 62a8e7d3dfbfa3c03354859de33d86ca781cccea
2016-02-08 14:54:23 -05:00
Mats Palmgren
126a749fe4 Bug 1246101 - Restore some auto-completion for the align-/justify-* properties. r=dholbert 2016-02-08 17:35:01 +01:00
Mats Palmgren
b0439e98c3 Bug 1246405 - Declare mTextRun earlier to avoid alignment spill on 64-bit architectures. r=roc 2016-02-08 17:35:01 +01:00
Andrew Halberstadt
f94d7e71d8 Bug 1034290 - Use structured log output for test results in reftest, r=jmaher
Structured logs bring many benefits. We can stop parsing the logs for magic strings, we
can modify the format without breaking things, and we can stream results into systems like
ActiveData. The structured logs originate primarily in reftest.js. StructuredLog.jsm is
used to generate the JSON-based log stream. Finally OutputHandler in the python harness
reads structured output from stdout, and formats it into human readable form.

MozReview-Commit-ID: G3ZLkMRl6p7

--HG--
extra : commitid : J3ui9XYWR3Q
extra : rebase_source : 77ed0ba842cc8e557141fb3494212b06868c728a
extra : amend_source : 735d48225a2e627e0fe45fc11b50b6c49a885a4b
extra : source : d1779fe421c3c7cd8e3d191816776390dc104f37
2016-02-05 15:44:20 -05:00
Ting-Yu Lin
276d86f23b Bug 1246064 - Support long press to show AccessibleCaret on empty input for Fennec. r=roc
--HG--
extra : commitid : 54K1eLvKmSr
extra : rebase_source : 76a64e40ec15c6d110a461d5fb9d66d3ac86852e
2016-02-08 16:08:46 +08:00
Ting-Yu Lin
07b84af1aa Bug 1246477 - Fix carets not updated by scroll events in LongTapState. r=roc
This is a regression by "Bug 1121468 - Go to NoActionState after
receiving release on LongTapState."

When receiving a scroll event in LongTapState, i.e. apz starts, we
should call OnScrollStart() and move to the ScrollState.

--HG--
extra : commitid : GsQNnTtqhzh
extra : rebase_source : 0a6ad44a4bf97ed15b374094929df5409deeba41
2016-02-08 16:08:45 +08:00
Bogdan Postelnicu
77718e8be6 Bug 1246106 - pass aStyleBorder as reference to ComputeBorderOverflow. r=mats 2016-02-08 03:32:00 +01:00
Boris Chiou
8627ee5709 Bug 1174575 - Part 5: Support pseudo-element type in StyleAnimation. r=birtles
Add one more argument, nsCSSPseudoElement::Type, for
StyleAnimation::ComputeValue and StyleAnimation::ComputeValues
2016-02-09 05:04:00 +01:00
Ting-Yu Lin
d6a5df3abe Bug 1225752 - Localize the description of default summary. r=bz
--HG--
extra : commitid : 1fzJyvyuijQ
extra : rebase_source : ec39cfe4c4a147aaaa455071b9b70f008d5fbfe2
2016-02-04 01:48:00 +08:00
John Daggett
fe3c0df984 Bug 1244017 - disable system font cascade reftests. r=m_kato 2016-02-08 15:26:50 +09:00
John Daggett
535864fddf Bug 1188802 - only rebuild local webfont rules when needed. r=heycam 2016-02-08 10:11:39 +09:00
L. David Baron
4cc8e3dd91 Bug 1245075 patch 2 - Fix EffectSet::GetEffectSet(nsIFrame*) and EffectCompositor::GetAnimationElementAndPseudoForFrame to only return effects when the frame is the style frame for its content. r=birtles
This means that we won't associate animations with additional frames.
In this case, this fixes associating off-main-thread animations with a
table outer frame, when they should have been associated only with the
table frame.

Locally, the test fails without the patch (with opacity in the test
being 0.36 instead of the expected 0.6), and passes with the patch.
(Opacity 0.36 gives a color of rgb(163,163,255), whereas 0.6 gives
rgb(102,102,255).)

--HG--
extra : commitid : 7wtkIDLDHBF
2016-02-07 08:43:49 -08:00
L. David Baron
c774a187fd Bug 1245075 patch 1 - Remove assertion, since it can fire during frame destruction. r=dholbert
Without this patch, patch 2 will cause assertions since
nsFrame::DestroyFrom calls nsFrame::HasCSSAnimations (at a time when the
child frame has been destroyed), which calls into the code modified in
patch 2 to call GetStyleFrame.

--HG--
extra : commitid : EkhtcNIf7ye
2016-02-07 08:43:48 -08:00
Matt Woodrow
7cd754d8cf Bug 1229317 - Allow preserve-3d and opacity to be combined on the root element of a preserve-3d chain. r=roc 2016-02-07 23:51:11 +13:00
Phil Ringnalda
ec6b8aac53 Back out e751d638ab4b (bug 1229317) for reftest "Assertion failure: oldState < kReadMax" and crashes
CLOSED TREE
2016-02-05 22:42:55 -08:00
Matt Woodrow
8857b37db9 Bug 1229317 - Allow preserve-3d and opacity to be combined on the root element of a preserve-3d chain. r=roc 2016-02-06 17:57:34 +13:00
Thinker K.F. Li
94e1db456d Bug 1243282 - Wrap items having clips with a separator. r=mattwoodrow 2016-02-06 17:55:59 +13:00
Karl Dubost
371b14248e Bug 812899 part 3 - Make vertical 'auto' margins on absolutely positioned elements always center, even when the margins are negative. r=dbaron 2015-12-03 14:24:00 +09:00
Boris Zbarsky
6019ca23a6 Bug 812899 part 2. Change the centering code in nsImageDocument to only try vertically centering via auto margins when we're not overflowing in the vertical direction, because if we _are_ overflowing that should cut off part of the image per spec. r=khuey 2016-02-05 23:31:19 -05:00
Christoph Kerschbaumer
f2bea555bd Bug 1245681 - Fix addOverrideStyleSheet. r=bz
CLOSED TREE

--HG--
extra : commitid : LomXovfnO8d
extra : source : b71df90db19e917b0195c89e76593c8312d2ec68
2016-02-05 11:07:04 -08:00
Wes Kocher
83138fba54 Backed out 2 changesets (bug 1245681) for android mochitest-14 failures in test_css_chrome_load_access.html CLOSED TREE
Backed out changeset 82803bc92f37 (bug 1245681)
Backed out changeset b71df90db19e (bug 1245681)

--HG--
extra : commitid : 3yd1sKw3rn5
2016-02-05 15:16:36 -08:00
Kartikaya Gupta
c0f0798167 Bug 1104356 - Add a reftest. r=kip
--HG--
extra : commitid : Eldk2baWdMG
2016-02-05 17:09:37 -05:00
Kartikaya Gupta
b8b52c6f30 Bug 1104356 - When doing a smooth scroll on a non-APZ'd scrollframe, fall back to the main thread machinery. r=kip
--HG--
extra : commitid : K1IT8lsDmNl
2016-02-05 17:09:30 -05:00
Christoph Kerschbaumer
933878145c Bug 1245681 - Fix addOverrideStyleSheet. r=bz
--HG--
extra : rebase_source : 9f865f40a8085b816dafde6a15ac72fe98971d8a
2016-02-05 11:07:04 -08:00
Wes Kocher
ddcc30c564 Backed out changeset 4fa1296bd773 (bug 1104916) for win debug m(oth) permafails CLOSED TREE
--HG--
extra : commitid : HW3icAqLZUB
2016-02-05 11:42:55 -08:00
Phil Ringnalda
66e6da78e6 Back out d1779fe421c3 (bug 1034290) for UnicodeDecodeErrors in things run by the reftest harness
CLOSED TREE
2016-02-05 08:18:47 -08:00
Mike Taylor
e96c48b929 Bug 1245997. Remove -webkit-mask-mode alias. r=dholbert
This has not yet been implemented in WebKit, hence there shouldn't
be any legacy compat concerns.
2016-02-05 09:27:45 -06:00
Carsten "Tomcat" Book
940ea6bf9d Backed out changeset a6bc2efcdf26 (bug 1212333) for bustage 2016-02-05 16:09:28 +01:00