Commit Graph

12696 Commits

Author SHA1 Message Date
Alexander Surkov
d205486a00 Bug 1040735 - DOM node reinsertion under anonymous content may trigger a11y child adoption, r=bz, tbdaunde, davidb 2014-09-19 20:02:30 -04:00
Jonathan Kew
a7a0688076 Bug 1068027 - nsBidiPresUtils::RepositionFrame should not mix logical and physical directions. r=smontagu 2014-09-19 12:14:05 +01:00
Boris Zbarsky
14ff5707d7 Bug 1067504. Hook up print preview to our parent widget as needed, so it will actually paint. r=smaug 2014-09-15 14:15:15 -04:00
Cameron McCormack
377ef30058 Bug 1062732 - Avoid tracking descendants for restyling if we are force restyling the entire subtree. r=dbaron 2014-09-19 11:12:31 +10:00
Cameron McCormack
b973a953c7 Bug 1063384 - Make RestyleTracker::DoProcessRestyle's restylesToProcess not have an mDescendants array in each element. r=dbaron 2014-09-19 11:12:30 +10:00
Wes Kocher
45f4500903 Merge inbound to m-c a=merge 2014-09-18 15:26:44 -07:00
Fabrice Desré
70514dcc33 backout bug 1029943 for performance regressions (see bug 1066515) 2014-09-18 10:31:20 -07:00
Kartikaya Gupta
e2f9998656 Bug 1056423 - Adjust scrollbar clip rect also when accounting for async transform. r=botond 2014-09-18 13:19:20 -04:00
Markus Stange
9035319790 Bug 944836 - Build a draggable region for the window based on the -moz-window-dragging property. r=roc 2014-09-18 10:52:27 +02:00
Maksim Lebedev
3145ec0ae0 Bug 977003 - Test for check async got/lostpointercapture events. r=smaug 2014-09-16 23:16:00 -04:00
Maksim Lebedev
8c913cbf98 Bug 977003 - Make async got/lostpointercapture events. r=smaug 2014-09-12 02:32:00 -04:00
Benoit Girard
f901a7393c Bug 1065122 - Browser crash when using Timeline & Profiler at the same time. r=pbrosset 2014-09-17 12:00:33 -04:00
Jonathan Watt
8f2b6cd7d0 Bug 1067977 - Rename nsContextBoxBlur's 'blur' member to make it possible to find and reason about the code. r=dholbert 2014-09-17 08:46:39 +01:00
Milan Sreckovic
963b8b7b03 Bug 1060431 - Mention in the async disabled message that the visual > max could also be the cause. r=tn 2014-09-15 12:44:21 -04:00
Cameron McCormack
9e08b4d248 Bug 1041512 - Mark intrinsic widths dirty on a style change even if the frame hasn't had its first reflow yet. r=dbaron 2014-09-17 10:40:11 +10:00
Mats Palmgren
fd6e6691a0 Bug 1067088 - Use aBorderArea when not skipping any sides (e.g. ::first-letter), not the joined border area. r=roc 2014-09-17 00:36:57 +00:00
Seth Fowler
1cc3af62ea Bug 1064855 - Handle zero area destination rects during image snapping. r=roc
--HG--
extra : rebase_source : 8b0c9cb123577fc19359036f466a12aab7148443
2014-09-16 16:18:49 -07:00
Wes Kocher
725423ccde Merge inbound to m-c a=merge 2014-09-16 17:06:43 -07:00
Carsten "Tomcat" Book
fce6c75436 Merge m-c to b2g-inbound 2014-09-16 07:10:24 +02:00
Wes Kocher
196212ea47 Merge m-c to b-i a=merge 2014-09-15 16:47:02 -07:00
Botond Ballo
69bfa032a3 Bug 1066259 - Fix operators for multiplying/dividing a Coord by a Scale. r=kats
--HG--
extra : rebase_source : e6efebeac8b6628b24e1596fb5dc78187c64e325
2014-09-12 17:46:05 -04:00
Jonathan Watt
904d9ad030 Bug 1067093 - Get rid of gfxContext::AntialiasMode in favor of Moz2D AntialiasMode. r=Bas 2014-09-15 12:10:30 +01:00
L. David Baron
4f6e5fae3b Bug 977991 patch 5 - Add eRestyle_ChangeAnimationPhase to switch between the with-animation and without-animation styles. r=birtles
This is an additional bit on nsRestyleHint that says that the restyling
operation should also perform all the work needed to switch between
style-without-animation and style-with-animation (based on
nsPresContext::IsProcessingAnimationStyleChange).  These concepts will
go away in bug 960465.

