Commit Graph

43557 Commits

Author SHA1 Message Date
Cameron McCormack
fdaf162ad8 Bug 1098270 - Null check curData in AddPendingRestyle to avoid crashing on style sheet updates in ShadowRoots outside of the composed document. r=dbaron 2014-11-27 09:47:52 +11:00
Blake Kaplan
e4c077f303 Bug 582297 - Make <keygen> work in e10s. r=billm/dkeeler 2014-11-26 14:28:28 -08:00
Seth Fowler
b8c1e93d1d Bug 1060869 (Part 4) - Update SurfaceCache prefs to increase the cache size. r=dholbert,tn 2014-11-26 13:22:10 -08:00
Seth Fowler
ab431799e2 Bug 1060869 (Part 4) - Update SurfaceCache prefs to increase the cache size. r=dholbert,tn
--HG--
extra : rebase_source : 64746ba9ac1dab008857aa5acbe8699b2de69f0b
2014-11-25 00:10:11 -08:00
Seth Fowler
626d39ccdc Bug 1102617 - Replace imgIContainer::FrameIsOpaque with imgIContainer::IsOpaque. r=tn 2014-11-24 23:42:43 -08:00
Xidorn Quan
60b52c0071 Bug 1084183 - Test for text-decoration for ruby frames. r=dbaron 2014-11-26 15:53:18 +11:00
Xidorn Quan
c23c15eb67 Bug 1084183 - Propagate text decoration to ruby frames. r=dbaron 2014-11-26 15:53:18 +11:00
Xidorn Quan
e464df4013 Bug 1052924 - Implement basic line breaking for ruby. r=dbaron
Known problem:
It would cause infinite loop if there is any line break happens inside
ruby base or annotation, or the width of container is not enough for
the widest pair/span. This might be fixed in bug 1098272.
2014-11-26 15:52:50 +11:00
Xidorn Quan
5f4cd8dd0b Bug 1052924 - Separate reflow code. r=dbaron 2014-11-26 15:52:50 +11:00
Xidorn Quan
43f5510c25 Bug 1052924 - Give rbc & rtc correct position. r=dbaron
Important changes:
  * Use line layout to reflow ruby base container
2014-11-26 15:52:49 +11:00
Xidorn Quan
d25178b0db Bug 1052924 - Resolve some warnings. r=dbaron
Important changes:
  * Change base class of nsRuby{Base,Text}Frame to nsInlineFrame
  * Make ComputeSize of nsRubyFrame and nsRubyBaseContainerFrame behavior like inline frames
2014-11-26 15:52:49 +11:00
Xidorn Quan
c25136319a Bug 1052924 - Rewrite reflow code. r=dbaron
Important changes:
  * Avoid using GetPrefISize on the ruby texts in
    nsRubyBaseContainerFrame::Reflow, since the size it produces might
    not match the size produced by Reflow.  The old code calls that on
    all the ruby texts to determine how big they are, then reflows all
    the ruby bases, and then reflows all the ruby texts.  The new code
    instead processes one pair at a time, and for each pair reflows the
    ruby texts and then the ruby base.
  * Change the base class of nsRubyTextContainerFrame from nsBlockFrame
    to nsContainerFrame, and stop constructing an nsBlockReflowState for
    its reflow.
  * Move the code for reflowing ruby texts from nsRubyTextContainerFrame
    and to nsRubyBaseContainerFrame.
  * Fix the regression that ruby text containers contain span are not
    reflowed properly. It is the regression introduced in patch 0.

Known regression:
  * This patch drops centering ruby base and annotation in pairs. This
    should be fixed in bug 1055676 (ruby-align).
