Commit Graph

8111 Commits

Author SHA1 Message Date
Cameron McCormack
c1b64d0113 Bug 1127198 - Part 4: Clear cached structs only after we have fully processed a restyle. r=dbaron 2015-02-18 09:28:53 +11:00
Cameron McCormack
67cb5be85e Bug 1127198 - Part 3: Crashtest. r=dbaron 2015-02-18 09:28:53 +11:00
Cameron McCormack
ec4fb5b8aa Bug 1125391 - Re-enable bug 931668 optimizations. r=dbaron 2015-02-18 09:28:53 +11:00
David Anderson
e2b0192273 Make sure XUL windows have a top-level APZC. (bug 1130645, r=roc) 2015-02-12 17:49:10 -08:00
Kartikaya Gupta
1f5d00564d Bug 1131840 - Replace the shouldForceDispatchToContent flag with a bitset enum. r=roc,botond 2015-02-16 21:30:02 -05:00
L. David Baron
3b82e74b9d Bug 960465 patch 22 - Remove implementation of nsRestyleHint_ChangeAnimationPhase. r=birtles 2015-02-17 11:15:06 +13:00
L. David Baron
0307211fae Bug 960465 patch 21 - Replace one use of nsRestyleHint_ChangeAnimationPhase with nsRestyleHint_AllHintsWithAnimations so that we can remove the rest. r=birtles 2015-02-17 11:15:06 +13:00
L. David Baron
cbf5e33e73 Bug 960465 patch 20 - Allow pseudo-elements for style attribute replacement in RuleNodeWithReplacement. r=birtles
I confirmed that we're actually using this codepath by manually testing
<input type=color>:  it works with the patch, but if I comment out the
call to nsHTMLCSSStyleSheet::PseudoElementRulesMatching from
nsStyleSet::RuleNodeWithReplacement, then the color swatch breaks, which
proves that we're depending on the code.

I think I included this in the queue because it is needed for patch 22,
although I've forgotten the full reasoning.
2015-02-17 11:15:05 +13:00
L. David Baron
e7d3fa23a5 Bug 960465 patch 18 - Remove aElementOrPseudoElement parameter to ReparentStyleContext (added in bug 1057129). r=birtles 2015-02-17 11:15:05 +13:00
L. David Baron
d5bb664bcf Bug 960465 patch 17 - Remove separate animation and non-animation phases of restyling. r=birtles
Note that this means that when we start transitions, we post restyles
that are processed during the current restyling operation, rather than
in a later phase.  This depends on patch 11, which makes the transition
manager skip style changes that it posts while starting transitions, to
ensure that this doesn't lead to an infinite loop.  This also depends on
patch 16, which only consumes restyle data for the primary frame, to
ensure that the animation restyles posted are processed properly.  It
also depends on patch 14, which makes us retain data on finished
transitions, to avoid triggering extra transitions on descendants when
both an ancestor and a descendant transition an inherited property, and
the descendant does so faster.

This fixes a known failure in layout/style/test/test_animations.html and
test_animations_omta.html (as visible in the patch).  I believe this is
because this patch changes us to compute keyframe values for animations
on top of a style context *with* animation data rather than one without,
which means what we're computing them on top of changes each time.  (The
purpose of patch 3 was to avoid this in the case where avoiding it
matters, i.e., implicit 0% and 100% keyframes.)
2015-02-17 11:15:05 +13:00
L. David Baron
a64d974c3e Bug 960465 patch 16 - Only consume restyle data for the primary frame. r=birtles
This is needed for patch 17, which removes restyling phases, so that
when the transition manager posts a restyle to undo the covering done by
the cover rule, that restyle doesn't get consumed by an inner frame.
2015-02-17 11:15:04 +13:00
L. David Baron
a184423c03 Bug 960465 patch 15 - Switch debugging user of IsProcessingAnimationOnlyStyleUpdate() to InAnimationOnlyStyleUpdate() so that I can remove the former. r=birtles 2015-02-17 11:15:04 +13:00
L. David Baron
2907f101d5 Bug 960465 patch 9 - Move the addition of the cover rule into nsTransitionManager::StyleContextChanged so that later patches can make it other than just addition of a rule. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
07a4a43e7a Bug 960465 patch 7 - Use SetInAnimationOnlyStyleUpdate for ProcessPendingRestyles runs that are only updating animation data. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
f96bade422 Bug 960465 patch 6 - Add the new mechanism for avoiding starting spurious transitions as a result of animations: flush animation styles only before doing other restyle processing. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
b99c33a3b5 Bug 960465 patch 5 - Make SMIL animations participate in the animation-only style flush. r=birtles
This is needed to prevent these reftests from failing:
  layout/reftests/svg/smil/smil-transitions-interaction-1a.svg
  layout/reftests/svg/smil/smil-transitions-interaction-1b.svg
  layout/reftests/svg/smil/smil-transitions-interaction-2a.svg
  layout/reftests/svg/smil/smil-transitions-interaction-2b.svg
  layout/reftests/svg/smil/smil-transitions-interaction-4a.svg
  layout/reftests/svg/smil/smil-transitions-interaction-4b.svg