Note that we don't want this behavior for the animation-only style
update code (bug 996796, etc.), and I wanted to make this explicit so
that it was clear when it was happening, and so that it was clear what
code should be removed when we git rid of it.

This is the workaround needed to land bug 977991 prior to bug 960465.
(I think there's also a minor dependency in the other direction, so we
need a workaround one way or the other.)

Note that this depends on bug 1057231.
2014-09-13 06:17:37 -07:00
L. David Baron
0b5209fe1d Bug 977991 patch 4 - Ensure we don't try to use the style attribute optimization on pseudo-elements. r=birtles
This is needed because patch 1 and patch 3 did not add a mechanism that
allows restyling pseudo-elements, which would be substantially more work
and very little use (since the only case in which they have style
attributes is for our internal use on the ::-moz-color-swatch
pseudo-element).

RestyleUndisplayedChildren does not need the same fix because it's only
used on elements, and never on pseudo-elements or anonymous boxes.
2014-09-13 06:17:36 -07:00
L. David Baron
cf461aae31 Bug 977991 patch 3 - Add ability for RuleNodeWithReplacement to replace the style attribute rule and its important rule. r=birtles
This allows posting a restyle that says that only the rule(s) from the
StyleAttrSheet cascade level will be replaced, which avoids running
selector matching.

Part 4 will ensure that we only invoke this code for element styles (and
not pseudo-element or anonymous box styles).  Despite that, I prefer
having the runtime check here as well given that it's a very simple way
to ensure we don't do something silly that might have security
implications.
2014-09-13 06:17:36 -07:00
L. David Baron
a4fd946d3e Bug 977991 patch 0 - Add bitwise operators to nsRestyleHint. r=birtles
This avoids having to cast back to nsRestyleHint after using bitwise
operators, and allows |= (etc.).

(In the future we should consider converting nsRestyleHint, and probably
also nsChangeHint, to use MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS.)
2014-09-13 06:17:36 -07:00
L. David Baron
80f5a01d0c Bug 1058346 patch 2 - Add eRestyle_SVGAttrAnimations and support it in nsStyleSet::RuleNodeWithReplacement. r=birtles
This allows posting a restyle that says that only the rule(s) from the
SVGAttrAnimationSheet cascade level will be replaced, which avoids running
selector matching.

This is needed to land bug 977991 prior to landing bug 960465, since
that requires replacing all levels that contain animations.

