Commit Graph

8807 Commits

Author SHA1 Message Date
Kyle
1f77d92629 Bug 1178971 - Changed line snapping behaviour depending on even/odd-ness of stroke width. r=mstange 2015-07-07 14:56:23 -04:00
Brian Birtles
ad5ac012b2 Bug 1150810 part 6 - Rename Timeline() to GetTimeline(); r=smaug
This is in anticipation of adding Animation::SetTimeline(). Once we set the
timeline out of band, there's a chance that getting it could return null so
this patch makes the WebIDL and method name reflect that.
2015-04-28 16:25:07 +09:00
Brian Birtles
d3efa42100 Bug 1150810 part 5 - Handle Timeline() returning null; r=jwatt 2015-04-28 12:49:12 +09:00
Brian Birtles
3b62eec6f6 Bug 1150810 part 1 - Move DocumentTimeline methods up to AnimationTimeline; r=jwatt
This is not strictly necessary yet but we will want to implement methods
like GetAnimations() on the base class, AnimationTimeline, so we may as well do
that now rather than adding that code to DocumentTimeline and moving it later.
2015-04-28 11:17:10 +09:00
Benoit Girard
7bb9c7cdd7 Bug 1103106 - Change will-change to be first-come, first-served. r=roc 2015-07-06 16:32:53 -04:00
Cameron McCormack
46d4c64434 Bug 1177563 - Test that we share agent rule processors across different documents. r=dbaron 2015-07-08 15:57:31 +10:00
Carsten "Tomcat" Book
8c7c890ce6 Backed out changeset 42e80a07acd6 (bug 1177563) for bustage on a CLOSED TREE 2015-07-08 09:44:16 +02:00
Cameron McCormack
383dc1b8dc Bug 1177563 - Test that we share agent rule processors across different documents. r=dbaron 2015-07-08 15:57:31 +10:00
Ryan VanderMeulen
18afe1cb5f Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-07 13:38:10 -04:00
Hiroyuki Ikezoe
a98fa02cfd Bug 1175751 - Apply playback rate to compositor animations. r=bbirtles 2015-07-06 19:05:00 +02:00
Emanuel Hoogeveen
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Phil Ringnalda
ab06bdf2b9 Merge m-c to m-i 2015-07-03 19:15:06 -07:00
Juan Gomez
21d73728f3 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Kevin Wern
b4ac13dd45 Bug 1120683 - Properly handle unapplying 3D projective transforms throughout APZ code. r=botond
Whenever the inverse of a 3D projective transform is applied to a point, only use the result if it has a positive w-coordinate.

When transforming by a matrix that we know should be 2D, assert to that effect.

Transformations of rectangles (as opposed to points) remain to be audited.
2015-07-03 15:06:26 -04:00
dominique vincent
3d095d1f4a Bug 1176453 - Do not increment the cluster counter for input elements with label. r=kats 2015-07-02 21:16:25 +02:00
Markus Stange
34c169f5e7 Bug 1178745 - Respect scroll clips when flattening. r=roc 2015-07-02 17:04:14 -04:00
Markus Stange
e9f76277b5 Bug 1178745 - Move some code around. r=roc 2015-07-02 17:00:17 -04:00
Markus Stange
481cbb609c Bug 990974 - Treat carets in async scrolled scrollframes differently from non-caret content. r=roc
This makes those caret display items not share a layer with any other display items, and uses a different async scroll frame clip for that layer.
2015-07-02 15:02:34 -04:00
Markus Stange
ec0360b2c9 Bug 990974 - Give PaintedLayerDataTree a generic way of restricting a PaintedLayer to exactly one display item. r=roc 2015-07-01 22:08:20 -04:00
Markus Stange
f6818bbaa8 Bug 990974 - Add a flag to ComputeFrameMetrics so that a different clip can be returned for the caret and non-caret content. r=roc 2015-07-02 13:42:34 -04:00
Lee Salzman
a7fb589b65 Bug 771367 - Refactor GetAnimationContent and GetAnimationCollection into CommonAnimationManager to hide atom and pseudo-element voodoo. r=bbirtles 2015-07-01 14:43:13 -04:00
Lee Salzman
c813b6b2e2 Bug 771367 - Support compositor animation for pseudo-elements. r=dbaron 2015-07-01 11:55:51 -04:00
Xidorn Quan
6af3e1136f Bug 1168705 part 1 - Add mechanism for dispatching events with refresh driver tick. r=roc,khuey 2015-07-02 19:12:31 +10:00
David Anderson
7edbb3c9d2 Bug 1148582 - Recycle mask layers attached to FrameMetrics. r=mattwoodrow 2015-06-21 12:28:10 -04:00
David Anderson
a3ffcf73bf Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow 2015-06-21 12:27:31 -04:00
David Anderson
3a3beda6fb Bug 1148582 - Factor mask layer creation out of ContainerState::SetupMaskLayer. r=mstange 2015-06-20 19:47:57 -04:00
Robert O'Callahan
292adc3c7d Bug 1143575. Replace ImageContainer Lock methods with simplified AutoLockImage. r=nical 2015-03-27 12:07:53 +13:00
Olli Pettay
193f079d4c Bug 1144418 - target events for text nodes in shadow dom to the nearest element in the flattened tree. r=wchen 2015-07-07 01:56:10 +03:00
Jeff Muizelaar
c0069f01f3 Bug 1180966. Remove code that made no sense. r=mstange
Borders are rarely a single app unit tall and this code is
from long long ago (bug 41262)
2015-07-06 15:39:42 -04:00
Markus Stange
26c466292e Back out bug 1148582 for static analysis bustage. 2015-07-01 01:20:59 -04:00
David Anderson
e18ceb4c2a Bug 1148582 - Recycle mask layers attached to FrameMetrics. r=mattwoodrow 2015-06-21 12:28:10 -04:00
David Anderson
48bab4c4b7 Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow 2015-06-21 12:27:31 -04:00
David Anderson
173e0f1423 Bug 1148582 - Factor mask layer creation out of ContainerState::SetupMaskLayer. r=mstange 2015-06-20 19:47:57 -04:00
Maksim Lebedev
f645751ce6 Bug 1151152 - Change behavior when pointer is dragged out of the document. r=smaug 2015-06-15 10:27:00 -04:00
Nathan Froyd
46d6f38e68 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Kartikaya Gupta
96b7d00f58 Bug 1178842 - Fix unified build for nsDisplayList.cpp when a new file is added to layout/base. r=mstange 2015-06-30 14:49:03 -04:00
Kartikaya Gupta
774bcfd6e4 Bug 1178833 - Fix for unified builds when a new file is added to layout/base. r=mstange 2015-06-30 14:49:03 -04:00
Kartikaya Gupta
a91fce0ff8 Bug 1177651 - Add areas covered by MozMousePixelScroll listeners to the dispatch-to-content region. r=dvander 2015-06-30 06:43:08 -04:00
Michael Layzell
49a1564da6 Bug 1167406 - Mark nsRootPresContext::RunWillPaintObservers::mPresContext as MOZ_NON_OWNING_REF. r=dbaron 2015-06-17 11:48:00 +02:00
L. David Baron
f3534f2583 Bug 1122526 patch 4 - Use the nearest widget size as the maximum size for an animated layer, in case it's a popup larger than the toplevel window. r=roc 2015-06-29 16:46:17 -07:00
L. David Baron
68cb38a502 Bug 1122526 patch 3 - Correctly account for transform:none when finding maximum scale for a transform animation. r=roc
The patch works by not handling transform:none specially at all, which
will lead to a scale of 1 (instead of the current 0).