The mIsCSS path fixes the a tests, and the !mIsCSS path fixes the b tests.

This is because this patch series changes the way in which transitions
interact with other types of animations to depend on those animations
being flushed in the animation-only style flush.  (The relevant call is
added in patch 6, though we don't really depend on it until patch 17.)
2015-02-17 11:15:02 +13:00
L. David Baron
3545426b12 Bug 960465 patch 4 - Track whether there are any pending non-animation restyles. r=birtles
This depends on bug 1087536 patch 3, which posts animation restyles
using the eRestyle_CSSTransitions and eRestyle_CSSAnimations hints.

This is used by patch 6.
2015-02-17 11:15:02 +13:00
L. David Baron
fe815e18a8 Bug 960465 patch 2 - Add method to return a modified version of a style context, with all or part of the animation data removed. r=birtles
This is used in patch 3.
2015-02-17 11:15:01 +13:00
Carsten "Tomcat" Book
92151b28e6 merge mozilla-inbound to mozilla-central a=merge 2015-02-16 15:59:56 +01:00
Ting-Yu Lin
4f4b4eec1a Bug 1096185 - Part 3 - Fix function redefinition in test_selectioncarets.py. r=automatedtester 2015-02-11 23:33:00 +01:00
Ting-Yu Lin
3ea3b61c67 Bug 1096185 - Part 2 - Change hit test in tilt mode. r=automatedtester
Due to the caret images changed, we need to change this test
accordingly.

It's sufficient to perform hit tests only targeting the left edge of the
left tilted caret and the right edge of the right tilted caret. It also
reduces the running time of the tests.

It's sad that we cannot retrieve the CSS style of the carets from ua.css
directly. We need to copy them to the test file by hand.
2015-02-12 01:05:00 +01:00
Morris Tseng
37830d7edd Bug 1120750 - Part 5: Fix non-unified build bustage. 2015-02-12 21:05:50 -05:00
L. David Baron
494ed67397 Back out changeset 6849669e696e (bug 1130645) for Android robocop failures.
The first failure in rc1 was:
TEST-UNEXPECTED-FAIL | testAxisLocking | PaintExpecter - blockUtilClear timeout
and the first failure in rc2 (API9) or rc3 (API11) was:
TEST-UNEXPECTED-FAIL | testPanCorrectness | PaintExpecter - blockUtilClear timeout
2015-02-16 18:22:56 +13:00
L. David Baron
49eac97168 Bug 992077 patch 5 - Remove implementation of OverflowChangedTracker::CHILDREN_AND_PARENT_CHANGED. r=mats
This simplifies the API of the OverflowChangedTracker.
2015-02-16 16:34:29 +13:00
L. David Baron
bc32b5ef7c Bug 992077 patch 3 - Stop using OverflowChangedTracker::CHILDREN_AND_PARENT_CHANGED for the UpdateOverflow and related hints. r=mats
This makes UpdateOverflow hint handling (which definitely did previously
need CHILDREN_AND_PARENT_CHANGED) and handling of related hints (which I
believe never actually needed CHILDREN_AND_PARENT_CHANGED) use the
CHILDREN_CHANGED hint in the overflow changed tracker, since use of
CHILDREN_AND_PARENT_CHANGED is no longer needed following the
introduction of the UpdateParentOverflow hint in patch 2.
2015-02-16 16:34:29 +13:00
L. David Baron
eccc9e3c56 Bug 992077 patch 1 - Add nsChangeHint_UpdateParentOverflow hint so that we can reduce unnecessary UpdateOverflow calls for top/right/bottom/left changes, and reduce unnecessary propagation to the parent for UpdateOverflow hints for changes that actually affect the element's overflow. r=mats
This cleans up after bug 984226, which introduced
CHILDREN_AND_PARENT_CHANGED to deal with the facts that:

 (1) most properties whose changes yield UpdateOverflow style hints
     imply that an element's overflow area may have changed, and
     propagation to ancestors can stop without updating the element's
     parent if the element's own overflow area didn't change.

 (2) a few properties whose changes yield UpdateOverflow style hints
     actually don't change the overflow area of the element on which the
     property changed, but instead change that element's overflow area
     on the element's parent.

Having two separate hints means that we don't have to do the extra work
of always updating the parent's overflow area (when the child's overflow
area didn't actually change) for the properties in category (1), and we
don't have to do extra work of updating the element's own overflow area
for properties in category (2).
2015-02-16 16:34:29 +13:00
David Anderson
e13516ed21 Make sure XUL windows have a top-level APZC. (bug 1130645, r=roc) 2015-02-12 17:49:10 -08:00
Timothy Nikkel
fb9bac3e2d Bug 1118051. Report layer event regions items as having empty bounds so they don't expand the visible region of layers. r=roc
When choosing a painted layer for the event region item we must report the bounds of the hit regions as the bounds so that we don't fall through to the bottom most painted layer.
2015-02-11 17:06:47 -06:00
Nicholas Nethercote
74cc61fdfd Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : 526d96ab65e4d7d71197b90d086d19fbdd79b7b5
2015-02-02 14:48:58 -08:00
Morris Tseng
df7cad2964 Bug 1120750 - Part 3: Dispatch taponcaret using selectionstatechanged event. r=roc 2015-01-21 23:42:00 -05:00
Morris Tseng
882fe053af Bug 1120750 - Part 1: Move GetSelectionBoundingRect to nsContentUtils. r=roc 2015-02-04 21:58:00 -05:00
Ryan VanderMeulen
a502827c68 Backed out 12 changesets (bug 1107336) for Marionette harness bustage on a CLOSED TREE.
Backed out changeset 5075f0063d70 (bug 1107336)
Backed out changeset 9ef91d4fcf3b (bug 1107336)
Backed out changeset 995911340bf7 (bug 1107336)
Backed out changeset 4817d3cd3810 (bug 1107336)
Backed out changeset dad798a5e595 (bug 1107336)
Backed out changeset 4f60c437140c (bug 1107336)
Backed out changeset f92a5c6256fa (bug 1107336)
Backed out changeset 399a436c6e5f (bug 1107336)
Backed out changeset 0d04801bb2f0 (bug 1107336)
Backed out changeset 60d9d4d20971 (bug 1107336)
Backed out changeset 9c4b171c23be (bug 1107336)
Backed out changeset a07bb95eb209 (bug 1107336)

--HG--
rename : testing/marionette/driver/marionette_driver/application_cache.py => testing/marionette/client/marionette/application_cache.py
rename : testing/marionette/driver/marionette_driver/by.py => testing/marionette/client/marionette/by.py
rename : testing/marionette/driver/marionette_driver/date_time_value.py => testing/marionette/client/marionette/date_time_value.py
rename : testing/marionette/driver/marionette_driver/decorators.py => testing/marionette/client/marionette/decorators.py
rename : testing/marionette/driver/marionette_driver/errors.py => testing/marionette/client/marionette/errors.py
rename : testing/marionette/driver/marionette_driver/expected.py => testing/marionette/client/marionette/expected.py
rename : testing/marionette/driver/marionette_driver/geckoinstance.py => testing/marionette/client/marionette/geckoinstance.py
rename : testing/marionette/driver/marionette_driver/gestures.py => testing/marionette/client/marionette/gestures.py
rename : testing/marionette/driver/marionette_driver/keys.py => testing/marionette/client/marionette/keys.py
rename : testing/marionette/driver/marionette_driver/marionette.py => testing/marionette/client/marionette/marionette.py
rename : testing/marionette/driver/marionette_driver/selection.py => testing/marionette/client/marionette/selection.py
rename : testing/marionette/driver/marionette_driver/wait.py => testing/marionette/client/marionette/wait.py
2015-02-11 12:15:22 -05:00
David Burns
990a203501 Bug 1107336: selection tests imports for marionette; r=jgriffin
--HG--
extra : rebase_source : b8d709390daaf3027e0ba6a933a915110cf299ca
extra : source : 5a2e085824ae4e61687730c89575c259fdaa9468
2015-01-09 21:42:06 +00:00
David Burns
1c4a656160 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
--HG--
extra : rebase_source : e1b821760481477805968de7f6910fca949f4e0c
extra : source : d1847f46d2934a8e73aa71cc9c463b04dd3c1be9
2014-12-09 20:21:32 +00:00
Carsten "Tomcat" Book
719abf1b85 Merge mozilla-central to mozilla-inbound 2015-02-11 15:00:07 +01:00
Carsten "Tomcat" Book
34b660c646 merge mozilla-inbound to mozilla-central a=merge 2015-02-11 14:58:16 +01:00
Jonathan Kew
ab7eab7ad8 Bug 1117210 - Snap text baselines to device pixels in vertical writing modes. r=smontagu 2015-02-11 10:59:06 +00:00
Carsten "Tomcat" Book
cfb231c647 Backed out changeset df2290db92d0 (bug 1117210) for breaking m5 tests on a CLOSED TREE 2015-02-11 11:28:19 +01:00
Simon Montagu
ccbc04d19a Bug 1131013: when setting the position of inline frames in vertical writing modes with right-to-left direction, subtract the inline start from the container height to get the correct vertical position. r=jfkthame 2015-02-11 01:43:03 -08:00
Jeremy Chen
0ae4728f5a Bug 1130951 - Part2: v2 Add test case for selection carets' tilt handling. r=automatedtester 2015-02-10 22:03:00 +01:00
Kartikaya Gupta
e300c8fc50 Bug 1125422 - Populate the ContainerLayer flag to force events to be dispatched to content. r=roc 2015-02-10 16:28:07 -05:00
Kartikaya Gupta
49d9d25735 Bug 1125422 - Fold touch and scroll listener flags into a single apz-aware flag for better code reuse. r=roc 2015-02-10 16:28:07 -05:00
Jeremy Chen
5c06ff40ff Bug 1130951 - Part1: v2 a little refactoring for test_selectioncarets.py. r=Automatedtester 2015-02-10 00:46:00 +01:00
Jonathan Kew
88bb078a85 Bug 1117210 - Snap text baselines to device pixels in vertical writing modes. r=smontagu 2015-02-11 08:44:34 +00:00
Morris Tseng
d72fe78dd2 Bug 1130256 - Prevent unwanted scrolling event. r=roc 2015-02-05 21:13:00 +01:00
David Anderson
78dfafe577 Disable layers flattening if APZ is enabled. (bug 1131389, r=mattwoodrow)
--HG--
extra : rebase_source : 8c023aeb48688fdff4f6496d1778c09095c83630
2015-02-10 20:54:18 -08:00
Morris Tseng
c7e5afc377 Bug 1119126 - Send updateposition after reflow when selection is collapsed. r=roc 2015-02-02 22:10:00 -05:00
Kaustabh Datta Choudhury
ca6b7c2deb Bug 1056851 - [layout] Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher
--HG--
extra : rebase_source : a4fdccae34cdbb27d9e1f03f2a758f26651abb1b
2015-02-06 11:50:00 +01:00
Frédéric Wang
9373d64b94 Bug 1110056 - Merge nsMathMLmphantomFrame into nsMathMLmrowFrame. r=jkitch
--HG--
extra : rebase_source : aafda35ac6c7b647b18259cbaca09161b8aac58b
2015-02-09 11:19:00 +01:00
Seth Fowler
2ee993bb0c Bug 1128769 (Part 6) - Remove imgIContainer::IsDecoded and all remaining callers. r=tn 2015-02-09 23:27:40 -08:00
Seth Fowler
2442d5dfa6 Bug 1128769 (Part 3) - Record the last draw result when drawing CSS backgrounds and use it to decide whether to sync decode. r=tn 2015-02-09 23:27:39 -08:00
Seth Fowler
34a6c33b2a Bug 1128769 (Part 2) - Check if we invalidated for a sync decode and never painted before invalidating for sync decoding again. r=tn 2015-02-09 23:27:39 -08:00
Seth Fowler
dcf10374b4 Bug 1128769 (Part 1) - Propagate the imgIContainer::Draw result through the nsLayoutUtils::PaintBackground* functions. r=tn 2015-02-09 23:27:39 -08:00
Markus Stange
6dc203e0bf Bug 1130892 - Allow vibrancy in popups from non-chrome prescontexts. r=roc 2015-02-09 13:24:51 -05:00
Nicholas Nethercote
6ee3666899 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Carsten "Tomcat" Book
065c45db61 Backed out changeset a372a90a9475 (bug 1119126) for gaia-js-integration-8 failures 2015-02-09 15:33:24 +01:00
Morris Tseng
c84234b27e Bug 1119126 - Send updateposition after reflow when selection is collapsed. r=roc
--HG--
extra : rebase_source : d66da8b00f033b2fcbdbb469dd6d47bf23a65c48
2015-02-02 22:10:00 +01:00
Nicholas Nethercote
44179aabe3 Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures.
--HG--
extra : rebase_source : eb30be83c3143c6c203585a80a18f180025efaba
2015-02-10 14:39:49 -08:00
Andrew McCreight
8413cc973c Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Seth Fowler
c5b0027f36 Bug 1125490 (Part 2) - Use an enumeration instead of a boolean to request discarding in nsIImageLoadingContent. r=tn 2015-02-06 02:51:12 -08:00
Seth Fowler
2ee086eb29 Bug 1125490 (Part 1) - Make sure we request discarding for images in PresShell::Destroy. r=tn 2015-02-06 02:51:12 -08:00
Timothy Nikkel
4bdaf32a54 Backout 653ead886844 (bug 1118051) for causing bug 1130067. 2015-02-05 15:37:31 -06:00
Nicholas Nethercote
3629781b69 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Kartikaya Gupta
f865e48000 Bug 1127773 - Use the entire scrollable overflow rect so that scrolledframes build event regions more correctly. r=tn
(Patch dictated by roc)
2015-02-05 08:25:49 -05:00
Maksim Lebedev
e41da3e1be Bug 1129397 - Allocate function PresShell::DispatchEventToDOM. r=smaug 2015-02-04 05:19:00 +01:00
Jeremy Chen
fb56ad0713 Bug 1122805 - v3 Update carets' positions based on coordinates of the root frame. r=roc 2015-02-05 01:36:00 +01:00
Timothy Nikkel
c61e598187 Bug 1118051. Report layer event regions items as having empty bounds so they don't expand the visible region of layers. r=roc 2015-02-04 23:44:33 -06:00
Xidorn Quan
c298104ed4 Bug 748198 - Exclude ESC and modifier keys as valid user input for popup/fullscreen/pointer lock. r=smaug
--HG--
extra : source : e7202be179db730f39ec4fed83f421301fb54114
2015-02-05 13:25:04 +11:00
Seth Fowler
c8568ec73a Bug 1128356 - Add template functions for common frame property destructors. r=dbaron 2015-02-04 15:22:27 -08:00
Nicholas Nethercote
c326200932 Bug 1050035 (part 4) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : eeba14d732077ef2e412f4caca852de6b6b85f55
2015-02-02 14:48:58 -08:00
Markus Stange
c17a9f3bb9 Bug 1045213 - Add nsITheme::ThemeGeometryTypeForWidget. r=roc 2015-02-04 17:25:18 -05:00
Markus Stange
22c821bf28 Bug 1045213 - Use vibrancy effect for context menus. r=smichaud 2015-02-04 17:25:18 -05:00
Seth Fowler
7d2a7a5455 Bug 1128225 (Part 3) - Add infrastructure for tracking draw results in geometry items. r=tn 2015-02-04 13:50:56 -08:00
Seth Fowler
195d4efb3b Bug 1128225 (Part 2) - Propagate the imgIContainer::Draw result through the nsLayoutUtils::Draw*Image functions. r=tn 2015-02-04 13:50:56 -08:00
David Zbarsky
32c35eeb2a Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Carsten "Tomcat" Book
879891b13a Merge mozilla-central to b2g-inbound 2015-02-04 15:09:23 +01:00
Jeremy Chen
5b3e2ce70a Bug 1127661 - Disable long tap event from APZ while dragging the touch caret. r=roc 2015-02-03 02:41:00 +01:00
Mats Palmgren
c3ceff3238 Bug 1123067 - part 2, tests. 2015-02-03 23:54:32 +00:00
David Anderson
c7d9088574 Remove apz.subframe.enabled and assume it is always true. (bug 1128761, r=kats) 2015-02-03 15:02:04 -08:00
David Anderson
d4b93595b2 Make debugging whole-layer invalidation slightly easier. (bug 1128752, r=mattwoodrow) 2015-02-03 14:18:44 -08:00
Kartikaya Gupta
3ad0d8f480 Bug 1126876 - Prevent subdocuments inside a pointer-events:none frame from building event regions. r=roc,tn 2015-02-03 10:52:51 -05:00
Carsten "Tomcat" Book
a29e44aa68 Backed out changeset c80e36def0ad (bug 1128356) for bustage on a CLOSED TREE 2015-02-03 09:58:14 +01:00
Seth Fowler
2507198f4b Bug 1128356 - Add template functions for common frame property destructors. r=dbaron 2015-02-03 00:24:13 -08:00
Brian Birtles
b8213da1bd Bug 1123196 part 2 - Don't resolve pending animations for nested calls to PaintRoot; r=mattwoodrow
We resolve pending animations when painting has finished in
nsDisplayList::PaintRoot. However, in the process we can trigger nested calls to
PaintFrame (e.g. due to use of -moz-element). In that case, we shouldn't resolve
pending animations until we complete the widget transaction.

This patch adds a check that we're in a widget transaction before we resolve
pending animations.
2015-02-03 14:08:37 +09:00
Brian Birtles
aee42aa691 Bug 1123196 part 1 - While player is waiting to start, return its pending start time; r=jwatt
After starting layer animations we set the same start time on content
animations but we don't apply it until the next tick (see bug 1112480 for
background). However, in some circumstances, we can end up creating layer
animations again within the same refresh driver tick. In this case, we should
initialize the animations with the same start time as we previously used.

