Commit Graph

2118 Commits

Author SHA1 Message Date
cku
94cb42c027 Bug 1349462 - Part 1. Rename IsSVGText as IsInSVGTextSubtree. r=heycam
MozReview-Commit-ID: LTo6c8tTtaf
2017-03-23 15:29:11 +08:00
cku
14c0f9ceb9 Bug 1340044 - Part 2. Rename value in StyleGeometryBox. r=heycam
This change is to use gecko_enum_prefix in helpers.mako.rs, so that we do not
need to manually write code for nsStyleDisplay::mTransformBox.

MozReview-Commit-ID: 7UAL0iUcSIO
2017-03-16 15:18:10 +08:00
Kartikaya Gupta
720d5fa9aa Bug 1316318 - Disable paint-skipping for elements where we disable APZ. r=mstange
If we disable APZ on an individual scrollable element by setting the "disable APZ"
flag on the ScrollMetadata, we should also disable paint-skipping for that element.
If we don't do this, we end up in a situation where the APZ code is not applying
the async transform but is sending repaint requests expecting the main thread to
do repaints. Meanwhile the main-thread thinks that it can send empty transactions
and have APZ update the async transform (a.k.a. paint-skipping). So visually
neither APZ nor main-thread have an effect and the element doesn't appear to
scroll except with the tile-aligned displayport shifts. Disabling paint-skipping
on the element fixes the issue.

MozReview-Commit-ID: H4wpVLw8r8X
2017-03-15 08:24:08 -04:00
Kartikaya Gupta
b400d2c625 Bug 1316318 - Disable APZ scrolling in subframes if the root document has visible anonymous content. r=mstange
Various pieces of browser chrome, such as the accessible carets or new
find-in-page highlighter, overlay the content with anonymous content elements.
These overlays are positioned with respect to the root document. This means that
if the overlay really pertains to a scrollable subframe (e.g. carets for a text
selection inside an iframe), then scrolling the subframe would result in the
anonymous contents being "mispositioned" from the user's point of view. The
browser chrome code that creates the overlay is responsible for moving it in
response to user scrolling, so that it appears correct. However, the only
mechanism the browser chrome code has to detect user scrolling are the main-thread
events, which are asynchronous with respect to APZ.

Therefore, in order to improve the user experience, we need to disable APZ in
cases where this happens. We specifically isolate the case where the root content
document has visible anonymous content elements, and disable APZ on scrollable
subframe elements inside that document. Note that APZ remains enabled on the
root scroller itself, because we expect the browser chrome code to use absolute-
positioning on their anonymous contents, so that even with APZ scrolling they
will stay where they are supposed to.

MozReview-Commit-ID: 770edaGWMLi
2017-03-15 08:23:57 -04:00
Brad Werth
ba8f60f055 Bug 1343695 Part 1: Retrieve text content with GetRenderedText. r=mats
MozReview-Commit-ID: 4VLoaTlDELG
2017-03-01 16:15:22 -08:00
Wes Kocher
29fc2f8612 Backed out 2 changesets (bug 1343695) for osx chrome mochitest assertions a=backout
Backed out changeset e5db40a036fe (bug 1343695)
Backed out changeset 687ffd715113 (bug 1343695)

MozReview-Commit-ID: 2CN1gipg3ia
2017-03-13 16:44:23 -07:00
Kaku Kuo
7802474ab9 Bug 1345403 part 2 - Mark element tainted when DrawImage is used; r=jwwang,mattwoodrow
Mark video element as tainted (stored on the decoder owned by video element) when the video is used as source to drawImage() on canvas.