2014-11-26 15:52:49 +11:00
Xidorn Quan
e254b3d884 Bug 1052924 - Add assertion and comments pointing out that ruby base container frames do not have an mBlockRS, but that's OK since they are never the containing block for floats. r=dbaron 2014-11-26 15:52:49 +11:00
Xidorn Quan
1fbb3167e6 Bug 1052924 - Treat ruby text containers as inline elements for the purposes of finding a font inflation container so that ruby text gets the same font inflation as its ruby bases. r=dbaron 2014-11-26 15:52:48 +11:00
Xidorn Quan
458a202ef8 Bug 1052924 - Use unified enumerators to simplify code. r=dbaron 2014-11-26 15:52:48 +11:00
Xidorn Quan
9b0f833e9c Bug 1052924 - Rewrite pref isize and min isize computation. r=dbaron
Known regression:
This patch changes AppendTextContainer, and put aside text containers
which contain spanning annotations. This changes makes those text
containers not be reflowed by the current code. It will be fixed in
some later patch.
2014-11-26 15:52:48 +11:00
Xidorn Quan
0574ed0fc4 Bug 1083004 - Create anonymous ruby base container when necessary. r=bz 2014-11-26 15:52:07 +11:00
Morris Tseng
c1af02f12b Backed out 5 changesets (bug 1092888) for breaking QA smoketest on b2g.
Backout changeset 8c513f282a9e (bug 1092888)
Backout changeset db37104f6fbd (bug 1092888)
Backout changeset b1a0a7ea1a32 (bug 1092888)
Backout changeset c53a6181a4b2 (bug 1092888)
Backout changeset 54e551c1f2cd (bug 1092888)
2014-11-26 10:11:38 +08:00
Daniel Holbert
28cfe08fd0 Bug 1098417 part 5: Add reftests for anchor-point handling, with WebM videos & a range of "object-position" values. (no review)
--HG--
rename : layout/reftests/webm-video/generate-object-fit-video-tests.sh => layout/reftests/webm-video/generate-object-position-video-tests.sh
rename : layout/reftests/w3c-css/submitted/images3/object-position-png-001-ref.html => layout/reftests/webm-video/object-position-webm-001-ref.html
rename : layout/reftests/w3c-css/submitted/images3/object-position-png-001p.html => layout/reftests/webm-video/object-position-webm-001.html
rename : layout/reftests/w3c-css/submitted/images3/object-position-png-002-ref.html => layout/reftests/webm-video/object-position-webm-002-ref.html
rename : layout/reftests/w3c-css/submitted/images3/object-position-png-002p.html => layout/reftests/webm-video/object-position-webm-002.html
2014-11-25 16:46:15 -08:00
Daniel Holbert
447cfc6303 Bug 1098417 part 4: Add reftests for anchor-point handling, with SVG images & a range of "object-position" values. (no review)
--HG--
rename : layout/reftests/w3c-css/submitted/images3/support/generate-object-position-png-tests.sh => layout/reftests/w3c-css/submitted/images3/support/generate-object-position-svg-tests.sh
2014-11-25 16:46:15 -08:00
Daniel Holbert
e440aa485d Bug 1098417 part 3: Add reftests for anchor-point handling, with PNG images & a range of object-fit values. r=seth
--HG--
rename : layout/reftests/w3c-css/submitted/images3/support/generate-object-fit-png-tests.sh => layout/reftests/w3c-css/submitted/images3/support/generate-object-position-png-tests.sh
2014-11-25 16:46:15 -08:00
Daniel Holbert
82b8f74f2a Bug 1098417 part 2: Make nsImageFrame pass "object-position"-determined anchor-point to DrawSingleImage. r=seth 2014-11-25 16:46:14 -08:00
Daniel Holbert
baf1513be2 Bug 1098417 part 1.5: Ignore computed anchor-point if 'object-fit' and 'object-position' are at their initial values, for backwards compat. r=seth 2014-11-25 16:46:14 -08:00
Daniel Holbert
c7ce74a52e Bug 1098417 part 1: Add optional anchor-point arg to nsLayoutUtils::ComputeObjectDestRect() and nsLayoutUtils::DrawSingleImage(). r=seth 2014-11-21 18:25:46 -08:00
Andrew McCreight
b4794bdb85 Bug 1103107 - Don't Destroy() RenderFrameChild if it is already ActorDestroy()ed. 2014-11-25 16:14:19 -08:00
Daniel Holbert
6f9dea011b Bug 1093316 part 2: Backout changeset af2a4fb980ad (i.e. backout bug 1032922 part 1), to reflect CSSWG removing "flex-basis: main-size" from the flexbox spec.
Landing on a CLOSED TREE with a=kwierso
2014-11-25 15:40:24 -08:00
Daniel Holbert
a03d3e37d5 Bug 1093316 part 1: Backout changeset aece7f9f944c (i.e. backout bug 1032922 part 2), to reflect CSSWG removing "flex-basis: main-size" from the flexbox spec. 2014-11-25 11:28:15 -08:00
Daniel Holbert
4d0b72d499 Bug 624647 followup: Minor cleanup in nsVideoFrame::BuildLayer(); restore a local variable which shouldn't have been removed. (no review)
An earlier patch for this bug (changeset 466d3ff030e6) removed local variable
"nsRect area", but then ended up effectively re-creating it further down in the
function as "contentBoxRect". (I added contentBoxRect as a late-breaking
change, as part of addressing a review comment.)

I've now realized that contentBoxRect is the same rect as "area", and it's
simpler to just declare the original "area" rect at the function's start
instead of dynamically creating it further down.