This is the patch that actually fixes the original problem reported in
bug 1122526.  This patch also fixes bug 1165196.
2015-06-29 16:46:17 -07:00
L. David Baron
e4e0a19ef2 Bug 1122526 patch 2 - Only do OMTA transform scale choosing for layers that are for transform display items. r=roc
This fixes the scaling choice when we have more than one layer for the
same element, e.g., because it animates both transform and opacity.
2015-06-29 16:46:16 -07:00
L. David Baron
ebf43e0ea8 Bug 1122526 patch 1 - Factor in the scale from ancestors when computing scale for layer with OMT animation of transform. r=roc 2015-06-29 16:46:16 -07:00
Daniel Holbert
30f9d9982c Bug 1177925: Use range-based "for" loops for nsFrameList iteration, in various places in layout. r=tn 2015-06-29 13:02:21 -07:00
Ryan VanderMeulen
413b6183ed Backed out changeset 9b51e066a4e6 (bug 1151152) for various pointerevent test failures. 2015-06-29 11:44:36 -04:00
Maksim Lebedev
cbb7b8d347 Bug 1151152 - Change behavior when pointer is dragged out of the document. r=smaug 2015-06-15 10:27:00 -04:00
Lee Salzman
d6a4a84005 Bug 633097 - Fix jittering animated text by disallowing flattening into a container layer that has animated text. r=mwoodrow 2015-06-26 18:13:50 -04:00
Cameron McCormack
f1d0bf37f6 Bug 1161413 - Part 4: Move FontFaceSet ownership from nsPresContext to nsIDocument. r=smaug 2015-06-27 11:39:54 +10:00
Cameron McCormack
c05d48f6d0 Bug 1161413 - Part 1: Create FontFaceSet with a document rather than a pres context. r=jdaggett 2015-06-27 11:39:54 +10:00
Andrea Marchesini
1a9521dd83 Bug 1177764 - Use nsTObserverArray in APZCCallbackHelper, r=kats, r=dholbert 2015-06-26 13:20:10 -07:00
Cameron McCormack
702affa6ae Bug 1170888 - Restyle the document in EnsureSafeToHandOutCSSRules if we previously cloned sheet inners outside of that method. r=bzbarsky 2015-06-26 13:49:58 +10:00
Cameron McCormack
47cfbf336f Bug 1169512 - Add and remove quirk.css rather than enable and disable a clone of it. r=jwatt 2015-06-26 13:49:58 +10:00
Ryan VanderMeulen
55b2086097 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
98461fc4a4 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Lee Salzman
f7f17d5e38 Bug 1033375 - Nudge simple linear gradients with hard stops to half-pixel gradient. r=nical 2015-06-23 20:50:36 -04:00
Ted Clancy
b54e64860d Bug 1164693 - Part 2: Frames in a non-bidi paragraph with newline shouldn't be marked as bidi. r=smontagu 2015-06-05 21:46:49 -04:00
Ted Clancy
100cf0c0b0 Bug 1164693 - Part 1: Directional caret should point in caret direction in bidi paragraphs. r=smontagu 2015-06-05 21:44:54 -04:00
Cameron McCormack
407dd2b5e3 Bug 804975 - Part 3: Support conditional cached reset structs on rule nodes. r=dbaron 2015-06-23 11:48:18 +10:00
Cameron McCormack
46ef4eb2da Bug 804975 - Part 2: Add a RuleNodeCacheConditions class and use it instead of a boolean canStoreInRuleTree during style computation. r=dbaron 2015-06-23 11:48:18 +10:00
Jonathan Kew
d3a148b482 Bug 1174711 - patch 1 - Rename nsIPercentHeightObserver to nsIPercentBSizeObserver, and update related frame methods to match. r=dholbert 2015-06-22 10:33:34 +01:00
L. David Baron
35f53c3dbe Bug 1169440 patch 7 - Pass parameter determined from style hint to FrameNeedsReflow. r=dholbert 2015-06-20 21:54:15 -07:00
L. David Baron
e452498318 Bug 1169440 patch 6 - Add parameter to nsIFrame::FrameNeedsReflow to control handling of target being a reflow root. r=dholbert 2015-06-20 21:54:15 -07:00
L. David Baron
bc28c70708 Bug 1169440 patch 3 - Add nsChangeHint_ReflowChangesSizeOrPosition. r=heycam 2015-06-20 21:54:15 -07:00
L. David Baron
6f0d2d8830 Bug 1169440 patch 1 - Add bitwise operators to nsChangeHint. r=heycam
I'm fed up with having to use the NS_*Hint functions, and I also have
trouble reading/writing some of them since I don't remember the order of
parameters.