This patch exposes the pending start time set on content animations so that,
if set, we can use it when building layer animations.
2015-02-03 14:08:37 +09:00
Wes Kocher
c558648fb7 Backed out 2 changesets (bug 1123067) for mochitest-1 bustage on a CLOSED TREE
Backed out changeset d35d83e9c9f2 (bug 1123067)
Backed out changeset ea4ea5299409 (bug 1123067)
2015-02-02 17:32:28 -08:00
Mats Palmgren
a945bab440 Bug 1123067 - part 2, tests. 2015-02-02 22:34:17 +00:00
Markus Stange
1c1f0a8732 Bug 1088605 - Check for root chrome documents instead of just root documents, since e10s content documents are root. r=roc 2015-02-02 15:11:15 -05:00
Markus Stange
3b24256b18 Bug 1088605 - Don't create nsDisplayClearBackground in subdocuments. r=roc 2015-02-02 15:10:53 -05:00
Paul Rouget
5acf19eeae Bug 1118169 - Support -moz-window-dragging:drag in HTML. r=mstange r=bz 2015-02-02 15:10:51 -05:00
Timothy Nikkel
9aae31ea66 Bug 1107843. When computing the transform matrix for a preserve-3d child just include the final translation right away, instead of doing two translations that add and subtract to increase the accuracy. r=mattwoodrow 2015-02-01 17:12:14 -06:00
Kartikaya Gupta
526a8c3e59 Bug 950934 - Enable APZ in the B2G root process. r=botond,smaug 2015-01-12 18:13:18 -05:00
Mike Hommey
824818ee98 Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Phil Ringnalda
f55829d7eb Back out 5167196c4b98 (bug 1125040) for not compiling on Linux
CLOSED TREE
2015-02-01 15:27:14 -08:00
David Zbarsky
058ba6807f Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-01 17:27:41 -05:00
David Zbarsky
1330fc1496 Bug 1125040: Use LayoutDeviceIntPoint for nsLayoutUtils::GetEventCoordinatesRelativeTo and Touch::mRefPoint r=botond 2015-02-01 17:27:31 -05:00
Kartikaya Gupta
cdfc8917b3 Bug 1124452 - Make it work without containerless-root, too. r=tn
--HG--
extra : rebase_source : 487e678ef5fc1592326a72f279e7e7f9f32a3a71
2015-01-28 13:28:28 -05:00
JerryShih
b5693d01d9 Bug 1125030 - Handle VsyncChild shutdown in ActorDestroy(). r=bent 2015-01-29 22:19:00 +01:00
Peter Chang
0315667a8a Bug 1123179 - Bypass touchcaret visibility checking inside scrollable frame when touchcaret drag state is active, r=roc
--HG--
extra : rebase_source : 5370db85347a4ef93d6403e62cf385dc16a23b97
2015-01-28 01:32:00 +01:00
Mason Chang
4d5545036c Bug 1125999 Part 2: Compress vsync notifications in the parent process refresh driver. r=kats 2015-01-29 17:41:03 -08:00
Jim Mathies
2f05ae72b2 Bug 1095754 - Rather than apply geometry updates to plugins in the content process, collect updates and stash them in the shadow layer forwarder so that on the next composite, they update with the remote layer tree. r=roc 2015-01-29 13:41:54 -06:00
Carsten "Tomcat" Book
0ab3496e2a Merge mozilla-central to mozilla-inbound 2015-01-29 16:17:28 +01:00
Jonathan Watt
72cc34a401 Bug 1127138 - Remove the declarations of a couple of dead FrameLayerBuilder methods. r=mattwoodrow 2015-01-23 09:17:14 +00:00
Wes Kocher
c9827847be Merge m-c to b2g-inbound a=merge 2015-01-28 18:43:47 -08:00
Kartikaya Gupta
61454ac23d Bug 1116588 - Don't optimize away opacity:0 items if we're building event regions, unless the frame also has pointer-events:none. r=tn 2015-01-28 17:42:23 -05:00
Jeremy Chen
6660d30c24 Bug 1120358 - Part 1: Handle scroll position change that is not triggered by APZ. r=roc 2015-01-15 00:42:00 -05:00
Kartikaya Gupta
a71d3b1b70 Back out bug 1116588 for introducing the regression in bug 1126427. r=me 2015-01-28 08:58:47 -05:00
Carsten "Tomcat" Book
713239c2fa merge fx-team to mozilla-central a=merge 2015-01-28 14:24:09 +01:00
Masayuki Nakano
c2b3803f80 Bug 917322 part.16 Rename COMPOSITION_ATTR_* in EventUtils.js with new constants of nsITextInputProcessor r=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
9569996b4b Bug 917322 part.10 Remove unnecessary synthesizeComposition(compositionstart) from all tests r=smaug 2015-01-28 15:27:32 +09:00
Nicholas Nethercote
70b1eacc9e Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj.
It feels safer to use a function with a new name, rather than just changing the
behaviour of the existing function.