(Not requesting review, since this is a no-functional-change tweak, which is
following up on a change that I'd made in response to review feedback on a r+'d
patch.)
2014-11-25 15:40:02 -08:00
peter chang
483ecd1196 Bug 1090008 Dispatch SelectionStateChanged event for blur, r=roc r=smaug 2014-11-27 18:56:00 +01:00
peter chang
0911a88d6d Bug 1090008 - Part 4 - Rename SelectionChange to SelectionStateChanged, r=smaug 2014-11-27 18:55:00 +01:00
pchang
040f9d3add Bug 1090008 -Part 1 - Refactor the logic to dispatch selectionchange to TextDialog, r=roc 2014-11-28 05:35:00 +01:00
Carsten "Tomcat" Book
353ec034ab Merge mozilla-central to mozilla-inbound 2014-11-28 14:23:52 +01:00
Jonathan Kew
322e9af63c Bug 1077528 - part 2 - Make nsBlockFrame consider resize flags logically instead of physically. r=smontagu 2014-11-28 09:44:05 +00:00
Jonathan Kew
e117c33e3d Bug 1077528 - part 1 - Provide physical and logical accessors for the m{HV}Resize flags in nsHTMLReflowState, and convert all flag users to the accessor methods. r=smontagu 2014-11-28 09:44:02 +00:00
Jonathan Kew
aade725c53 Bug 1083848 - Reftests for borders and backgrounds when inline element is split across lines in vertical writing-mode. r=dbaron 2014-11-24 23:16:06 +00:00
Jonathan Kew
292ae32743 Bug 1083848 - Make InlineBackgroundData aware of vertical writing mode. r=dbaron 2014-11-24 23:16:04 +00:00
Jonathan Kew
1c66529de8 Bug 1103613 - Followup to adjust reftest as per review comment #6. r=me 2014-11-24 23:15:59 +00:00
Jonathan Kew
7534cd5f2b Bug 1103613 - Reftest for inline-size of an orthogonal block. r=smontagu 2014-11-24 21:44:31 +00:00
Jonathan Kew
9a4427f454 Bug 1103613 - Use better inline-size for an orthogonal flow within a block of specified dimensions. r=smontagu 2014-11-24 21:44:06 +00:00
Mats Palmgren
98fa65732a Bug 1102791 - Always return NS_FRAME_COMPLETE status from nsHTMLButtonControlFrame::Reflow. Don't create overflow container continuations unless the delegating frame has eCanContainOverflowContainers. r=roc 2014-11-24 16:42:31 +00:00
Jonathan Watt
7883ced95d Bug 1103623 follow-up to fuzz 633344-1.html for D2D on Windows 8 2014-11-24 08:52:06 +00:00
Dirk Schulze
123849abdb Bug 1074528 - Implement parsing/computing of inset(). r=dbaron 2014-11-22 05:28:00 +01:00
Gina Yeh
51ce3cd47f Bug 1091479, Patch2: Rename enum members, r=sinker. 2014-11-24 09:47:39 +08:00
Jonathan Watt
9910919cdd Bug 1103623 - Port most remaining gfxContext::Fill() calls to Moz2D. r=mattwoodrow 2014-11-24 00:04:33 +00:00
Jonathan Watt
8cf9f138a9 Bug 1101571 - List-style discs are all wobbly during vertical transitions. r=mattwoodrow 2014-11-21 15:48:05 +00:00
Jonathan Watt
e598736fc1 Bug 1103621 - Get rid of GraphicsOperator::OPERATOR_CLEAR. r=mattwoodrow 2014-11-20 10:40:04 +00:00
Bob Clary
a08e4446e4 Bug 622596 - crashtest. 2014-11-23 15:09:51 +00:00
Bernd
b92a6ee0e0 Bug 563009 - crashtests. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
c91b23533e Bug 559491 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
5919efd1e0 Bug 472957 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
4dbf029a32 Bug 430991 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
47b0568d7c Bug 429960 - crashtests. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
7188f0155f Bug 429881 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
310e5bae93 Bug 429458 - crashtest. 2014-11-23 15:09:50 +00:00
Martijn Wargers
4ef2163519 Bug 419985 - crashtest. 2014-11-23 15:09:50 +00:00
Botond Ballo
e52ed096aa Bug 1099298 - Revert the temporary fix in bug 1099104. r=tn 2014-11-21 13:52:49 -05:00
Botond Ballo
41baa473b8 Bug 1099298 - Add the pres shell resolution to the container layer parameters in nsDisplaySubDocument::ComputeFrameMetrics(). r=tn 2014-11-21 13:50:41 -05:00
Jonathan Kew
74d961eaf3 Bug 1077515 - part 6 - Create a new nsISelectionController::PhysicalMove command. r=roc 2014-11-22 14:39:03 +00:00
Jonathan Kew
9a00763a7b Bug 1077515 - part 3 - Change desiredX (nscoord) to desiredPos (nsPoint) in nsPeekOffsetStruct, to support maintaining either vertical or horizontal position on inter-line moves. r=roc 2014-11-22 14:39:03 +00:00
Jonathan Kew
d4bd3503ab Bug 1077515 - part 1 - Eliminate use of keyCode parameters and values in nsFrameSelection. r=roc 2014-11-22 14:39:02 +00:00
Kartikaya Gupta
0611166ee2 Bug 918288 - Ensure we set a displayport on elements that we get touch-start events for. r=botond 2014-11-21 21:36:25 -05:00
Kartikaya Gupta
911702f6c3 Bug 918288 - Add code to TabChild to dispatch the SetTargetAPZC notification. r=roc,botond 2014-11-21 21:36:25 -05:00
David Anderson
a7ce0b61d2 Put meta viewport support behind a pref (bug 1092450, r=kats). 2014-11-21 14:32:32 -05:00
Vladimir Vukicevic
200399e6f3 Bug 1036602 - add generic gfx/layers functionality for VR rendering; r=nical 2014-07-09 12:26:18 -07:00
Vladimir Vukicevic
01202baa97 Bug 1036604 - add VR display item and VR frame state bit; r=roc 2014-07-09 12:25:31 -07:00
Carsten "Tomcat" Book
c7343ddfa9 Merge mozilla-central to mozilla-inbound 2014-11-21 13:00:50 +01:00
Carsten "Tomcat" Book
aa7f18d14d merge mozilla-inbound to mozilla-central a=merge 2014-11-21 12:57:00 +01:00
Gina Yeh
0b247ef9d3 Bug 1096146, Patch 1: No default actions of keydown event should be made if mozbrowserbeforekeydown event is defaultPrevented, r=smaug. 2014-11-21 17:47:55 +08:00
Wes Kocher
ae7f9a4094 Merge m-c to fx-team a=merge CLOSED TREE 2014-11-20 18:06:48 -08:00
Justin Dolske
fbb361a8c1 Bug 1098123 - Add telemetry for onbeforeunload usage. r=jst 2014-11-20 14:50:01 -08:00
David Anderson
e025120099 Make sure event regions propagate to more layers. (bug 1101260 part 2, r=roc) 2014-11-20 16:58:19 -08:00
David Anderson
0965889407 Cache the current animated geometry root in nsDisplayListBuilder. (bug 1101260 part 1, r=roc) 2014-11-20 16:58:18 -08:00
Mats Palmgren
6cee3ccac1 Bug 907396 - Tests for CSS 'display:contents'. 2014-11-20 18:24:11 +00:00
Mats Palmgren
8f6f1c70f4 Bug 907396 - DEBUG only; make frame tree dumps print up to 2 style context parents in the unusual case when they are not the parent frame's style context (e.g. display:contents). r=bzbarsky 2014-11-20 18:24:10 +00:00
Mats Palmgren
b0f013a10d Bug 907396 - Make RestyleManager::RestyleElement and nsCSSFrameConstructor::MaybeRecreateFramesForElement deal with display:contents elements. r=bzbarsky 2014-11-20 18:24:10 +00:00
Mats Palmgren
debd2f3e4d Bug 907396 - Replace GetParentStyleContextFrame with GetParentStyleContext which can return frame-less display:contents style contexts. r=bzbarsky 2014-11-20 18:24:10 +00:00
Mats Palmgren
49c85139e6 Bug 907396 - Implement RestyleUndisplayedDescendants that restyles diplay:none children and display:contents descendants. r=bzbarsky 2014-11-20 18:24:10 +00:00
Mats Palmgren
96ad0f2c46 Bug 907396 - Frame constructor changes for display:contents. r=bzbarsky 2014-11-20 18:24:09 +00:00
Mats Palmgren
994ddfd821 Bug 907396 - Frame manager support for display:contents. r=bzbarsky 2014-11-20 18:24:09 +00:00
Mats Palmgren
7dbb7d8614 Bug 907396 - Put display:contents support behind a pref - disabled by default. r=dholbert 2014-11-20 18:24:09 +00:00
Mats Palmgren
5d71478ede Bug 907396 - Flex/Grid container changes for display:contents. r=dholbert 2014-11-20 18:24:09 +00:00
Mats Palmgren
473f5eac8b Bug 907396 - Style system support for display:contents. r=dbaron 2014-11-20 18:24:08 +00:00
Avi Halachmi
6436161a3d Bug 1100920 - telemetry probe for frames latency. r=roc 2014-11-18 14:47:32 +02:00
Nazma Panjwani
9bd7bfc683 Bug 1091280 - moved options from AutomationUtils.addCommonOptions to runreftest.py, mochitest_options.py, runxpcshelltests.py and removed the addCommonOptions from automationUtils and automation.py.in, r=ahal 2014-11-19 12:31:45 -08:00
Karl Tomlinson
70ad9ee0ee bug 1096132 rename nsDeviceContext PixelScale to FullZoom r=tn
--HG--
extra : rebase_source : b78ffe7ffddf47a9646c1766626f48aed67ebb09
2014-11-10 15:47:55 +13:00
Karl Tomlinson
ed15675b8b bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
--HG--
extra : rebase_source : 220ede5d449a752c16064bb77905bc68af3df707
2014-11-14 00:53:02 +13:00
Daniel Holbert
e1da5a0144 Bug 1002632 part 1: Make an image document's refresh driver receive ticks from the image's clients, & disable its internal timer. r=bz 2014-05-01 09:31:54 -07:00
Brian Birtles
ba8d2e5233 Bug 1104427 part 2 - Encapsulate AnimationPlayer::mStartTime; r=dholbert
Now that there is a public accessor for mStartTime, we can make it a protected
member of AnimationPlayer. The only time mStartTime is ever set is when playing
the animation so we can replace external modifications to mStartTime with calls
to Play(). This simplifies implementing deferred starting of animations
in bug 927349 by isolating the deferred playback logic to AnimationPlayer.

