Botond Ballo
6ca089f738
Bug 1259296 - Do not scroll snap on the main thread for wheel events handled by APZ. r=kats
...
MozReview-Commit-ID: DudrJuO4pFM
2016-04-04 17:46:12 -04:00
Timothy Nikkel
4e5f04dcaf
Bug 1259246. Move nsIPresShell::GetRealPrimaryFrameFor to nsLayoutUtils::GetRealPrimaryFrameFor. r=dholbert
...
The function doesn't need to be a non-static member of nsIPresShell: it only checks if the document of the passed in element matches the presshell's document, and then the remaining code could be static. It has only one user, nsDocumentViewer::FindContainerView, and it doesn't care about the specific presshell, it just wants the primary frame, so it doesn't need the document check.
This lets us simplify nsDocumentViewer::FindContainerView because it had to jump through hoops to get the presshell.
2016-04-04 02:59:15 -05:00
Botond Ballo
aa2fd58a6a
Bug 1219296 - Split fields not needed for repaints out from FrameMetrics. r=kats
...
MozReview-Commit-ID: DymHOSI6yYK
2016-03-28 19:14:52 -04:00
Seth Fowler
0f24c44100
Bug 1157546 - Replace the image visibility API with a more general API that tracks visibility for any kind of frame. r=mstange
2016-03-25 14:49:43 -07:00
Xidorn Quan
ba620a636b
Bug 1257121 part 4 - Use return value rather than out param to return font metrics. r=jfkthame
...
MozReview-Commit-ID: 6xrHYbgHGVd
2016-03-17 13:55:48 +08:00
Xidorn Quan
289ca1f35e
Bug 1257121 part 3 - Add GetInflatedFontMetricsForFrame function to simplify a common use pattern. r=jfkthame
...
MozReview-Commit-ID: 4KMLCz6wQHQ
2016-03-17 12:07:47 +08:00
Robert O'Callahan
160ba37ce4
Bug 1242172. Invalidate intrinsic ISizes that depend on viewport BSize when the viewport is resized. r=dbaron
...
MozReview-Commit-ID: INEHo7ghGyz
2016-02-29 18:49:34 +13:00
Benoit Girard
67ffec25f7
Bug 1242609 - Use PeekMessages to get the most recent DisplayPort request. r=kats
...
MozReview-Commit-ID: K5PTxUqU9E6
2016-03-14 11:50:55 -04:00
Ting-Yu Lin
ccf44ea4f8
Bug 1251519 Part 2 - Remove nsLayoutUtils::IsRectVisibleInScrollFrames(). r=mats
...
nsLayoutUtils::IsRectVisibleInScrollFrames() was used only by
SelectionCarets which was removed in bug 1221459.
MozReview-Commit-ID: 4dQAq1umHY7
2016-03-10 17:38:31 +08:00
L. David Baron
f57b2437ab
Bug 1250342 patch 3: Rename preference layout.css.text-align-true-value.enabled to layout.css.text-align-unsafe-value.enabled . r=mats
...
MozReview-Commit-ID: 6IKnuvxZQcI
2016-02-24 10:40:30 -08:00
Wes Kocher
35a1a6f191
Backed out 3 changesets (bug 1250342) for reftest failures in text-align-true.html CLOSED TREE
...
Backed out changeset 0eae0890ee11 (bug 1250342)
Backed out changeset e82e430d0eda (bug 1250342)
Backed out changeset 866f8a7337df (bug 1250342)
2016-02-23 13:10:40 -08:00
L. David Baron
b2207d6cb4
Bug 1250342 patch 3: Rename preference layout.css.text-align-true-value.enabled to layout.css.text-align-unsafe-value.enabled . r=mats
...
MozReview-Commit-ID: 6IKnuvxZQcI
2016-02-23 09:41:48 -08:00
Boris Chiou
32cdf253b7
Bug 1244049 - Part 2: Replace nsCSSPseudoElements::Type with CSSPseudoElementType. r=dbaron
...
Also, try to use forward declaraions for CSSPseudoElementType;
2016-02-17 21:37:00 +01:00
Timothy Nikkel
c37fab9118
Bug 1246443. Don't make nsLayoutUtils::MaybeCreateDisplayPort also set the displayport base anymore. r=botond
...
It's not obvious that it does this (unless you read the comment or the code), and we don't gain much by doing it.
Also we need to split it up for the next patch in this bug.
2016-02-12 16:58:34 -06:00
Kartikaya Gupta
2139025336
Bug 1235899 - Don't allow frame reconstruction to clobber the APZ scroll offset. r=botond
...
MozReview-Commit-ID: HZMavMJNtmq
2016-02-10 16:31:20 -05:00
Robert O'Callahan
d1728fb5bf
Bug 1194466. Use the table-outer frame's margin when requesting the margin for table element with getBoxQuads. r=mats
2016-02-02 22:47:15 +13:00
L. David Baron
3ef080e413
Bug 1245075 patch 1 - Remove assertion, since it can fire during frame destruction. r=dholbert
...
Without this patch, patch 2 will cause assertions since
nsFrame::DestroyFrom calls nsFrame::HasCSSAnimations (at a time when the
child frame has been destroyed), which calls into the code modified in
patch 2 to call GetStyleFrame.
2016-02-07 08:43:48 -08:00
Kartikaya Gupta
23b63e0d6f
Bug 990916 - On displayport expiry, trigger another round of expiry up the ancestor chain. r=tnikkel
2016-02-03 19:13:35 -05:00
Kartikaya Gupta
ba4a7c0c09
Bug 990916 - When setting a displayport, schedule a timer to remove it as well. r=tnikkel
2016-02-03 19:13:35 -05:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Xidorn Quan
b2c10ecc29
Bug 1229437 part 1 - Add a helper function to get the float containing block of a given frame. r=dbaron
2016-01-27 16:58:53 +11:00
Randall Barker
4b7b60835b
Bug 1231517 - part 1, Move GetBoundingContentRect to nsLayoutUtils r=botond
2016-01-20 16:24:57 -08:00
Nicholas Nethercote
aac1d8d18f
Bug 1238846 (part 1) - Remove some dead code in nsLayoutUtils. r=mattwoodrow.
2016-01-12 13:42:01 -08:00
Nicholas Nethercote
a2622a288c
Bug 1237902 (part 3) - Change the gfxContextMatrixAutoSaveRestore in PaintTableBorderBackground() to an AutoRestoreTransform. r=roc.
2016-01-07 20:21:40 -08:00
Randall Barker
c6c126a994
Bug 1233056 - Long tapping on a link will select a different link from the page r=tnikkel
...
Long tapping would fail when Java Pan-Zoom was enabled in Fennec.
2016-01-08 20:22:07 -08:00
Timothy Nikkel
bf3ae99610
Bug 1194851. Change the GetDisplayPort API to take an optional RelativeTo parameter, instead of having that expressed in the function name. r=botond
2016-01-07 18:27:49 -06:00
Timothy Nikkel
a2c4d77fbc
Bug 1194851. Rename GetDisplayPortRelativeToScrollPort back to GetDisplayPort. r=botond
2016-01-07 18:27:49 -06:00
Timothy Nikkel
8d4a783640
Bug 1194851. Split GetDisplayPort callers into GetDisplayPortRelativeToScrollPort and GetDisplayPortRelativeToScrollFrame. r=botond
...
Temporarily rename GetDisplayPort to GetDisplayPortRelativeToScrollPort for the duration of this patchset.
This means that every caller of GetDisplayPort is guaranteed to be touched by this patchset (assuming it compiles), and thus each call site can be checked in review to make sure it is relative to the correct coordinate system.
2016-01-07 18:27:49 -06:00
Timothy Nikkel
5f85f69547
Bug 1194851. Change GetDisplayPortForVisibilityTesting into GetDisplayPortRelativeToScrollFrameForVisibilityTesting since it has only one user. r=botond
...
Also update the other image visibility GetDisplayPort. It will get changed to GetDisplayPortRelativeToScrollFrameForVisibilityTesting in another bug.
2016-01-07 18:27:49 -06:00
Timothy Nikkel
6fa0bb3d8e
Bug 1194851. Introduce GetDisplayPortRelativeToScrollFrame. r=botond
2016-01-07 18:27:49 -06:00
Timothy Nikkel
981bd0e808
Bug 1194851. Change GetOrMaybeCreateDisplayPort into just MaybeCreateDisplayPort, and make it only return a bool, and not the displayport rect. r=botond
...
This makes the one caller that needs the displayport rect have to ask for it seperately.
The reason for this is later in the patch series we need to add "RelativeToScrollFrame/Port" to all displayport getters, but there is no semantically good way to do that to the name GetOrMaybeCreateDisplayPort.
2016-01-07 18:27:48 -06:00
Timothy Nikkel
5b8f2f1d4b
Bug 1194851. Make ViewportHasDisplayPort only return a bool, not the displayport rect. r=botond
...
This makes the one caller that needs the displayport rect have to ask for it seperately.
The reason for this is later in the patch series we need to add "RelativeToScrollFrame/Port" to all displayport getters, but there is no semantically good way to do that to the name ViewportHasDisplayPort.
2016-01-07 18:27:48 -06:00
Morris Tseng
98de782723
Bug 1024149 - Use element size for upload texture when using SVG image. r=jgilbert r=roc
2016-01-05 17:51:04 +08:00
Botond Ballo
c69b7a6219
Bug 1194851 - Remove the second parameter of IsFixedPosFrameInDisplayPort(). r=kats
...
No one was using it.
2015-12-16 17:58:52 -05:00
Botond Ballo
b2b30c429c
Bug 1194851 - Add helper functions HasDisplayPort() and HasCriticalDisplayPort(). r=kats
...
This makes it clearer whether we're just checking if a displayport exists,
or we're actually consuming its value.
2015-12-16 17:22:23 -05:00
Nicholas Nethercote
7fabd8754f
Bug 1231550 - Use DrawTarget instead of gfxContext and/or nsRenderingContext in many places in font/text code. r=jfkthame.
...
AutoTextRun now only needs a DrawTarget instead of an nsRenderingContext, and
similar nsRenderingContext/gfxContext-to-DrawTarget replacements can be
propagated a long way up the call graph. This patch replaces 93 occurrences of
nsRenderingContext and 135 occurrences of gfxContext with DrawTarget; that's
13% of them.
The patch is mostly plumbing changes. A couple of not-entirely-plumbing
changes:
- It adds a comment about the null check in
gfxGlyphExtents::GetTightGlyphExtentsAppUnits().
- A couple of functions simply had an unused gfxContext or nsRenderingContext
parameter removed, e.g. SetLineBreaks().
2015-12-15 13:56:41 -08:00
Lee Salzman
05d0af0550
Bug 1230686 - use RefPtr<DrawTarget>& instead of DrawTarget* to track changes in SurfaceFromElement. r=jmuizelaar
2015-12-29 10:41:43 -05:00
Morris Tseng
c50939d622
Bug 1172796 - Part 5: Implements OffscreenCanvas::TransferImageBitmap. r=roc r=smaug
2015-12-18 14:52:17 +08:00
Brian Birtles
260ea8a767
Bug 1230056 part 2 - Remove nsLayoutUtils::HasAnimationsForCompositor and call EffectCompositor::HasAnimationsForCompositor directly; r=dholbert
2015-12-09 16:28:10 -05:00
Xidorn Quan
1a0b030355
Bug 1225018 part 2 - Move GetFontMetricsOfEmphasisMarks to nsLayoutUtils. r=jfkthame
2015-12-08 12:55:01 -05:00
Brian Birtles
836fafa7ad
Bug 1226118 part 2 - Use EffectSet in nsLayoutUtils animation functions; r=dholbert
2015-12-04 08:32:52 +09:00
Matt Woodrow
ee80813ac3
Bug 1168263 - Remove TransformRectOut since it's unused. r=roc
2015-11-26 22:32:35 +13:00
Jeff Gilbert
d658f53faf
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-24 20:15:29 -08:00
Matt Woodrow
3bf4d3a834
Bug 1222880 - Build a tree of AnimatedGeometryRoots to speed up traversal of ancestors. r=roc,tn
2015-11-25 11:53:51 +13:00
Phil Ringnalda
80310b6e5c
Back out changeset 2f614bcd9405 (bug 1221822) for test_conformance__extensions__ext-sRGB.html and test_webgl2_alpha_luminance.html failures
2015-11-23 21:55:59 -08:00
Jeff Gilbert
8e72348cfc
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-23 19:27:13 -08:00
Mason Chang
3f8f3af3ab
Bug 1221840. Support repeating images in 1 axis. r=seth
2015-11-23 08:17:35 -08:00
Kartikaya Gupta
76f8a60d43
Bug 1226872 - Remove unnecessary wrapper methods in nsLayoutUtils. r=roc
2015-11-23 09:14:18 -05:00
Tobias Schneider
9a27f06269
Bug 1221677 - "[css-grid] Put the 'subgrid' support behind a pref, disabled by default". r=mats
2015-11-13 13:15:00 +01:00
Kartikaya Gupta
15b17818c8
Bug 1205087 - Cache the AnimatedGeometryRoot on DisplayItem. r=roc
2015-10-05 17:09:34 -04:00