For most of these cases the PL_DHashTableLookup() result was checked with
PL_DHASH_ENTRY_IS_{FREE,BUSY} so the conversion was easy. A few of them
preceded that check with a useless null check, but the intent of these was
still easy to determine.

I'll do the trickier ones in subsequent patches.

--HG--
extra : rebase_source : ab37a7a30be563861ded8631771181aacf054fd4
2015-01-22 21:06:55 -08:00
Ehsan Akhgari
87b3431373 Bug 989012 - Part 2: Don't get stuck when seeing an image without a src or alt attribute; r=roc
We do not want to traverse inside native anonymous elements, but we
should still be able to skip over generated content, to avoid getting
stuck on such images.
2015-01-27 23:11:29 -05:00
Ehsan Akhgari
8746c1322e Bug 989012 - Part 1: Stop after passing over a non-selectable frame if one is found during the frame traversal; r=roc
The caret movement code already handles unselectable text frames if we
happen to land in the middle of one in nsTextFrame::PeekOffsetCharacter/Word.
However, when performing frame traversal to find the next frame to jump
to, we don't remember if we skipped over an unselectable frame, which causes
us to jump one offset too much when the caret is on the boundary of
selectable and unselectable content.  The test cases demonstrate the
scenario.  Note that an <img alt=foo> is implemented by adding a
generated content to the inline frame representing it, so as far as
the caret movement code is concerned, both test cases are treated similarly.