Note that even when we call PauseFromStyle immediately afterwards we still need
to call PlayFromStyle (or Play) first in order to resolve the time at which the
player should be paused. A newly created player doesn't have a current time so
if we were simply to call pause it wouldn't pause at the start of the animation
as we might expect. The call to Play(FromStyle) will cause the current time to
become zero and then we pause at that time.
2014-12-04 08:28:38 -08:00
Jonathan Kew
68085e20cf Bug 1107256 - Correct the position of text decoration lines on vertical text. r=smontagu 2014-12-04 00:57:18 -08:00
Jonathan Kew
7c0a02e599 Bug 1106669 - Reftest for IntrinsicForContainer writing-mode handling. r=smontagu 2014-12-04 00:57:18 -08:00
Jonathan Kew
57cc7d8ed1 Bug 1106669 - Convert nsLayoutUtils::IntrinsicForContainer to work with logical coordinates. r=smontagu 2014-12-04 00:57:17 -08:00
Jonathan Kew
a65c19199c Bug 1106667 - Vertical writing-mode support for HTML button elements. r=smontagu 2014-12-04 00:57:17 -08:00
Jonathan Kew
a93db66c49 Bug 1079157 - part 3 - Make nsColumnSetFrame support vertical writing mode. r=smontagu 2014-12-04 00:57:17 -08:00
Jonathan Kew
88364ece99 Bug 1079157 - part 2 - Comment updates and whitespace cleanup only, no actual code changes. r=smontagu 2014-12-04 00:57:17 -08:00
Jonathan Kew
4673c6322c Bug 1079157 - part 1 - Purely mechanical renaming of local variables and members in nsColumnSetFrame. r=smontagu 2014-12-04 00:57:16 -08:00
David Anderson
397b1a3520 Add inactive subframes to the dispatch-to-content region. (bug 1082594, r=tn,kats) 2014-11-19 20:24:15 -08:00
David Zbarsky
7e217619a6 Bug 1085769: Merge ContentOrAncestorHasAnimation/Transition r=birtles 2014-11-19 21:48:42 -05:00
David Zbarsky
8498454656 Bug 1085769: Merge RulesMatching, GetAnimationPlayers, and GetAnimationRule r=birtles 2014-11-19 21:48:41 -05:00
Daniel Holbert
bacb520ce5 Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
Daniel Holbert
58dc4ebd39 Bug 1101128 part 1: Move nsDisplayImage::GetOpaqueRegion() to .cpp file, and label it as MOZ_OVERRIDE. r=seth 2014-11-19 18:34:50 -08:00
Boris Zbarsky
d474b181de Bug 771043. Move MediaQueryList tracking from the prescontext to the document, so they will correctly outlive prescontext changes. r=dbaron 2014-10-03 14:15:25 -04:00
Gijs Kruitbosch
38f778c3d4 Bug 992691 - don't allow dropping multiple files on non-multiple file input, r=smaug
--HG--
extra : rebase_source : a1c2b1b2854d39efcab6ac0f02ce6f4f57c6b9e8
2014-11-18 15:58:08 +00:00
Jonathan Kew
8cde7ce607 Bug 1097128 - Enable compile-time support for vertical writing modes. r=smontagu 2014-11-19 11:15:45 +00:00
Lebedev Maksim
74e49d7ff3 Bug 1098139 - Add attribute isPrimary detection for got/lostpointercapture events. r=smaug 2014-11-18 01:13:00 +01:00
James Kitchener
53c1e0eefb Bug 1002526 - Execute dynamic code only once in reftest. r=fred 2014-11-16 04:44:00 +01:00
Wes Kocher
92049c1863 Backed out changeset 41ecbb9a5fac (bug 1092634) for reftest bustage 2014-11-18 17:21:08 -08:00
Markus Stange
d758890dc7 Bug 1097776 - Use Skia for unaccelerated rendering of 3D transforms. r=jrmuizel 2014-11-18 17:21:45 -05:00
Markus Stange
cacfe982d9 Bug 1092634 - Let feColorMatrix and feComponentTransfer generate output outside their input's bounds. r=Bas
This makes the color matrix and component transfer Moz2D filters generate an infinite output, which is then cropped to the primitive's filter primitive subregion by a subsequent crop filter node. This still gives us different behavior than other browser when the primitive subregion is overridden using the x/y/width/height attributes - other browsers either ignore those completely (IE) or only let them crop the default subregion (which is defined to be the same as the input subregion) and not enlargen it - but I'll fix that in a separate bug.
2014-11-18 17:21:19 -05:00
Wes Kocher
9581b5ae7b Backed out changeset 0092a5e1467d (bug 1097776) for reftest failures and leaks 2014-11-18 11:00:08 -08:00
Markus Stange
a2063bf6a6 Bug 1097776 - Use Skia for unaccelerated rendering of 3D transforms. r=jrmuizel 2014-11-18 11:36:17 -05:00
Sid Stamm
55e3ccdad7 Bug 704320 - apply referrer policies to image loads (r=seth) 2014-11-18 08:46:53 -05:00
Sid Stamm
7235c3b5b2 Bug 704320 - Add referrer policy support to stylesheet and CSS loads and fonts. (r=bz) 2014-11-18 08:46:47 -05:00
Tooru Fujisawa
edefbef191 Bug 1039488 - Turn text-decoration into a shorthand. r=dbaron 2014-11-18 19:23:09 +09:00
Tooru Fujisawa
56aff7eabb Bug 825004 - Part 2: Provide temporary aliases for -moz-text-decoration-*. r=dbaron 2014-11-18 19:23:09 +09:00
Tooru Fujisawa
2cbd1c5ec6 Bug 825004 - Part 1: Unprefix CSS3 Text Decoration. r=dbaron 2014-11-18 19:23:09 +09:00
Ting-Yu Lin
39970eda35 Bug 1100243 - Fix wrong log in SelectionCarets::SetEndFrameVisibility(). r=mtseng 2014-11-17 00:05:00 +01:00
Morris Tseng
23a9b24a2e Bug 1092888 - Part 5: Add a parameter to toggle context menu when calling long_press. r=mdas 2014-11-16 18:52:00 +01:00
Morris Tseng
00b6c7e47f Bug 1092888 - Part 4: Flip testing function for non-editablt test at test_selectioncarets.py. r=roc 2014-11-10 19:47:00 +01:00
Morris Tseng
2c4935cb1c Bug 1092888 - Part 2: Check pointer of FrameSelection and Selection is valid. r=roc 2014-11-10 02:04:00 +01:00
Morris Tseng
bc63e6b35c Bug 1092888 - Part 1: Remove preference for selection carets with non-editable fields support. r=roc 2014-11-10 02:03:00 +01:00
David Anderson
028b163679 Add APZ handling for desktop scroll wheel events. (bug 1086162 part 1, r=kats) 2014-11-17 20:56:18 -08:00
Seth Fowler
a886c715d8 Bug 1098202 (Part 1) - Rename imgINotificationObserver handlers to be consistent with the notifications they handle. r=tn
--HG--
extra : rebase_source : 991d277afba4826ed403b74bbcbb9408b3dac0cc
2014-11-17 14:29:56 -08:00
Seth Fowler
f4a8da7b65 Bug 1098652 - ImageLoader::OnStopFrame should be called when we get FRAME_COMPLETE, not LOAD_COMPLETE. r=tn
--HG--
extra : rebase_source : 5ab4ec002657890d615cbd6aa23da98ce8ade1d1
2014-11-17 14:29:56 -08:00
Jeff Gilbert
ce5cd8ab32 Bug 1096633 - Allow webgl/experimental-webgl aliasing. - r=kamidphish 2014-11-10 15:16:50 -08:00
L. David Baron
670f12a2d1 Bug 1087536 patch 3 - Use new no-selector-matching hints for animation restyles. r=birtles
This depends on bug 1086937 patch 1 because it requires that
ResolveStyleWithReplacement support eRestyle_ChangeAnimationPhase on
::before and ::after pseudo-elements.