(At some point I think we should convert existing callers, but I don't
plan to do that here.)
2015-06-20 21:54:15 -07:00
Markus Stange
855fe764b6 Bug 1165185 - Nudge layer prescale to integers. r=roc 2015-06-16 17:02:58 -04:00
Markus Stange
0528311764 Bug 1165185 - Try to avoid invalidations when scrolling transformed elements. r=roc 2015-06-15 19:20:59 -04:00
Ms2ger
909e2c851d Bug 1172536 - Stop using for each loops in layout; r=roc
These are SpiderMonkey-proprietary legacy feature which has been deprecated
and is expected to be removed in due course.

This commit also fixes a number of bugs in test_bug708874.xul. In particular,
because of the semicolon after the for head, the (alleged) loop body was only
executed for the final element of the array ({}), and because each of the
functions under test threw an exception, only the first call was executed.

I do not know of a way to test the changes in frame-verify.js, so I can't
guarantee they actually work.
2015-06-20 09:16:51 +02:00
Carsten "Tomcat" Book
7c70f25f96 Backed out changeset 1a0729e5b901 (bug 1151152) for m1 test failures in test_pointerevent_pointerleave_descendant_over-manual.html on a CLOSED TREE 2015-06-19 12:04:52 +02:00
Maksim Lebedev
d2310bcbb7 Bug 1151152 - Change behavior when pointer is dragged out of the document. r=smaug 2015-06-15 10:27:00 +02:00
Milan Sreckovic
3096add467 Bug 1019063 - Check for ::CreateDCW failing when printing. r=dvander 2015-06-18 08:18:00 +02:00
David Anderson
8869a110ac Add an observer service notification for the first widget paint message. (bug 1173117 part 2, r=roc) 2015-06-18 13:42:39 -07:00
Nicholas Nethercote
dfd3d90f90 Bug 1174631 (part 4) - Replace nsFrameManager's uses of PL_DHashTableEnumerate() with PLDHashTable::Iterator. r=dholbert. 2015-06-16 21:09:39 -07:00
Daniel Holbert
391394d86a Bug 1175245: Convert nsRefreshDriver.cpp to use range-based "for" loops. r=tn 2015-06-17 14:36:40 -07:00
Kartikaya Gupta
df17113b89 Bug 1055557 - Add a ZoomConstraintsClient class to manage pushing zoom constraints updates to the APZ code. r=botond
Original patch by Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>.
2015-06-17 12:32:42 -04:00
Maksim Lebedev
ec51bd8a62 Bug 1162990 - Add test for check pointerleave event behavior. r=smaug 2015-06-17 01:54:00 -04:00
Botond Ballo
5d74fc0faa Bug 1173580 - Record content descriptions in APZ test data. r=kats 2015-06-10 20:47:56 -04:00
Eric Rahm
94650992d1 Bug 1175289 - Part 2: Disable "Subdocument container has no frame" warning by default. r=mats 2015-06-16 16:37:16 -07:00
Eric Rahm
5a3069efd4 Bug 1175289 - Part 1: Add LAYOUT_WARNING. r=mats 2015-06-16 16:37:14 -07:00
Daniel Holbert
ad8b5d68fa Bug 1175228: Skip profiler_tracing call for requestAnimationFrame callbacks, if we don't have any callbacks. r=BenWa 2015-06-16 12:56:10 -07:00
Kartikaya Gupta
6d5a1024f2 Bug 1175217 - Fix non-unified (and some unified) builds for nsDisplayListInvalidation.cpp. r=mstange 2015-06-16 15:16:30 -04:00
Michael Layzell
f15adea379 Bug 1167402 - Mark nsPresContext::mLinkHandler as MOZ_NON_OWNING_REF. r=dbaron 2015-06-16 08:30:00 -04:00
Michael Layzell
86fe829ee9 Bug 1168180 - Mark nsPresContext::mShell as MOZ_NON_OWNING_REF. r=dbaron 2015-06-16 08:25:00 -04:00
Michael Layzell
b3336ad2f9 Bug 1168179 - Mark nsPresContext::mMedium as MOZ_UNSAFE_REF. r=dbaron 2015-06-16 08:17:00 -04:00
Ryan VanderMeulen
fcaa1edd74 Merge inbound to m-c. a=merge 2015-06-16 14:38:49 -04:00
Ryan VanderMeulen
5fa5a9bd1b Backed out changeset cc153acac9df (bug 1169502) for test_leaf_layers_partition_browser_window.xul permafail on Win7/8 debug.
CLOSED TREE
2015-06-16 13:41:59 -04:00
Carsten "Tomcat" Book
9a4e1b53a6 merge mozilla-inbound to mozilla-central a=merge 2015-06-16 16:08:27 +02:00
Carsten "Tomcat" Book
d786545396 Merge mozilla-central to mozilla-inbound 2015-06-16 16:24:17 +02:00
Ting-Yu Lin
1651791a48 Bug 1174600 - Fix first AccessibleCarets jumps to top of the screen when dragging. r=mtseng
When the second AccessibleCaret is out of scrollport, its logical
position becomes (0, 0). Therefore we should adjust the dragging point
for first AccessibleCaret only if dragDownBoundaryY > 0.
2015-06-14 22:40:00 +08:00
Cameron McCormack
4c4ef69a5a Bug 1169514 - Part 3: Use a shared preference style sheet across all pres contexts. r=jwatt 2015-06-16 11:34:48 +10:00
Cameron McCormack
99d3c38ba7 Bug 1169514 - Part 2: Move noframes rules from the preferences style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Cameron McCormack
d4b22a556a Bug 1169514 - Part 1: Move noscript rule from the preference style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Eric Rahm
346bd7fed6 Bug 1173858 - Part 1: Add log module for layout. r=dholbert
Add a log module for use by layout. An analog to NS_WARN_IF_FALSE is provided
that has the same behavior as NS_WARN_IF_FALSE: it's debug only and emits a
message prefixed with '[pid] WARNING', includes the condition being checked,
file name and line number.
2015-06-15 16:36:09 -07:00
Markus Stange
2e98c692ce Bug 1174332 - Correctly compute box-shadow bounds on themed frames with overflow. r=roc 2015-06-15 15:02:01 -04:00
Markus Stange
f92f1597a4 Bug 1169502 - Simplify visible regions to tiles, not to a number of rects. r=jrmuizel, r=roc 2015-06-10 15:54:20 -04:00
David Parks
a72dd8f316 Bug 1125325 - Store TabParents with their WindowRoot. r=smaug
nsContentUtils::CallOnAllRemoteChildren calls a callback on all tabs
connected to a given window but it has only worked in Firefox e10s tabs.
This patch adds a list of (weak) references to each top-level document's
WindowRoot so that e.g. the nsPresContext can access them instead of
using nsContentUtils.  This provides a solution to the problem of finding remote PBrowsers generally.
2015-06-07 22:39:39 -07:00
David Parks
8e0d7e75c5 Bug 1125325 - Make TabParent/TabChild UpdateDimensions messages aware of the display scale. r=kats
When connecting a lowdpi external monitor on hidpi mac, TabChild gets an
UpdateDimensions call, followed by a UIResolutionChanged call.  After
the UpdateDimensions call, the content process is in an incorrect state
where it has the dimensions of the new display and scale of the old one.
After the UIResolutionChanged message, the values are again consistent.
In the interim, reflow resizes layers based on the incorrect (old) scale
and subsequently uses those incorrect values when the new scale comes
in.  This patch normalizes the message parameters by dividing by scale
(the result is what OS X calls point coordinates) so that this doesn't happen.
2015-06-07 22:39:28 -07:00
Matt Brubeck
7c3743b680 Bug 1173415 - Fix incorrect mask used for nsBidi::mFlags [r=smontagu]
LRI and RLI are values of type DirProp (uint8_t).  The DIRPROP_FLAG macro is
needed to convert them to bits in the 32-bit `flags` variable.
2015-06-11 10:10:48 -07:00
Botond Ballo
b9201d6d43 Bug 1158424 - Rename FrameMetrics::mIsRoot to mIsRootContent. r=kats 2015-06-08 16:01:26 -04:00
Wes Kocher
a557d0fae7 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Kartikaya Gupta
93f272c174 Back out 3 csets from bug 1125325 for introducing bug 1173224. r=me 2015-06-10 15:55:34 -04:00
dominique vincent
767494436e Bug 1171731 - Ignore elements with 0 font size in cluster detection. r=kats 2015-06-05 16:25:16 +02:00
Shelly Lin
da24650cb8 Bug 1113562 - Expected delay time of tasks should not be the latency of those kind. r=sinker 2015-06-16 10:57:19 +08:00
Mats Palmgren
e4e5644cce Bug 1174450 part 10b - Rename IntrinsicForWM to IntrinsicForAxis and make it take a PhysicalAxis instead of a WritingMode. r=jfkthame 2015-06-16 11:21:04 +00:00
Mats Palmgren
72cad70a16 Bug 1174450 part 10 - Use the right IntrinsicISizeOffsetData for the given writing-mode (this is what fixes the error reported in this bug). r=jfkthame 2015-06-16 11:21:04 +00:00
Mats Palmgren
2656a75549 Bug 1174450 part 9b - Make AddIntrinsicSizeOffset take a PhysicalAxis instead of a WritingMode. r=jfkthame 2015-06-16 11:21:04 +00:00
Mats Palmgren
d38f93b34e Bug 1174450 part 9 - Remove the nsRenderingContext* param from Intrinsic*SizeOffsets methods since it's unused. r=jfkthame 2015-06-16 11:21:04 +00:00
Mats Palmgren
56774ea739 Bug 1174450 part 7 - Move most of IntrinsicForContainer into a new method, IntrinsicForWM, that takes the writing-mode to use as a parameter. r=jfkthame
IntrinsicForContainer(...) is implemented as
IntrinsicForWM(aFrame->GetParent()->GetWritingMode(), ...).
2015-06-16 11:21:04 +00:00
Mats Palmgren
d6b496cfc3 Bug 1174450 part 6 - Add a doc comment for AddIntrinsicSizeOffset and some minor code style fixes. r=jfkthame 2015-06-16 11:21:03 +00:00
Mats Palmgren
f068d1ecce Bug 1174450 part 5 - Remove the duplicated min/max calculation in AddIntrinsicSizeOffset, pass a pointer to the calculated absolute values, if any, from IntrinsicForContainer instead. r=jfkthame 2015-06-16 11:21:03 +00:00
Mats Palmgren
23f65fc185 Bug 1174450 part 4 - Rename the remaining AddIntrinsicSizeOffset params to follow the aName standard. Also rename local var 'w' to 'size' since it may be either a width or height. r=jfkthame 2015-06-16 11:21:03 +00:00
Mats Palmgren
eeeca8baa9 Bug 1174450 part 3 - Rename AddIntrinsicSizeOffset local vars from xISize to xSize since the code is generic and handles both ISizes and BSizes. r=jfkthame 2015-06-16 11:21:03 +00:00
Mats Palmgren
0eec58f093 Bug 1174450 part 2 - Rename most AddIntrinsicSizeOffset params to follow the aName standard. r=jfkthame 2015-06-16 11:21:03 +00:00
Mats Palmgren
b6ef4d13a6 Bug 1174450 part 1 - Split IntrinsicForContainer in two parts; move the latter part to a new function, AddIntrinsicSizeOffset, which applies the padding/border/margin from the given IntrinsicISizeOffsetData. r=jfkthame 2015-06-16 11:21:03 +00:00
dominique vincent
7e986a5370 Bug 1172488 - Small clickable text nodes are wrongly detected in cluster detection process. r=kats 2015-06-12 22:05:21 +02:00
Andrew Comminos
9ec46b3612 Bug 1171972 - Don't expect scrollbar buttons on GTK themes. r=karlt 2015-06-05 09:34:00 -04:00
Timothy Nikkel
6fe37353a1 Bug 1172310. Don't add viewport frame bounds to the layer event regions because they are never the result of hit testing. r=roc
For regular, display list based, hit testing viewport frames never add any items to the display list. So are never "hit". Layer event regions should follow this same path.