Note that we need to do this only when moving the selection, and not
when extending it.  We are adding an aExtend argument to
nsPeekOffsetStruct's constructor in order to be able to special case
that.
2015-01-27 23:11:26 -05:00
David Anderson
2ec2817593 Don't snap displayports to tile boundaries if we're not tiling. (bug 1126045 part 2, r=kats)
--HG--
extra : rebase_source : d42768d98541b26a640fdb8c44b87fcce3f61ac8
2015-01-27 16:04:49 -08:00
Ehsan Akhgari
b0b88d5c7e Backed out 2 changesets (bug 989012) because of test failure on Linux32 opt mochitest-a11y on a CLOSED TREE
Backed out changeset 9698f6f3f72e (bug 989012)
Backed out changeset 22fb05349a10 (bug 989012)
2015-01-27 16:40:30 -05:00
Ehsan Akhgari
d6a4111b08 Bug 989012 - Part 2: Don't get stuck when seeing an image without a src or alt attribute; r=roc
We do not want to traverse inside native anonymous elements, but we
should still be able to skip over generated content, to avoid getting
stuck on such images.
2015-01-27 15:35:48 -05:00
Ehsan Akhgari
57ce560b0f Bug 989012 - Part 1: Stop after passing over a non-selectable frame if one is found during the frame traversal; r=roc
The caret movement code already handles unselectable text frames if we
happen to land in the middle of one in nsTextFrame::PeekOffsetCharacter/Word.
However, when performing frame traversal to find the next frame to jump
to, we don't remember if we skipped over an unselectable frame, which causes
us to jump one offset too much when the caret is on the boundary of
selectable and unselectable content.  The test cases demonstrate the
scenario.  Note that an <img alt=foo> is implemented by adding a
generated content to the inline frame representing it, so as far as
the caret movement code is concerned, both test cases are treated similarly.

