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

13551 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack 3d4a394d35 Bug 1137031 - Do not stop restyling when TryStartingTransitiosn gives us a new style context. r=dbaron
It is not correct to stop restyling by leaving the old style context on
the frame and returning eRestyleResult_Stop when TryStartingTransition
provides a new, without-animations style context.  This is at least
because the new new style context could have different styles from the
old new style context.
2015-03-04 16:08:00 +11:00
David Anderson ed57682ba9 Clamp displayports to the maximum texture size. (bug 1135907, r=kats,tn)
--HG--
extra : rebase_source : aeeec3a63cdd62dcd8118192f307aa72be28f640
2015-03-03 11:14:18 -08:00
L. David Baron da27c29b8c Bug 1139180 - Add BUG_COMPONENT metadata to moz.build for files in layout/. r=roc
--HG--
extra : transplant_source : %E16mjh%96Y%AB%96%23%A3%BDCF%F6%8D%95%BF%FE%BC
2015-03-03 17:03:19 -08:00
Mason Chang a9182f7264 Bug 1128690 - Ensure Talos Performance Tests still work with silk enabled. r=mstange 2015-03-03 08:14:22 -08:00
Anish df7d9b1c0e Bug 1135091 - convert remaining SpecialPowers.setBoolPref to pushPrefEnv, p=anishchandran94@gmail.com, r=jmaher, mwargers 2015-03-03 08:46:35 -05:00
Boris Zbarsky 07d483677a Bug 1135764. Make sure XSLT transform results have a document timeline so things like transitions will work. r=smaug 2015-03-03 07:12:00 -05:00
Andrea Marchesini e09c883eef Bug 1134280 - Get rid of Tag() - patch 2.6 - layout/base and layout/form - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Andrea Marchesini 2c4f63331f Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
pchang 973e75beb3 Bug 1137109 move the displaylist tracing inside nsViewManager::ProcessPendingUpdates, r=benwa, mattwoodrow 2015-03-03 18:01:16 +08:00
Jeremy Chen a3d6378544 Bug 1136567 - Marionette test for selection carets' positions after changing orientation of device. r=Automatedtester 2015-03-01 22:45:00 +01:00
Xidorn Quan e7dadd8f81 Bug 1138527 part 1 - Make ruby annotations have the same font inflation as its containing ruby frame. r=roc
--HG--
extra : source : d4f7098b00f88131e2a45a80ce09e6995eb44ed3
2015-03-03 16:06:36 +11:00
Jim Mathies 9f9b260354 bug 1127794 - With remote content calculate and store plugin geometry updates prior to the end of the shadow layer transaction. r=roc 2015-03-02 05:01:58 -06:00
Botond Ballo 08a367dfcc Bug 1136914 - Don't lose scale from parent document when descending into subdocument. r=tn
--HG--
extra : rebase_source : 9df0d3585a615b8869c134571aaf5b55812b1592
2015-02-27 15:36:31 -05:00
Ehsan Akhgari 4a241b25eb Attempt to fix bug 1137717 by focusing the test frame 2015-03-02 16:06:08 -05:00
Maksim Lebedev 4a533d3199 Bug 1133492 - Extract some of nsPresShell into a separate TouchManager class. r=smaug 2015-02-24 22:20:00 -05:00
Maksim Lebedev 0002fc671c Bug 1133492 - Extract some of nsPresShell into a separate TouchManager class. r=smaug 2015-02-20 02:12:00 -05:00
Ryan VanderMeulen 9e25960569 Merge b2g-inbound to m-c. a=merge
CLOSED TREE
2015-02-27 13:23:30 -05:00
Wes Kocher 229490154a Merge m-c to b2ginbound a=merge CLOSED TREE 2015-02-26 18:53:42 -08:00
Kartikaya Gupta abb77fea1d Bug 1137232 - Fix dumping of client layers so it doesn't get truncated. r=dvander
DONTBUILD because NPOTB
2015-02-26 15:57:42 -05:00
Botond Ballo 986201d30d Bug 1071018 - Work around an assertion (will be fixed properly in bug 1036967). r=kats
--HG--
extra : rebase_source : bf3688474e8f7164941bb55f6ec099881c2fa21d
2015-02-25 18:30:46 -05:00
Anish Chandran a58e64d193 Bug 1135383 - Convert Marionette unit tests to use SpecialPowers.pushPrefEnv. r=jmaher, r=mwargers 2015-02-25 19:31:36 +01:00
Ehsan Akhgari f5032448f3 Bug 1132768 - Consider non-editable regions in contenteditable elements as user-select:all even if the editable region doesn't have the focus; r=roc 2015-02-26 09:18:27 -05:00
Kartikaya Gupta 2ccb1ce2ad Bug 1130455 - Remove the ScrollingBehavior code to propagate APZ and use gfxPrefs instead. r=roc,fabrice
The ScrollingBehavior passed around extensively in TabParent/TabChild is
entirely redundant now that the layers.async-pan-zoom.enabled pref definitively
controls whether or not APZ is enabled. All the code related to ScrollingBehavior
can be removed.
2015-02-26 08:47:01 -05:00
Ting-Yu Lin eacb4adcf8 Bug 1136065 - Remove GetRangeCount() in Selection.h. r=ehsan
We replace GetRangeCount() with the identical function RangeCount() to
avoid any confusion.
2015-02-25 17:08:00 +01:00
chiajung hung 46866d6824 Bug 1129249 - Expose the element id in Gecko profiler for Restyle. r=dholbert r=benwa 2015-02-25 23:16:00 +01:00
Kartikaya Gupta 92986059d4 Bug 1136803 - Properly remove the force-dtc override flag on retained layers when listeners are removed. r=botond 2015-02-25 13:36:19 -05:00
Markus Stange 511a39c19d Bug 961887 - Find uniform opaque background colors under ContainerLayers. r=roc
--HG--
extra : rebase_source : 7b5877bc9336e3b01ec43732a5697fba7994c465
2015-02-25 11:47:22 -05:00
Markus Stange 6d5ecb7b01 Bug 961887 - Make FindOpaqueBackgroundColorFor take a region instead of a PaintedLayerData. r=roc
--HG--
extra : rebase_source : 21afe457b330919ba98705c39cd12e44734244cc
extra : source : 97c8184c30588f83147d1abe9ac66696ae35fd7a
2015-02-20 14:46:09 -05:00
Markus Stange f56803507c Bug 961887 - Refactor mVisibleAboveRegion management. r=roc
--HG--
extra : rebase_source : fc3b37cdce3cfce091e3552d2a2fc4d0d7c16fad
extra : source : f02c5c1f77048fabaf45c2f7626f900157ee47f7
2015-02-18 17:37:19 -05:00
Ting-Yu Lin 8c97b329f6 Bug 1136735 - Ignore events if there's no SelectionCarets elements. r=ehsan
XUL has no CanvasFrame. Hence no SelectionCarets elements.
SelectionCarets should ignore the events if it cannot get its elements.
2015-02-25 18:48:00 -05:00
Carsten "Tomcat" Book fac9e15494 Backed out changeset ed12a3822cb9 (bug 1132768) for mochitest-oop-1 test failures
--HG--
extra : rebase_source : 25acbb70ac1aadeeaef466974c2a0f16de7a5fb1
2015-02-25 15:49:55 +01:00
Kartikaya Gupta 9aa660ca7b Bug 990907 - Have DLBI pick up changes in the char-clip on text frames. r=mstange,mattwoodrow 2015-02-25 09:32:28 -05:00
Ehsan Akhgari 2f1041889b Bug 1132768 - Consider non-editable regions in contenteditable elements as user-select:all even if the editable region doesn't have the focus; r=roc 2015-02-25 07:35:33 -05:00
David Burns 7bdd33bd0a Bug 1107336: Update layout tests to use new Marionette Driver; r=jgriffin
--HG--
extra : rebase_source : 1a84494081492b97fe7d4c8ebb0c130e1c59fb29
2015-02-23 14:43:37 +00:00
Timothy Nikkel f1d154f17c Bug 1102896. Save and restore the subpixel AA settings of the draw target when drawing an inactive layer manager so they don't get clobbered. r=mattwoodrow 2015-02-24 22:59:43 -06:00
Benoit Girard b732d605b0 Bug 1134762 - Clean-up UseFastPath logic to avoid OOM error. r=kats
--HG--
extra : rebase_source : 500ab9ab5bd860a434a02c51ced6a0834897eab8
2015-02-18 15:27:40 -05:00
Wes Kocher 84d0eb7968 Backed out 3 changesets (bug 961887) for reftest failures on a CLOSED TREE
Backed out changeset 1684d29858e1 (bug 961887)
Backed out changeset 97c8184c3058 (bug 961887)
Backed out changeset f02c5c1f7704 (bug 961887)
2015-02-24 17:32:37 -08:00
Markus Stange 9b0240a85b Bug 961887 - Find uniform opaque background colors under ContainerLayers. r=roc 2015-02-24 14:35:46 -05:00
Markus Stange 2e52d4648c Bug 961887 - Make FindOpaqueBackgroundColorFor take a region instead of a PaintedLayerData. r=roc 2015-02-20 14:46:09 -05:00
Markus Stange 98769b80dc Bug 961887 - Refactor mVisibleAboveRegion management. r=roc 2015-02-18 17:37:19 -05:00
Ting-Yu Lin c4e7cf937e Bug 1135992 - Fix non-unified build failed in nsLayoutUtils.cpp. r=botond 2015-02-24 02:16:00 -05:00
Carsten "Tomcat" Book c161ee575d Merge mozilla-central to mozilla-inbound 2015-02-24 13:25:15 +01:00
Carsten "Tomcat" Book 6eece0b459 merge mozilla-inbound to mozilla-central a=merge 2015-02-24 12:54:34 +01:00
pchang 052ba27385 Bug 1023190 - Fix extra horizontal line when draw background image with repeat-x mode, r=roc 2015-02-24 14:18:40 +08:00
Mason Chang fbd9897745 Bug 1133526. Only enable vsync compositor or refresh driver if hardware vsync is enabled. r=kats 2015-02-23 12:04:11 -08:00
Jonathan Watt 05962ce5a4 Bug 1135913, part 1 - Simplify nsCSSRendering::DecorationLineToPath to not require a context. r=heycam 2015-02-03 14:34:14 +00:00
Kartikaya Gupta 53a4b66a34 Bug 1102427 - Ensure scroll parents of an active scrollframe are layerized. r=tn 2015-02-24 01:24:04 -08:00
Tyson Smith eea1887f17 Bug 930381 - crashtest. 2015-02-22 02:41:58 +00:00
Ryan VanderMeulen fd0387315e Merge inbound to m-c. a=merge 2015-02-21 16:40:27 -05:00
dominique vincent ef75e137d9 Bug 1126989 - Detect not readable links to pop up the zoomed view. r=kats, r=mcomella 2015-02-07 12:17:12 +01:00
Wes Kocher 88f34ca973 Backed out 8 changesets (bug 1129078, bug 1128722) for mochitest-5 failures
Backed out changeset f7eff607655a (bug 1128722)
Backed out changeset 801b3abc0de8 (bug 1128722)
Backed out changeset 275d27c2dba0 (bug 1129078)
Backed out changeset 9830ab1a2028 (bug 1129078)
Backed out changeset ce5cb876af9a (bug 1129078)
Backed out changeset c199ff86c77f (bug 1129078)
Backed out changeset 38b1b039f14d (bug 1129078)
Backed out changeset c8a99ee97313 (bug 1129078)
2015-02-20 12:24:25 -08:00
Markus Stange 8ada7e4943 Bug 1134311 - Get rid of the draw region and always only use the visible region. r=roc 2015-02-18 13:01:40 -05:00
Matt Woodrow c2394710e5 Bug 1087956: Fix clipping of position:fixed layers inside displayports. r=roc 2015-02-20 10:55:28 -08:00
Mats Palmgren 7ffa9baa18 Bug 1128722 - part 2, tests. 2015-02-20 17:34:21 +00:00
Mats Palmgren 96e5bf231f Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-20 17:34:21 +00:00
Mats Palmgren 0a533f22ed Bug 1129078 - part 5, Test suite for multi-range selections involving user-select:none.
--HG--
rename : layout/reftests/fonts/Ahem.ttf => layout/base/tests/Ahem.ttf
2015-02-20 17:34:21 +00:00
Timothy Nikkel adf5931715 Bug 1132371. Allow opacity items that only contain one item that paints (and others that don't) to flatten away as well. r=mattwoodrow
The optimization that allows opacity items that only contain one item (which can fold the opacity into it's own drawing) to flatten away will never apply when we have layer event region items. This is because opacity generates a stacking context and we always push a new layer event regions item for a stacking context. So if we want to keep this optimization we need to extend to to at least two items. Layer event regions items have empty bounds, which allows the non-overlapping test to pass for layer event region items. Although it will work with any non-overlapping items.
2015-02-19 19:04:09 -06:00
Jeremy Chen d78ba333be Bug 1131948 - Part 3: Test caret visibility in multi-range text. r=dburns 2015-02-19 07:18:00 -05:00
Jeremy Chen b1bfdeff8c Bug 1131948 - Part 2: Separate multiple line test cases from test_selectioncarets.html. r=dburns 2015-02-19 07:14:00 -05:00
Jeremy Chen a95f54063b Bug 1131948 - Part 1: Add content non-editable marionette tests. r=dburns 2015-02-19 07:06:00 -05:00
L. David Baron b00c25a4fd Bug 1133439 patch 2 - Distinguish animation-only SMIL restyles based on eRestyle_StyleAttribute_Animations in RestyleManager::PostRestyleEvent. r=birtles 2015-02-19 21:22:05 +13:00
L. David Baron 3f721f200d Bug 1133439 patch 1 - Split eRestyle_StyleAttribute into eRestyle_StyleAttribute and eRestyle_StyleAttributeAnimations. r=birtles 2015-02-19 21:22:05 +13:00
Masayuki Nakano 019965a1f6 Bug 1119609 part.14 Reimplement/redesign EventUtils.synthesizeKey() with nsITextInputProcessor r=smaug 2015-02-19 15:50:20 +09:00
Mats Palmgren d73b668aa4 Bug 1128722 - part 2, tests. 2015-02-21 04:27:59 +00:00
Mats Palmgren ff536e5a24 Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-21 04:27:59 +00:00
Mats Palmgren 20b80ccdae Bug 1129078 - part 5, Test suite for multi-range selections involving user-select:none.
--HG--
rename : layout/reftests/fonts/Ahem.ttf => layout/base/tests/Ahem.ttf
2015-02-21 04:27:59 +00:00
L. David Baron debfad6d05 Bug 1131812 patch 2 - Don't do ratio scaling when applying min/max-width/height for images without an intrinsic ratio. r=dholbert
This is because the rules in the table in section 10.4 of CSS 2.1 only
apply when width and height are auto (which we already tested) and when
the image has an intrinsic ratio (which we did not).

I had hoped to simplify the code further, but there are tricky ordering
dependencies that make it hard to do.  (In particular, in the branches
for one dimension auto and one non-auto, the non-auto dimension is
computed first.)
2015-02-19 13:49:52 +13:00
L. David Baron 71e196bb22 Bug 1133392 - Make handling of nsChangeHint_UpdateSubtreeOverflow iterate continuations, as all change hint handling needs to. r=mats
The test fails without the patch (missing underline on "an underline")
and passes with the patch (where the underline is present, and aligned
with the non-displaced text).
2015-02-19 13:49:52 +13:00
Nicholas Nethercote 6731149c55 Bug 1127201 (attempt 2, part 2) - Remove remaining uses of NS_ABORT_IF_FALSE. r=Waldo.
For the poisoning in nsPresArena.cpp I made it print out the details, because
that seems useful. For the other I simply removed the printing of the
unexpected value because that seems less important; we have countless
assertions like that elsewhere in the codebase that don't print the unexpected
value.

--HG--
extra : rebase_source : 34bb135d34c67db8c1db1742a53ea84e472083c6
2015-02-09 17:05:37 -08:00
Cameron McCormack 635933d3f8 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 b561d4e5ae Bug 1127198 - Part 3: Crashtest. r=dbaron 2015-02-18 09:28:53 +11:00
Cameron McCormack c11c432b20 Bug 1125391 - Re-enable bug 931668 optimizations. r=dbaron 2015-02-18 09:28:53 +11:00
David Anderson a287bcbe50 Make sure XUL windows have a top-level APZC. (bug 1130645, r=roc) 2015-02-12 17:49:10 -08:00
Kartikaya Gupta 7fd26daa4a Bug 1131840 - Replace the shouldForceDispatchToContent flag with a bitset enum. r=roc,botond 2015-02-16 21:30:02 -05:00
L. David Baron 43c2cd3af5 Bug 960465 patch 22 - Remove implementation of nsRestyleHint_ChangeAnimationPhase. r=birtles 2015-02-17 11:15:06 +13:00
L. David Baron 8c28244fab 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 04535c3f75 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 6475962f36 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 bc26f211f6 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 7695d1eb3f 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 8e1599d76b 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 ec1d6f8002 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 9e99ab7b35 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 c60431ba8a 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 cf453a224f 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 1b6ffe0698 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 4eedf5bf60 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 08fafcb3e2 merge mozilla-inbound to mozilla-central a=merge 2015-02-16 15:59:56 +01:00
Ting-Yu Lin 565ac9a109 Bug 1096185 - Part 3 - Fix function redefinition in test_selectioncarets.py. r=automatedtester 2015-02-11 23:33:00 +01:00
Ting-Yu Lin 97d46f9e72 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 e205f3b0b8 Bug 1120750 - Part 5: Fix non-unified build bustage. 2015-02-12 21:05:50 -05:00
L. David Baron 91d13e7a1d 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 52aec10e19 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 5a3d7683d5 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 f6a6550205 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 c7b2d63a3a Make sure XUL windows have a top-level APZC. (bug 1130645, r=roc) 2015-02-12 17:49:10 -08:00
Timothy Nikkel 009f559001 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 3a7b0a9f57 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 1b3e94152e Bug 1120750 - Part 3: Dispatch taponcaret using selectionstatechanged event. r=roc 2015-01-21 23:42:00 -05:00
Morris Tseng f6684364a0 Bug 1120750 - Part 1: Move GetSelectionBoundingRect to nsContentUtils. r=roc 2015-02-04 21:58:00 -05:00