It also depends on patch 1 of this bug for the reasons described in
patch 1's commit message.

This is needed for bug 960465 so that we can use these hints to detect
whether pending restyles include restyles other than those for
animations.  In other words, patches for bug 960465 (or perhaps a
dependent bug that lands before it) will require that all animation
restyles use an animation-specific nsRestyleHint.

It is also, on its own, a performance improvement for animations and
transitions, since we will stop rerunning selector matching on the
animating element during the progress of the animations or transitions.
Once we remove eRestyle_ChangeAnimationPhase the performance improvement
will even become slightly better.

Note that the eRestyle_ChangeAnimationPhase is needed in some cases
because we use PostRestyleForAnimation in the non-animation-restyle
phase when we have a style rule that we need to add during the animation
restyle phase.  (It's not needed during the progress of the animation,
though.  But hopefully both eRestyle_ChangeAnimationPhase will go away
soon, after bug 960465.  And hopefully the way we tick animations will
also change to look more like the animation-only restyle, but without
the main-thread-suppressed (throttled) animations.)
2014-11-17 11:39:14 -08:00
L. David Baron
54b88f7449 Bug 1087536 patch 2 - Assert when nsStyleSet::RuleNodeWithReplacement finds the rules in an incorrect order. r=birtles
I confirmed that this assertion fires (along with the other failures)
when running layout/style/test/test_transitions_events.html with patch 3
but not patch 1.
2014-11-17 11:39:14 -08:00
L. David Baron
18f4e801e6 Bug 1087536 patch 1 - Record the transition manager's cover rule as in the eTransitionSheet level of the cascade so that ResolveStyleWithReplacement replaces it correctly. r=birtles
Without this patch, patch 3 will cause bugs where we'll never remove the
cover rule we create during the process of starting a transition.  This
won't actually be problematic during the transition, since the
transition will overwrite it, but once the transition completes, the
cover rule will still be around, and we'll be stuck with the
pre-transition value instead of the post-transition value.