The code that this replaces was a partial, incorrect, fix for this problem (from bug 1121033).
2015-06-08 13:30:40 -05:00
David Parks
177e150b29 Bug 1125325 - Store TabParents with their WindowRoot. r=smaug
nsContentUtils::CallOnAllRemoteChildren calls a callback on all tabs
connected to a given window but it has only worked in Firefox e10s tabs.
This patch adds a list of (weak) references to each top-level document's
WindowRoot so that e.g. the nsPresContext can access them instead of
using nsContentUtils.  This provides a solution to the problem of finding remote PBrowsers generally.
2015-06-07 22:39:39 -07:00
David Parks
67c72084cc Bug 1125325 - Make TabParent/TabChild UpdateDimensions messages aware of the display scale. r=kats
When connecting a lowdpi external monitor on hidpi mac, TabChild gets an
UpdateDimensions call, followed by a UIResolutionChanged call.  After
the UpdateDimensions call, the content process is in an incorrect state
where it has the dimensions of the new display and scale of the old one.
After the UIResolutionChanged message, the values are again consistent.
In the interim, reflow resizes layers based on the incorrect (old) scale
and subsequently uses those incorrect values when the new scale comes
in.  This patch normalizes the message parameters by dividing by scale
(the result is what OS X calls point coordinates) so that this doesn't happen.
2015-06-07 22:39:28 -07:00
Ting-Yu Lin
4d5955e2a9 Bug 1170084 - Dispatch CaretStateChangedEvent via AsyncEventDispatcher. r=mtseng
We should not dispatch an event if it is not safe to run script since
the event handlers might be implemented by Javascript.
To fix this, we always use AsyncEventDispatcher to dispatch the event.
2015-06-05 15:03:47 +08:00
Simon Montagu
76702f81c3 Bug 1147834: Use abstract coordinates in nsHTMLReflowState, r=jfkthame 2015-06-04 03:43:02 -07:00
Phil Ringnalda
a37ac014f2 Back out 60963a019905 (bug 1171371) for still crashing rc1 in testAboutPage
CLOSED TREE
2015-06-04 22:05:50 -07:00
Seth Fowler
d9542e855b Bug 1171371 - On memory-pressure, remove any stale images from the visible images list. r=tn 2015-06-04 17:37:58 -07:00
Ryan VanderMeulen
30d084c44b Backed out changeset 061363215959 (bug 1171371) for Android testAboutPage crashes.
CLOSED TREE
2015-06-04 17:00:56 -04:00
David Anderson
53244f3c1b Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange) 2015-06-04 16:51:10 -04:00
Seth Fowler
a60da1f284 Bug 1171371 - On memory-pressure, remove any stale images from the visible images list. r=tn 2015-06-04 11:08:19 -07:00
Daniel Holbert
800e9e74fd Bug 1171158: Convert some code to use range-based for loops in nsPresShell.cpp. r=mats 2015-06-03 21:13:37 -07:00
Eric Rahm
29f00ac208 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm
56a02efd99 Bug 1165515 - Part 7: Convert PR_LOG_DEBUG + 1 to PR_LOG_VERBOSE. rs=froydnj
Used the command: |sed -E -i -e 's/PR_LOG_DEBUG\s*\+\s*1/PR_LOG_VERBOSE/g'|
2015-06-03 15:22:32 -07:00
Eric Rahm
f3d0db1203 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Eric Rahm
87b99d59f9 Bug 1170642 - Silence nsDocumentViewer::GetInImage warnings. r=ehsan 2015-06-03 08:22:04 -07:00
Andrew Comminos
d48cd04b30 Bug 1170158 - Apply GTK2 reftest exceptions to GTK3. r=karlt 2015-06-02 13:47:00 -04:00
Nicholas Nethercote
94baddf190 Bug 1170416 (part 5) - Remove PLDHashTable::IsInitialized(). r=froydnj.
|mOps| is always non-null now, and there's no longer any distinction between
and uninitialized and initialized table. Yay.
2015-05-20 21:23:55 -07:00
Nicholas Nethercote
265569e6b8 Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj. 2015-05-19 16:46:17 -07:00
David Anderson
689e3a4a98 Fix asynchronously scrolling containerful subframes. (bug 1148582 part 6.1, r=tn) 2015-06-02 16:34:46 -07:00
David Anderson
c7412990b5 Fix PostprocessRetainedLayers to not test occlusion with asynchronous clips. (bug 1148582 part 5, r=tn) 2015-06-02 16:34:28 -07:00
Carsten "Tomcat" Book
e2f82674b8 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)
2015-06-02 13:05:56 +02:00
Ted Clancy
3cead41517 Bug 1067788 - part 3: Fix timeouts in test_reftests_with_caret.html. r=ehsan 2015-05-28 10:56:59 -04:00
Ted Clancy
e6d355417e Bug 1067788 - Part 2: Fixes to caret positioning in bidi text. r=smontagu 2015-05-28 08:05:25 -04:00
Eric Rahm
18bd3de863 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm
d4944b9948 Bug 1165515 - Part 7: Convert PR_LOG_DEBUG + 1 to PR_LOG_VERBOSE. rs=froydnj
Used the command: |sed -E -i -e 's/PR_LOG_DEBUG\s*\+\s*1/PR_LOG_VERBOSE/g'|
2015-06-01 22:17:24 -07:00
Eric Rahm
dca9287933 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:19 -07:00
Wes Kocher
bd796581dc Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm
ae32743ed2 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm
c6c111998d Bug 1165515 - Part 7: Convert PR_LOG_DEBUG + 1 to PR_LOG_VERBOSE. rs=froydnj
Used the command: |sed -E -i -e 's/PR_LOG_DEBUG\s*\+\s*1/PR_LOG_VERBOSE/g'|
2015-06-01 14:31:00 -07:00
Eric Rahm
aa2c33e0cf Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 14:31:00 -07:00
Timothy Nikkel
95cdac6a23 Bug 1168630. Part 3. Add IsLayersIdRoot to frame metrics. r=botond
This field tells us if this frame metrics should be considered the root APZC for its layers id. Without this there doesn't seem to be a way to compute this from just the layers tree.
2015-05-31 14:44:41 -05:00
Timothy Nikkel
fa540853f5 Bug 1168629. Clear frame metrics on the root layer if we aren't setting new frame metrics because the layer may be recycled and still have frame metrics from last time. r=mstange 2015-05-31 00:50:21 -05:00
Timothy Nikkel
ea207c7eee Bug 1168629. Always make sure that there is at least one layer with the metrics for the root scroll frame/root element. r=botond,kats
We do this by looking at the layer tree after it has been made to see if the root metrics are in it already.