MozReview-Commit-ID: HdciVwhqPu3
2017-03-08 19:41:08 +08:00
Brad Werth
bef2cfe9ba Bug 1343695 Part 1: Retrieve text content with GetRenderedText. r=mats
MozReview-Commit-ID: 4VLoaTlDELG
2017-03-01 16:15:22 -08:00
Jonathan Watt
00d12b1b8c Bug 1345908 - Remove nsLayoutUtils::HasCSSBoxLayout. r=cjku 2017-02-07 21:11:53 +00:00
Timothy Nikkel
78536370b5 Bug 1346109. Add a function that returns if we need a displayport base rect for calculating a displayport. r=botond 2017-03-11 00:58:09 -06:00
Timothy Nikkel
4f26ab00b5 Bug 1346109. Factor out a GetDisplayPortData function which gets the displayport data and chooses between margin and rect based data. r=botond
It will be used in the next patch.
2017-03-11 00:58:08 -06:00
Jonathan Watt
e84b0a4edc Bug 1345841 - Stop using Maybe<const T>. r=mats 2017-02-07 11:52:22 +00:00
Carsten "Tomcat" Book
4d844ed8a1 Merge mozilla-central to mozilla-inbound 2017-03-10 11:42:15 +01:00
Xidorn Quan
522b943280 Bug 1345343 - Add a pref to turn off effect of xml:base on style attribute. r=bz
MozReview-Commit-ID: EzNLxIW0OCv
2017-03-10 18:04:34 +11:00
Jonathan Watt
fda2839f54 Bug 1058040, part 12 - Make SVGImageContext's ctor's aViewportSize parameter optional. r=dholbert 2017-01-30 13:25:00 +00:00
Daisuke Akatsuka
1243945dbb Bug 1339332 - Part 1: Introduce neutral value concept for missing keyframe in CSS Animation. r=birtles,hiro
MozReview-Commit-ID: F3qvRY3SRAp
2017-03-08 10:07:08 +09:00
Brad Werth
3c26028870 Bug 1343978 Part 1: Change ClientRectsAndTexts usage of DOMStringList to Sequence<DOMString>. r=smaug
MozReview-Commit-ID: 8mKxdPTq4Ej
2017-03-02 13:13:12 -08:00
jeremychen@mozilla.com
d22bae4680 Bug 276079 - add layout support for CSS text-justify property. r=xidorn
MozReview-Commit-ID: Kiwu8UNfbSj
2017-03-01 20:58:25 +08:00
Brad Werth
577b65d68d Bug 1334088 Part 1: Correct BoxToRectAndText to respect content offset and length when returning text. r=jfkthame
MozReview-Commit-ID: Kd3DIqZdBFY
2017-02-17 14:57:37 -08:00
Markus Stange
f91ffc0a6f Bug 1275347 - Move the display list profiler marker to the right place. r=mattwoodrow
MozReview-Commit-ID: JcSmqlXlr4A
2017-02-16 19:18:37 -05:00
Xidorn Quan
5055d45482 Bug 1340033 - Remove dependency from StyleAnimationValue.h to ServoBindings.h. r=hiro
MozReview-Commit-ID: 79czvLmftmv
2017-02-16 15:14:06 +11:00
Cameron McCormack
87f3ad6dfb Bug 1297899 - Part 6: Move RestyleManagerHandle functionality into RestyleManager. r=bholley
MozReview-Commit-ID: 7lsti0bGzNr
2017-02-13 11:21:33 +08:00
Hiroyuki Ikezoe
448c234858 Bug 1331704 - Part 1: Store base styles in KeyframeEffectReadOnly instead of EffectSet. r=birtles a=abillings
Now we dropped mNeedsBaseStyleSet bit set.

MozReview-Commit-ID: Gv2rU0jpyk1
2017-02-11 19:11:45 +09:00
Sebastian Hengst
2beaba93bd Backed out changeset e2f6d5054e20 (bug 1331704) for build bustage: unused variable hasProperty at KeyframeEffectReadOnly.h:294. r=backout on a CLOSED TREE 2017-02-11 11:37:54 +01:00
Hiroyuki Ikezoe
00914b9633 Bug 1331704 - Part 1: Store base styles in KeyframeEffectReadOnly instead of EffectSet. r=birtles a=abillings
Now we dropped mNeedsBaseStyleSet bit set.