It's possible it also fixes existing bugs prior to the patch series in
this bug.
2014-11-17 11:39:14 -08:00
Jonathan Kew
7956e70842 Bug 1095933 - Apply horizontal writing-mode to MathML content. r=smontagu 2014-11-17 08:49:38 +00:00
Jonathan Kew
bc30822def Bug 1093684 - part 3 - Replace |bottom| with |block-end| in a bunch of comments, and rename mCarriedOutBottomMargin to mCarriedOutBEndMargin. r=smontagu 2014-11-17 08:49:38 +00:00
Jonathan Kew
4ec5862839 Bug 1093684 - part 2 - Handle vertical writing mode when computing overflow areas in nsBlockFrame. r=smontagu 2014-11-17 08:49:37 +00:00
Jonathan Kew
52835852c0 Bug 1093684 - part 1 - Make nsGfxScrollFrame aware of vertical writing modes. r=smontagu 2014-11-17 08:49:37 +00:00
Brian Birtles
aa575c832b Bug 1081007 - Fix relationship between Play/PlayFromJS/PlayFromStyle etc.; r=dholbert
The existing relationship between the particular versions of
AnimationPlayer::Play* (particularly in the CSSAnimationPlayer) subclass are
confusing because, for example, CSSAnimationPlayer::PlayFromStyle needs to be
careful to *not* call Play on CSSAnimationPlayer, but only on the parent
object (since otherwise we reset the sticky pause behavior).