This is needed to ensure that there is always a root AZPC in a process.
2015-05-31 00:50:21 -05:00
Ting-Yu Lin
0aff0b4cef Bug 1169151 - Update carets after long tapping on empty input. r=mtseng
This fixed AccessibleCarets remain on the screen when long tapping on an
empty input.
2015-05-28 02:33:00 +08:00
Seth Fowler
b67cfa56eb Bug 1169881 - Recompute image visibility when display port margins change. r=tn 2015-05-29 23:50:53 -07:00
Seth Fowler
79aa47c2fc Bug 1169880 - Recompute image visibility on a timer if layout or style flushes have occurred. r=tn 2015-05-29 23:50:51 -07:00
Seth Fowler
7257d4441a Bug 1169879 - Use only the critical displayport when computing image visibility. r=tn 2015-05-29 22:33:37 -07:00
Mats Palmgren
09c16979f2 Bug 817406 part 1 - Let ApplyStyleFixups propogate 'direction' to the viewport. r=bz,heycam 2015-05-27 22:18:36 +00:00
Ryan VanderMeulen
b58e99e15e Backed out changeset 4126c66c9a80 (bug 1166728) for Gaia sound_manager_test.js failures.
CLOSED TREE
2015-05-29 15:16:53 -04:00
Kyle Zentner
ca1661674b Bug 1166728 - Remove box-sizing: padding-box, as per CSS WG. r=dholbert 2015-05-29 09:17:00 -04:00
Ryan VanderMeulen
19d53c1f82 Backed out changeset 541cd29ea626 (bug 1166728) because the updated patch wasn't posted to the bug. 2015-05-29 12:48:22 -04:00
Kyle Zentner
0e984c6e22 Bug 1166728 - Remove box-sizing: padding-box, as per CSS WG. r=dholbert 2015-05-27 09:57:00 -04:00
Botond Ballo
1950fdd9b7 Bug 1167882 - Add utility functions MaxScaleRatio() and MinScaleRatio() to Units.h. r=kats 2015-05-27 16:53:01 -04:00
Markus Stange
27acf9ad83 Bug 1164227 - Don't allow invalid region simplification to invalidate unchanged scrolled contents. r=roc 2015-05-28 17:39:34 -04:00
Morris Tseng
dfd8a1e267 Bug 1155493 - Part 3: Dispatch event when carets are updated, pressed, released, tap, longpressonemptycontent, hidden. r=roc 2015-05-13 20:10:00 -04:00
Morris Tseng
bb1c4a8f28 Bug 1155493 - Part 1: Add CaretStateChangedEvent and corresponding utility function. r=roc, sr=smaug 2015-05-19 20:59:00 -04:00
Nicholas Nethercote
f9282652a2 Bug 1168007 (part 2) - Use PLDHashTable2 in nsFrameManagerBase. r=froydnj. 2015-05-18 19:24:34 -07:00
Birunthan Mohanathas
cd748a7266 Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
Ryan VanderMeulen
4d0124e866 Backed out changeset dd96df1da2b5 (bug 1166728) for making test_bug320799.html permafail on Mulet.
CLOSED TREE
2015-05-28 11:01:18 -04:00
Ryan VanderMeulen
566c696fa6 Merge m-c to inbound. a=merge 2015-05-28 10:20:38 -04:00
Ryan VanderMeulen
52e526e5e5 Merge fx-team to m-c. a=merge 2015-05-28 10:08:37 -04:00
Mark Capella
50610030b0 Bug 1168881 - Enabling AccessibleCarets crashes Firefox when trying to input text, r=tylin 2015-05-28 02:20:15 -04:00
Ting-Yu Lin
fcd50ebb94 Bug 1161389 - Skip AccessibleCaret frame if nsDisplayListBuilder doesn't build caret. r=roc
When nsDisplayListBuilder doesn't build caret, we need to skip building
AccessibleCaret frames. We check that the content of the frame has
"moz-accessiblecaret" class.
2015-05-27 16:37:44 +08:00
Ting-Yu Lin
97ae5fe39d Bug 1161392 - Enlarge touch area for AccessibleCaret. r=roc
Porting the patch for Touch/SelectionCarets in bug 1021499 to
AccessibleCaret.
2015-05-27 16:37:28 +08:00
Cameron McCormack
9aef4fd272 Bug 1168299 - Break out style struct memory usage reporting from pres-shell. r=njn 2015-05-27 12:08:42 +10:00
Jonathan Watt
cf5471486f Bug 923193, part 4 - Implement support for the 'transform-origin' property in SVG. r=heycam 2015-05-24 22:40:37 +01:00
Botond Ballo
0fe06cffa0 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-26 14:33:55 -04:00
Kyle Zentner
55a9911f0d Bug 1166728 - Remove box-sizing: padding-box, as per CSS WG. r=dholbert 2015-05-27 09:57:00 -04:00
Matt Brubeck
9c9ab9548c Bug 1169088 - Remove unused nsBidiPresUtils methods. r=dbaron
These were used only in nsSVGGlyphFrame which was removed in bug 889736.
2015-05-27 19:06:33 -07:00
David Anderson
d07bf4da02 Move the APZ scroll frame clip onto FrameMetrics. (bug 1148582 part 3, r=mstange,tn) 2015-05-26 12:40:24 -07:00
David Anderson
4e0be4d9dd Use Maybe to communicate the APZ scrollframe clip. (bug 1148582 part 1, r=mstange) 2015-05-26 12:39:29 -07:00
stefanh@inbox.com
b05e11aed1 Bug 889085 - Make sheets styled with '-moz-appearance: dialog;' vibrant/semi-transparent. r=mstange, roc. 2015-05-26 19:55:08 +02:00
Jonathan Watt
76c05aab09 Bug 1168245 - Remove some code that appears to make no sense from nsDisplayTransform::GetDeltaToTransformOrigin. r=mattwoodrow 2015-05-13 13:22:15 +01:00
Jonathan Watt
aeea30f610 Bug 1168242 - Simplify the logic in nsDisplayTransform::GetResultingTransformMatrixInternal. r=mattwoodrow 2015-05-12 11:26:37 +01:00
Phil Ringnalda
8196a4a61a Back out 2 changesets (bug 817406) for b2g reftest-7 bustage
CLOSED TREE