(I'll rename this to match the name determined in bug 1057231.)
2014-09-13 06:17:35 -07:00
Robert O'Callahan
a4e70a02eb Bug 1066591. Backout c43865439dd9 (bug 1066211) to fix regression.
--HG--
extra : rebase_source : bd821aade3b17d7eb4cd6acb5f56b46a343eb239
2014-09-13 11:56:16 +12:00
Nick Lebedev
ac745b44f1 Bug 1024808 - Part 1: Remove OOM null checks of CounterListFor return result. r=dholbert 2014-09-12 01:25:00 -04:00
Nick Lebedev
e05381800e Bug 1024808 - Part 0: Clean up trailing whitespaces. r=dholberty 2014-09-12 01:24:00 -04:00
Daniel Holbert
f322edf2d9 Bug 1065646: Use GetContentRectRelativeToSelf() instead of GetContentRect() - GetPosition(), in layout code. r=tn 2014-09-11 14:29:59 -07:00
Benoit Girard
5dfd41f118 Bug 1056944 - Create an image layer if opaque image covers previous display items. r=mwoodrow
--HG--
extra : rebase_source : d561b6e215d654560f89acddec1663517ca4e8ce
2014-09-04 01:02:27 -04:00
Jonathan Kew
5cadcfeab8 bug 1057331 - add orientation flags to gfxShapedText/gfxTextRun and to glyph runs within the text run, and split glyph runs on orientation changes. r=jdaggett 2014-09-16 12:25:45 +01:00
Carsten "Tomcat" Book
999f88e726 Backed out changeset ec335dbccfbd (bug 1067748) for reftest failures 2014-09-16 09:31:20 +02:00
Cameron McCormack
81ed1e8fa4 Bug 1045895 - Pass out provider frame from RestyleSelf to avoid calling GetParentStyleContextFrame again. r=dbaron 2014-09-10 14:42:03 +10:00
Ting-Yu Lin
24e605550c Bug 1065244 - Part 3 - Fix SelectionCarets::SelectWord() is hard to trigger. f=mtseng, r=roc
Fix this issue by deploying the same logic as selection carets in
TouchCaret::IsOnTouchCaret().
2014-09-15 02:58:00 +02:00
Ting-Yu Lin
e3debbffab Bug 1065244 - Part 2 - Refactor event point on frame logic for SelectionCarets. f=mtseng, r=roc 2014-09-15 02:57:00 +02:00
Ting-Yu Lin
fc63f147e7 Bug 1065244 - Part 1 - Add GetRectRelativeToFrame to nsLayoutUtils. f=mtseng, r=roc 2014-09-15 17:07:00 +02:00
Robert O'Callahan
7758b7fe56 Bug 1067748. When a solid-color display item covers everything else in its layer, make it a ColorLayer. r=tn
--HG--
extra : rebase_source : e0fdaddfd24c59531ffef865b46f948ba203acaa
2014-09-16 16:27:14 +12:00
Kartikaya Gupta
b20c5f944c Bug 1013385 - Add the layer bounds to the layers API and use it for checkerboarding. r=mattwoodrow,BenWa 2014-09-15 16:09:52 -04:00
Jonathan Watt
53f8ce1ac6 Bug 1064084, part 5 - Convert all consumers of gfxContext::NudgeCurrentMatrixToIntegers()/MultiplyAndNudgeToIntegers() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt
2a0767dbda Bug 1064084, part 4 - Convert all consumers of gfxContext::IdentityMatrix() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt
93e59c8bd5 Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Jonathan Watt
e7cd8ba247 Bug 1064082 - Get rid of nsRenderingContext's PushState and PopState methods. r=Bas 2014-09-11 07:48:10 +01:00
Jonathan Watt
13482abf5a Bug 1064056, part 2 - Convert nsRenderingContext::Translate() consumers to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:48:10 +01:00
Jonathan Watt
8220bc573c Bug 1064056, part 1 - Convert nsRenderingContext::AutoPushTranslation consumers to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:48:09 +01:00
Jonathan Watt
423fda249a Bug 1065031, part 2 - Changes to Moz2D consuming code to update callers of Moz2D Matrix's Translate, Scale and Rotate methods to use these methods' new names. r=Bas 2014-09-10 18:29:35 +01:00
Mats Palmgren
1ae9903d62 Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees. 2014-09-10 17:07:36 +00:00
Mats Palmgren
9ede471b64 Bug 739396, part 0 - Make nsDocumentViewer use mozilla::dom::Selection internally instead of nsISelection. 2014-09-10 17:07:36 +00:00
Ryan VanderMeulen
0e562f96b9 Backed out 3 changesets (bug 739396) for Mulet perma-fail on a CLOSED TREE.
Backed out changeset 299911e6983b (bug 739396)
Backed out changeset de11af3e0964 (bug 739396)
Backed out changeset e274cb276cc5 (bug 739396)
2014-09-10 12:21:58 -04:00