This patch reworks this relationship by adding a protected DoPlay method that
performs the common pausing behavior. Play/PlayFromJS/PlayFromStyle then add
flushing, sticky pausing etc. as necessary.

This patch also removes the UpdateFlags enum and parameters previously used to
control whether we forced an update to style. This is no longer necessary since
we no longer call 'Play' from style. Instead we make Play always post restyles.

If we come across a case where we want to call Play and *not* post restyles, we
can re-add the flags then.

Roughly the same arrangement is true for Pause except that we don't currently
flush styles for CSS animations in PauseFromJS since it currently won't make any
observable difference.
2014-11-17 13:46:01 +09:00
Brian Birtles
18c294458c Bug 1073336 part 16 - Factor out animation-layer related information to a common database; r=dbaron 2014-11-17 13:46:00 +09:00
Brian Birtles
50564d30cb Bug 1073336 part 14c - Check for a null style refresh time in AnimationPlayerCollection::CanThrottleTransformChanges; r=dbaron
We often set mStyleRuleRefreshTime to null to ensure styles get updated.
However, CanThrottleTransformChanges doesn't check for this case and blindly
does subtraction using this value.

Until now we've got away with this but now that we set mStyleRuleRefreshTime to
null when making changes via the API this case crops up in different
circumstances and we can trip over it.

This patch simply adds a null check before using mStyleRuleRefreshTime in
CanThrottleTransformChanges. All other cases where we operate on
mStyleRuleRefreshTime check for null.
2014-11-17 13:46:00 +09:00
Brian Birtles
d5678b7ad6 Bug 1073336 part 14b - Make ElementRestyler detect changes to the animation generation; r=dbaron
For some kinds of changes we need to update the layer tree even though there is
no change to style. For example, if an animation is paused via the Web
Animations API, we need to remove the animation from the layer even though the
style will not change.

This patch detects such changes by making ElementRestyler check for an
out-of-date animation generation on layers. This is complicated by the fact that
we currently maintain *two* animation generation numbers: one for the set of
animations and one for the set of transitions, but we only have *one* animation
generation number on each layer. This is a known issue (bug 847286).

As a result, until bug 847286 is fixed, we need to be careful to compare against
the greater of the two numbers.
2014-11-17 13:46:00 +09:00
Brian Birtles
dc417c2fec Bug 1073336 part 14a - Update animation generation when changing animations via the API; r=dbaron 2014-11-17 13:45:59 +09:00
Brian Birtles
9acbbb6122 Bug 1073336 part 11 - Move GetAnimationPlayers to base CommonAnimationManager class; r=dbaron
nsAnimationManager provides GetAnimationPlayers while nsTransitionManager
provides GetElementTransitions. Both perform the same function, namely, fetching
(and optionally creating if it does not exist) the AnimationPlayerCollection for
the specified element/pseudo. Furthermore, both take the same arguments.