Backed out changeset 1499a08f564a (bug 817406)
Backed out changeset d2f3cb3c0233 (bug 817406)
2015-05-27 19:11:54 -07:00
Kang-Hao (Kenny) Lu
ff1545fe71 Bug 817406 (part 1) - Let ApplyStyleFixups propogate 'direction' to the viewport. r=bz,heycam 2015-05-27 22:18:36 +00:00
Jeff Muizelaar
e01d7a248f Bug 1168950. Add the document to DoProcessRestyles profile label. r=dbaron
This is handy for figuring what's being restyled in profiles.
2015-05-27 18:01:50 -04:00
Phil Ringnalda
f3d4dd7e09 Back out 3 changesets (bug 1119980) for emulator-l bustage
CLOSED TREE

Backed out changeset 12ce98475c6e (bug 1119980)
Backed out changeset bdb8d05f8870 (bug 1119980)
Backed out changeset a68a18840492 (bug 1119980)
2015-05-25 18:48:51 -07:00
Botond Ballo
9a8e8b29e8 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-25 20:45:17 -04:00
Ryan VanderMeulen
bbcbe5cc8b Backed out 4 changesets (bug 1155493) for Android test_browserElement_inproc_CopyPaste.html timeouts/crashes.
Backed out changeset 3bd7adb9f591 (bug 1155493)
Backed out changeset 0380b1684e6b (bug 1155493)
Backed out changeset 58b7c1eaf3c8 (bug 1155493)
Backed out changeset 896beb5088a7 (bug 1155493)
2015-05-25 13:15:06 -04:00
Morris Tseng
cb0b085920 Bug 1155493 - Part 3: Dispatch event when carets are updated, pressed, released, tap, longpressonemptycontent, hidden. r=roc 2015-05-13 20:10:00 -04:00
Morris Tseng
29f3b01f04 Bug 1155493 - Part 1: Add CaretStateChangedEvent and corresponding utility function. r=roc, sr=smaug 2015-05-19 20:59:00 -04:00
Phil Ringnalda
ae0515f0a5 Merge f-t to m-c, a=merge 2015-05-23 14:28:07 -07:00
Botond Ballo
bcf8379cf8 Bug 1164406 - Expose scrollbar-area deflation in nsLayoutUtils. r=kats 2015-05-22 15:54:11 -04:00
Ryan VanderMeulen
4878d81681 Merge m-c to fx-team. a=merge 2015-05-22 14:21:30 -04:00
Tom Tromey
f0669fbdd0 Bug 1050500 - Add callee information to Javascript timeline markers. r=smaug 2015-05-20 05:28:00 -04:00
dominique vincent
a5b86a8b0f Bug 1165128 - Enable zoomedview by default. r=mcomella 2015-05-15 22:20:12 +02:00
Nathan Froyd
f61c010661 Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Eric Rahm
ccf1ec07c6 Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Birunthan Mohanathas
dc5b9d0327 Bug 1166840 - Remove document argument from nsIClipboardHelper.copyString{,ToClipboard}. r=ehsan 2015-05-21 21:50:09 +01:00
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Ryan VanderMeulen
5fe5c200c7 Backed out changeset ce5f10e3c979 (bug 1164227) for B2G wordwrap-01.html timeouts.
CLOSED TREE
2015-05-19 15:15:10 -04:00
Jonathan Watt
eecad469c6 Bug 1148418 - Follow-up to avoid unused variable warning. r=bustage CLOSED TREE 2015-05-10 17:35:26 +01:00
Jonathan Watt
798a360c0e Bug 1148418 - Make nsDisplayBackgroundColor::Paint use a higher precision floating point type to avoid scrolling artifacts. r=mattwoodrow 2015-05-10 17:14:14 +01:00
Markus Stange
1f0dd7b39f Bug 1164227 - Don't allow invalid region simplification to invalidate unchanged scrolled contents. r=roc 2015-05-13 17:50:45 -04:00