Note that we need to do this only when moving the selection, and not
when extending it.  We are adding an aExtend argument to
nsPeekOffsetStruct's constructor in order to be able to special case
that.
2015-01-27 15:35:32 -05:00
dominique vincent
b4341a5a5e Bug 663803 - Add hitCluster flag to detect touch in cluster links area r=smaug,kats 2014-11-24 15:33:06 +01:00
Kartikaya Gupta
da3af30045 Bug 1116588 - Remove an optimization codepath that prevents building event-regions correctly. r=tn 2015-01-26 09:46:33 -05:00
Carsten "Tomcat" Book
e6ce6557f2 merge fx-team to mozilla-central a=merge 2015-01-26 14:24:08 +01:00
Peter Chang
d89db8b324 Bug 1121335 - Add the testing of selectioncarets drag with multiple selection ranges, r=roc 2015-01-25 19:36:00 +01:00
Peter Chang
6215758845 Bug 1121335 - Choose the right selection range for drag mode, r=roc 2015-01-23 06:09:00 +01:00
Jim Mathies
27c4ae7269 Bug 1077085 - Insure puppet widgets don't skip sending resize notifications to the view manager when the user navigates through history items. r=tn 2015-01-25 05:16:59 -06:00
Timothy Nikkel
6c3cb83d4a Bug 1120431. Ensure that the draw region of a painted layer always includes the visible region, even if simplication of the region might try to change that. r=matt.woodrow
Sometimes, in very specific cases,  the visible region gets simplified to one rect and is thus much bigger than the draw region. This becomes a problem if we decide to pull an opaque background color from a lower layer so that we are opaque. In which case we draw the background color over the whole visible region. But we use the draw region to determine if we can place items below this layer, so that background color could cover them incorrectly.
2015-01-25 17:28:51 -06:00
Masatoshi Kimura
ca6988b0d9 Bug 1111290 - Part 2: Non-mechanical changes. r=waldo 2015-01-26 07:22:08 +09:00
Masatoshi Kimura
2490dcfe04 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Carsten "Tomcat" Book
9ab3148719 Backed out changeset bbd77af91d82 (bug 1125490) for reftests failures on a CLOSED TREE 2015-01-27 11:16:28 +01:00
Carsten "Tomcat" Book
4b5cf31784 Backed out changeset b44e10f83623 (bug 1125490) 2015-01-27 11:15:04 +01:00
Seth Fowler
e965810aaa Bug 1125490 (Part 2) - Use an enumeration instead of a boolean to request discarding in nsIImageLoadingContent. r=tn 2015-01-26 22:53:21 -08:00
Seth Fowler
8179aea0b5 Bug 1125490 (Part 1) - Make sure we request discarding for images in PresShell::Destroy. r=tn 2015-01-26 22:53:21 -08:00
Markus Stange
7e74b73468 Bug 1104036 - Make -moz-window-dragging work in rectilinear 2d transforms. r=roc 2015-01-23 13:07:51 -05:00
Ryan VanderMeulen
39400dced0 Merge fx-team to m-c. a=merge 2015-01-23 12:20:52 -05:00
Ehsan Akhgari
7615233029 Bug 1109968 - Make all links in editable regions unfocusable; r=roc
The content inside an editable region is either editable itself, or
is inside a contenteditable="false" subtree.  In the first case,
it should not be focusable since it is editable.  In the second
case, it should not be focusable since the entire non-editable
region is treated as a special single entity for the purposes of
selection and caret movement, and having something focusable in
the middle of such a subtree breaks that model.
2015-01-23 08:49:28 -05:00
Carsten "Tomcat" Book
eded800b4f Backed out changeset 2b79bd646942 (bug 1109968) for b2g ics m9 test failures 2015-01-23 11:33:31 +01:00
Ehsan Akhgari
ad6e9a36cc Bug 1109968 - Make all links in editable regions unfocusable; r=roc
The content inside an editable region is either editable itself, or
is inside a contenteditable="false" subtree.  In the first case,
it should not be focusable since it is editable.  In the second
case, it should not be focusable since the entire non-editable
region is treated as a special single entity for the purposes of
selection and caret movement, and having something focusable in
the middle of such a subtree breaks that model.
2015-01-23 00:55:12 -05:00
Cameron McCormack
9052a02f04 Bug 1092363 - Disable bug 931668 optimizations for the time being. r=dbaron 2015-01-22 13:25:08 +11:00
Tom Tromey
e46c893814 Bug 1124680 - add MOZ_OVERRIDE in subclasses of TimelineMarker. r=smaug 2015-01-22 07:35:00 +01:00
Carsten "Tomcat" Book
11e2274a1b Backed out changeset d1847f46d293 (bug 1107336) 2015-01-21 16:12:28 +01:00
Carsten "Tomcat" Book
c5ccb9cfdb Backed out changeset 5a2e085824ae (bug 1107336) 2015-01-21 16:10:57 +01:00
Kartikaya Gupta
791c89ebb6 Bug 1116586 - Fix hit region for items with rounded corners. r=tn 2015-01-21 09:16:38 -05:00
David Burns
5a1e19cfcb Bug 1107336: selection tests imports for marionette; r=jgriffin
--HG--
extra : rebase_source : 807b6f129b932445da3355b11bd3c7ff569c852e
2015-01-09 21:42:06 +00:00
David Burns
07e00018b8 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
--HG--
extra : rebase_source : 645d09af73a9072a8c39a4f85cf741fb945a52d1
2014-12-09 20:21:32 +00:00
Xidorn Quan
9317e1bbe3 Bug 910532 part 2 - Prevent exiting fullscreen if escape is consumed by chrome. r=smaug
--HG--
extra : source : b18129bfc6a864ee580c54bd317a01d12ee62e33
2015-01-21 12:16:04 +11:00
Mats Palmgren
b8d41c7ca1 Bug 1116714 part 3 - Use GetParentOrPlaceholderFor (not GetParent) so that reframing anonymous content frames works also for fixed pos frames. r=roc 2015-01-20 18:20:04 +00:00
Kartikaya Gupta
b4cf97874e Bug 1119942 - Hoist nsDisplayScrollInfoLayer items out of inactive layermanagers into their parent. r=tnikkel,mattwoodrow 2015-01-20 09:49:30 -05:00
Kartikaya Gupta
4fcbe2aa73 Bug 1119942 - Stop generating scrollinfo layers if event-regions are enabled. r=tnikkel,botond 2015-01-20 09:49:30 -05:00
Kartikaya Gupta
8e244775ac Bug 1119942 - Add some missing logging for which display items end up on which layer. r=BenWa,mattwoodrow 2015-01-20 09:49:30 -05:00
Julian Seward
ebe8b8d51c Bug 1122375 - Fixes to avoid Valgrind false positives with gcc-4.9.x -O2 builds (part 1). r=roc. 2015-01-20 10:42:29 +01:00
JerryShih
f25e24910b Bug 1092978 - Handle VsyncRefreshTimer creation for nuwa. r=bent,cyu 2015-01-19 02:28:00 +01:00
Nicholas Nethercote
c0a8a6e993 Bug 1123151 (part 2) - Add PLDHashTable::IsInitialized(). r=froydnj.
This encapsulates most of the uses of PLDHashTable::ops.

--HG--
extra : rebase_source : 7760ce8e46a37e87dcfe590e809a21df01fe510f
2015-01-19 16:11:34 -08:00