This patch aligns the method names and makes this a virtual method on the base
class CommonAnimationManager so that it can be used generically from a pointer
to a CommonAnimationManager.
2014-11-17 13:45:59 +09:00
Brian Birtles
bb9a6c6bf6 Bug 1073336 part 10 - Add AnimationPlayer::GetAnimationManager(); r=dbaron
This patch introduces an abstract method to AnimationPlayer to fetch the manager
object associated with the player. This method is implemented separate by
CSSAnimationPlayer and CSSTransitionPlayer to return the nsAnimationManager or
nsTransitionManager accordingly.
2014-11-17 13:45:58 +09:00
Brian Birtles
9efcdfde21 Bug 1073336 part 7 - Move style flushing to CSSAnimationPlayer and CSSTransitionPlayer; r=dbaron
Previously AnimationPlayer::Play() and AnimationPlayer::PlayState() would flush
styles as part of their operation. This, however, is only needed when the player
corresponds to a CSS Animation or CSS Transition. Now that we have concrete
subclasses for each of these cases we can move style flushing to the subclasses
and remove it from the base class (which is expected to be shared with
animations that are not dependent on style).
2014-11-17 13:45:58 +09:00
Brian Birtles
5f35f63800 Bug 1073336 part 6 - Add CSSTransitionPlayer; r=dbaron
In order to be able to find the collection a player belongs to from its source
content, we first need to be able to determine which manager--the animation
manager or transition manager--to look up.

We eventually plan to push transition event dispatch down to a CSS
transitions-specific subclass of AnimationPlayer, so this seems like a suitable
point to introduce this class.

Using this subclass we can define a virtual GetManager method that will
return the appropriate animation/transition manager for the player.
2014-11-17 13:45:57 +09:00
Brian Birtles
371d30ed6a Bug 1073336 part 5 - Add AnimationPlayerCollection::PlayerUpdated; r=dbaron 2014-11-17 13:45:57 +09:00
Brian Birtles
e8b261ac02 Bug 1073336 part 4 - Add CommonAnimationManager::CollectionUpdated; r=dbaron
Adds a method to the animation manager base class to handle changes to one of
its associated collections.
2014-11-17 13:45:57 +09:00
Brian Birtles
b8775a0cfa Bug 1073336 part 3b - Add nsPresContext::ClearLastStyleUpdateForAllAnimations; r=dbaron 2014-11-17 13:45:57 +09:00
Brian Birtles
3ba1306512 Bug 1073336 part 2 - Call CheckNeedsRefresh from within EnsureStyleRuleFor; r=dbaron
Now that CheckNeedsRefresh is a member of the base class,
CommonAnimationManager, we no longer need to rely on callers of
AnimationPlayerCollection::EnsureStyleRuleFor to remember to call this method
but can do it automatically.
2014-11-17 13:45:56 +09:00
Brian Birtles
6435d45744 Bug 1073336 part 1 - Move CheckNeedsRefreshes to CommonAnimationManager; r=dbaron
In order to add AnimationPlayerCollection::NotifyPlayerUpdated, collections
need a way of updating their managers to inform them that their mNeedsRefreshes
flag has changed and hence the manager may need to resume observing the refresh
driver.

Currently, only nsAnimationManager makes use of mNeedsRefreshes and provides
a CheckNeedsRefresh method. In order to allow AnimationPlayerCollection to
operate independently of the type of manager it is attached to (and because
there's a lot of similar code here that we eventually want to move to a common
manager anyway), this patch moves CheckNeedsRefreshes and associated
machinery to CommonAnimationManager.
2014-11-17 13:45:56 +09:00
Phil Ringnalda
5cdbb8940e Backed out 2 changesets (bug 1084183) for b2g crashes
Backed out changeset a7e75614e955 (bug 1084183)
Backed out changeset af96c149900b (bug 1084183)
2014-11-16 20:21:55 -08:00
Xidorn Quan
7f8acfe395 Bug 1084183 - Test for text-decoration for ruby frames. r=dbaron 2014-11-17 10:26:45 +11:00
Xidorn Quan
06a84fbe4a Bug 1084183 - Propagate text decoration to ruby frames. r=dbaron 2014-11-17 10:26:39 +11:00
Jonathan Watt
cd03927dbc Bug 1094063 follow-up - Remove yet more fuzzing from reftests that don't need it any more. 2014-11-13 15:11:42 +00:00
Jonathan Watt
82831ccc12 Bug 1097438 - Restore the use of AntialiasMode::NONE in nsCSSBorderRenderer::DrawBorders(). r=roc 2014-11-12 02:56:12 +00:00