MozReview-Commit-ID: Gv2rU0jpyk1
2017-02-11 19:11:45 +09:00
Kartikaya Gupta
f441112c9f Merge m-c to graphics
MozReview-Commit-ID: AXRXwXgkOTv
2017-02-10 13:57:53 -05:00
Kartikaya Gupta
b551916223 Merge m-c to graphics
MozReview-Commit-ID: Ejcj1CD87t3
2017-02-09 10:12:03 -05:00
Ryan Hunt
3b45fe13ff Merge m-c to graphics 2017-02-08 10:57:06 -06:00
cku
0846dd2a0a Bug 1287492 - Part 1. Implement nsLayoutUtils::HasCSSBoxLayout. r=mstange
There is no direct relation between this patch and the bug. Read through the code
and think we may reuse some logic.
MozReview-Commit-ID: HGEvDNGoIBS
2017-02-08 20:15:28 +08:00
Ryan Hunt
b101f2272c Merge m-c to graphics 2017-02-07 09:05:18 +00:00
Kartikaya Gupta
bf02e9ff78 Merge m-c to graphics
MozReview-Commit-ID: 3tWI3srj2uj
2017-02-01 08:48:31 -05:00
Ryan Hunt
b60d405ff9 Merge m-c to graphics 2017-01-27 10:07:37 -06:00
Ryan Hunt
fda7c21991 Merge m-c to graphics 2017-01-26 08:59:21 -06:00
Mats Palmgren
0becbde666 Bug 1317464 - Zero size images are valid and shouldn't trigger warnings. Assert that the image size isn't negative though. r=tn
(intentinally skipping DrawSingleUnscaledImage for now)
2017-01-27 00:24:00 +01:00
Kartikaya Gupta
ffccc882ca Merge m-c to graphics
MozReview-Commit-ID: Id83SqNnzku
2017-01-16 07:38:20 -05:00
Jonathan Watt
8b4dac7b4f Bug 1058040, part 11 - Convert DrawImage/DrawImageInternal's SVGImageContext param from pointer to Maybe<>. r=dholbert 2017-01-11 01:48:29 +00:00
Neerja Pancholi
d77826e76a Bug 1166147 - Part1: Ignore writing mode while printing header and footer r=dholbert
MozReview-Commit-ID: Kesy6LG2KNe
2017-01-19 11:45:30 -08:00
Kartikaya Gupta
c72106b831 Merge m-c to graphics
MozReview-Commit-ID: HGa7QgtJVwu
2017-01-06 11:24:57 -05:00
Ting-Yu Lin
7d7ef90375 Bug 1320014 Part 7 - Convert half corner indices #define to an enum. r=mats
MozReview-Commit-ID: 8lNtjV14WTN
2017-01-05 11:31:38 +08:00
Ting-Yu Lin
e74fee8fd7 Bug 1333366 Part 1 - Update document related to Corner and HalfCorner. r=mats
MozReview-Commit-ID: 4wnjQOvploH
2017-01-24 18:37:05 +08:00
Ting-Yu Lin
9feaa919bb Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats
MozReview-Commit-ID: ERAwdxKZPf7
2017-01-04 18:15:30 +08:00
Kartikaya Gupta
e024b0a7ae Merge m-c to graphics
MozReview-Commit-ID: FIRww20wbCc
2017-01-03 08:43:47 -05:00
Kartikaya Gupta
10b17b0728 Merge m-c to graphics
MozReview-Commit-ID: EVRgJB0urSI
2016-12-27 09:33:52 -05:00
Kartikaya Gupta
26f427122c Merge m-c to graphics
MozReview-Commit-ID: E0Sr26LKcZx
2016-12-21 10:16:15 -05:00
Mats Palmgren
05b26d81fe Bug 1312379 part 1 - [css-align][css-flexbox][css-grid] Introduce nsIFrame methods for calculating baselines per CSS Alignment and CSS2 'vertical-align'. r=dholbert 2016-12-20 23:56:35 +01:00
Mats Palmgren
4d072fe01c Bug 1313068 - [css-grid] Synthesize a grid container baseline from the margin-box when in an inline-level context, and from the border-box otherwise. r=dholbert 2016-12-20 23:56:34 +01:00
Kartikaya Gupta
25f03c07f1 Merge m-c to graphics
MozReview-Commit-ID: 6ocpYm7MBCV
2016-12-19 13:35:32 -05:00
Boris Chiou
d1fd8dc56d Bug 1335942 - Part 5: Add AnimationValue::GetScaleValue(). r=hiro
Move the common part of GetScaleValue into nsStyleTransformMatrix, and add a
new method, GetScaleValue, on AnimationValue, which can get the scale value from
StyleAnimationValue or RawServoAnimationValue.

MozReview-Commit-ID: 4spi1LkZrWP
2017-02-06 16:32:21 +08:00
Boris Chiou
afe4b3dc4b Bug 1335942 - Part 2: Use mozilla::AnimationValue in AnimationPropertySegment. r=hiro,manishearth
MozReview-Commit-ID: L6U1A223jsa
2017-02-04 13:57:08 +08:00
Kartikaya Gupta
ad6399e383 Merge m-c to graphics
MozReview-Commit-ID: 1CB1iRcrX36
2016-12-13 10:02:54 -05:00