Граф коммитов

52178 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 4be4e1b982 Bug 1304302 part 9 - Make StyleSheet::SheetInfo inline. r=heycam
MozReview-Commit-ID: 9ZvnIBw6emI

--HG--
extra : source : d702a97c0e89cd948911307f7f6b131d64985177
2016-09-26 22:03:25 +10:00
Xidorn Quan 1dc2955ab8 Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.

This commit is generated by the following command:

find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
  -e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
  -e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +

MozReview-Commit-ID: 54H5x27Pmso

--HG--
extra : source : e4fe253a8f82c3c58e5191d6af66fb0e85f2df19
2016-09-26 22:03:25 +10:00
Xidorn Quan 1b72d4bbf6 Bug 1304302 part 6 - Add cycle collecting support to pointer of StyleSheet. r=smaug
This is mostly copied from StyleSheetHandle which is being removed in
later patches. This is a temporary workaround to keep things working.
It should be removed soon when StyleSheet itself becomes a subclass
of nsISupports (which is expected to happen in bug 1292432).

MozReview-Commit-ID: Gqv0eRZgja5

--HG--
extra : source : 5d029c90a2e9187720bb21ef8329722a8fa3cae5
2016-09-26 22:03:25 +10:00
Xidorn Quan 708aff235a Bug 1304302 part 5 - Make StyleSheet::As{Gecko,Servo} return pointer instead of reference. r=heycam
To match the behavior of StyleSheetHandle so that we can simply replace
uses of StyleSheetHandle with StyleSheet* in later patch.

MozReview-Commit-ID: LfGKrUmzC4h

--HG--
extra : source : bffc3be53b1c1142b3ab297a78fc6e7934719d2c
2016-09-26 22:03:25 +10:00
Xidorn Quan 4d65721d59 Bug 1304302 part 4 - Add all methods StyleSheetHandle needs to StyleSheet. r=heycam
The methods are written in the same order as in StyleSheetHandle::Ptr.

MozReview-Commit-ID: 6b4311ailNj

--HG--
extra : source : 9cea4a56fc487dd21a8739d4d9be8f01d5fdc93c
2016-09-26 22:03:25 +10:00
Xidorn Quan 17e476532e Bug 1304302 part 3 - Use ServoStyleSheet* instead of Handle in ServoStyleSheet. r=heycam
MozReview-Commit-ID: WV8eRxSOnp

--HG--
extra : source : 1d1c23f2cf6dbc2a3fbfa8a74b401c8464e113cf
2016-09-26 22:03:25 +10:00
Xidorn Quan e981c7e9be Bug 1304302 part 2 - Some small fixes. r=heycam
MozReview-Commit-ID: 7rnl4wkMorC

--HG--
extra : source : d3319119916b7ca8e36627cc086150f799481d97
2016-09-26 22:03:25 +10:00
Xidorn Quan e8488364fe Bug 1304302 part 1 - Add const version of AsGecko/AsServo to StyleSheet. r=heycam
MozReview-Commit-ID: LGQQjmkTWsO

--HG--
extra : source : 337342b3376bdaff444ed1c3887d8eee80cfa9ee
2016-09-26 22:03:25 +10:00
Iris Hsiao a09b58856d Merge mozilla-central to mozilla-inbound 2016-09-26 19:08:19 +08:00
Iris Hsiao 767e1e9b11 merge mozilla-inbound to mozilla-central a=merge 2016-09-26 18:34:20 +08:00
Edwin Flores 2c4a3e9768 Bug 1304704 - Add fudge factor to asserts in ClampColorStops() - r=mstange 2016-09-26 09:54:13 +01:00
Kartikaya Gupta 30133fa012 Bug 1298886 - Fire magnify gesture events in the parent process if APZ is enabled but APZ zooming is disabled. r=botond,dvander
MozReview-Commit-ID: 1yhJW7OhI0A
2016-09-24 09:46:02 -04:00
cku f42e498549 Bug 1304011 - Part 7. Fix several coding convention violations. r=mstange
MozReview-Commit-ID: BYhiQnlfR3a

--HG--
extra : rebase_source : eba1a5fcec8f502cfaf4ff0e1d09a321e533131c
2016-09-18 23:16:35 +08:00
cku 447951cfbc Bug 1304011 - Part 6. Handle nullptr returning from nsSVGClipPathFrame::GetClipMask. r=mstange
MozReview-Commit-ID: 2FBDE9fx1LT

--HG--
extra : rebase_source : d3b6ec7a36690002530da072f4fe9cdd5f4be8b8
2016-09-22 16:29:03 +08:00
cku ae1b4eb085 Bug 1304011 - Part 5. Test case. r=mstange
MozReview-Commit-ID: HSZiLRZKtKO

--HG--
extra : rebase_source : c9e8fa93b4ecbb28b16966c29a6bfdca25c3fb40
2016-09-21 15:30:40 +08:00
cku 097d8da362 Bug 1304011 - Part 4. For css-mask, compute frame offset by the current frame. r=mstange
MozReview-Commit-ID: K6ZUoiA9jrC

--HG--
extra : rebase_source : 6a56e5d072062f06452e653187a0d6eb5d5c3eac
2016-09-22 13:38:55 +08:00
cku 07e41f0497 Bug 1304011 - Part 3. Add clip function in SetupContextMatrix, and give a frame to this function as the source of offset computing. r=mstange
MozReview-Commit-ID: 2ry6c1cECvb

--HG--
extra : rebase_source : 54fc13e3948179ec543b0c7f4c8cf342108992fd
2016-09-21 16:49:27 +08:00
cku 22ac005328 Bug 1304011 - Part 2. typedef nsSVGIntegrationUtils::PaintFramesParams to shorten code length. r=mstange
MozReview-Commit-ID: Iw7Khv8ee0r

--HG--
extra : rebase_source : d3f04ebed02703e5b37769baca312851c181e770
2016-09-22 11:12:54 +08:00
cku bd65b2b725 Bug 1304011 - Part 1. Do not merge nsDisplayMask with css mask. r=mstange
MozReview-Commit-ID: 9Y8ccNieOF4

--HG--
extra : rebase_source : 42fcf40dfd7530a7eee4942ac60c8749820f0c0b
2016-09-18 18:47:02 +08:00
Tooru Fujisawa 1345e61d6a Bug 898984 - Part 3: Add testcase for surrogate pair in XUL cropped element. r=jfkthame 2016-09-24 10:06:00 +09:00
Carsten "Tomcat" Book 6029d72706 Merge mozilla-central to autoland 2016-09-23 12:48:43 +02:00
Jeremy Chen 05b7065953 Bug 1305004 - fix ReResolveStyleContext related comments. r=heycam
Fix comment only, NPOTB, DONTBUILD.

MozReview-Commit-ID: APxOg5yVw7A

--HG--
extra : rebase_source : a48180811fedda97eaf374a7777374f8c3616ce3
2016-09-23 18:08:01 +08:00
Carsten "Tomcat" Book a65e4225ef merge mozilla-inbound to mozilla-central a=merge 2016-09-23 12:05:53 +02:00
Xidorn Quan 55b62c4ff9 Bug 1304163 - Try to make currentcolor transition test more reliable.
MozReview-Commit-ID: 514bp6RJL1F

--HG--
extra : source : 25848e6a6f8243d9bf1d8217ee6e6ac4e964a929
2016-09-23 14:00:44 +10:00
cku 0a4b5b390c Bug 1304437 - Part 1. Return nsChangeHint_UpdateEffects when the length of the mask-image property has changed. r=heycam
MozReview-Commit-ID: 8ETx873Atu7

--HG--
extra : rebase_source : 8b67cd96dbc89a1dabe7c05e0b7254f6fa48bc56
2016-09-22 18:24:52 +08:00
Brad Werth f9e226b0fa Bug 1278461 - Prevent an assert from tripping when removing an overflowed frame during a partial reflow. r=mats 2016-09-22 12:37:35 -07:00
Matt Woodrow f8671565f8 Bug 1303897 - Part 1: Use TextureForwarder for Image::GetTextureClient. r=nical 2016-09-23 09:43:11 +12:00
Hiroyuki Ikezoe cc0747ceed Bug 1282076 - Crashtest that struct data is cached if we have animation data. r=heycam
1282076-1.html is a test case with a CSS animation.
1282076-2.html is a test case with a scripit animation.

Both of tests crashed before landing the fix for bug 1282076.
Although neither test does not crash currently any more with/without the fix,
it's worth adding them.
2016-09-22 19:42:09 +09:00
Cameron McCormack 6bcc95b10d Bug 1304632 - Part 2: Remove unnecessary nsStyleImage::mImage null checking. r=bholley
nsStyleImage::mImage is always set to a non-null object when its mType
is eStyleImageType_Image, so let's just assert that and stop null
checking in that case.

MozReview-Commit-ID: 2ect4coV0LV

--HG--
extra : rebase_source : 768b0c5989bc3e32d4d8ab803d85885f223bcb43
2016-08-15 09:57:13 +08:00
Cameron McCormack d29aafd0ca Bug 1304632 - Part 1: Assert main thread in ImageValue destructor. r=bholley
The css::ImageValue destructor does things only safe from the main
thread.  Let's assert so that we don't accidentally start releasing them
from style worker threads during restyle.

MozReview-Commit-ID: DTkFcx185L

--HG--
extra : rebase_source : 3cec1f7504f89bc19cac27d3665452114e0c7b7e
2016-08-16 15:55:39 +08:00
Daniel Holbert c31ad35f39 Bug 1304540 part 2: Use nsCOMPtr/RefPtr (and their forget() API) instead of manual NS_ADDREF macros, in a few files within layout. r=mats
MozReview-Commit-ID: SrJNtbwc1B

--HG--
extra : rebase_source : 2fd086157bf4d8d16effe18037258a3bf12623fc
2016-09-21 15:41:26 -07:00
Daniel Holbert 2a6754c4c7 Bug 1304540 part 1: minor code-cleanup in the neighborhood of some NS_ADDREF usages. r=mats
DETAILS ON THE CLEANUP:

* In nsFrameTraversal.cpp:
 - Whitespace fix.
 - Remove a useless nullptr assignment.
 - Use "=" to initialize a nsCOMPtr, per coding style guideline ("initialize variables with nsFoo aFoo = bFoo and not nsFoo aFoo(bFoo)").

* In nsPresShell.cpp:
 - Wrap a longish assignment to 2 lines (since next patch will make the first line longer, which would push the whole thing over 80 characters if it weren't wrapped).
 - Add braces around "if" body.

* In nsTextFrame.cpp:
 - Remove a useless nullptr assignment.
 - Move the "metrics->GetThebesFontGroup()" call slightly earlier, so it happens *before* we've implicitly transferred ownership the object pointed to by "metrics".
 - Add a code-comment.

MozReview-Commit-ID: LG6vgOmM9MK

--HG--
extra : rebase_source : 7754d4edefb09ae7992275b9dcb7e84371955d9c
2016-09-21 15:39:48 -07:00
Carsten "Tomcat" Book cae9054451 Merge mozilla-central to autoland 2016-09-22 13:44:33 +02:00
Carsten "Tomcat" Book d25a5baeb8 merge mozilla-inbound to mozilla-central a=merge 2016-09-22 11:55:12 +02:00
Cameron McCormack f6ba929a23 Bug 1304621 - Remove unused Servo_RestyleDocument. r=manishearth
MozReview-Commit-ID: 8H0o9aPyrWH

--HG--
extra : rebase_source : 86b630cf95987b0e163409beecae7963dfbe0c76
2016-09-22 13:39:04 +08:00
Daniel Holbert c96286c2ee Bug 1266570: Add CSS_PROPERTY_STORES_CALC flag to "clip-path" property, so it can transition between percent and pixel shape-coordinates. r=heycam
Our transition/animation code uses "calc" to represent interpolated values between percent & pixel endpoints.  But it only does that if the property has this CSS_PROPERTY_STORES_CALC flag. (This check is in StyleAnimationValue.cpp's static helper, GetCommonUnit().)

We do indeed store (& honor) calc() units for "clip-path" in its style struct, so we can & should add this flag.

MozReview-Commit-ID: 7eEEo9ROnpU

--HG--
extra : rebase_source : b2aa4887bf17048c7fe485f77302e4df91a20f1c
2016-09-20 11:05:43 -07:00
Markus Stange 97c3c73e73 Bug 1303761 - Disable paint skipping for all scroll frames between the fixed element and the scrolled clip. r=tnikkel
MozReview-Commit-ID: 1FIQcJT55DJ

--HG--
extra : rebase_source : 85937f7bba5249d1a387be8240b0a48eec0ffea0
2016-09-20 19:39:02 -04:00
Kartikaya Gupta 37fb3cb56b Bug 1304052 - Disable APZ zooming when the document has any fullscreen state. r=botond
MozReview-Commit-ID: 5V1zFUTpnPq

--HG--
extra : rebase_source : 0ba882a9707b6a71e011bc6bfef7ea7e29f6059d
2016-09-21 16:19:10 -04:00
Carsten "Tomcat" Book 23879d2b18 Merge mozilla-central to mozilla-inbound 2016-09-21 12:07:46 +02:00
Carsten "Tomcat" Book 4f900773f5 merge mozilla-inbound to mozilla-central a=merge 2016-09-21 12:03:31 +02:00
Matt Woodrow 7756c8a512 Bug 1288618 - Part 13: Add VideoDecoderManager protocol. r=dvander 2016-09-21 21:25:33 +12:00
Carsten "Tomcat" Book f918af64da Backed out 16 changesets (bug 1288618) for bustage on a CLOSED TREE
Backed out changeset 06187d250f7a (bug 1288618)
Backed out changeset 2a47f8ea1d89 (bug 1288618)
Backed out changeset e179c8e8265d (bug 1288618)
Backed out changeset 25396a1af922 (bug 1288618)
Backed out changeset e98f835c6ee5 (bug 1288618)
Backed out changeset 24df0e89b273 (bug 1288618)
Backed out changeset f8bbdabdb6da (bug 1288618)
Backed out changeset 8b0adeab93df (bug 1288618)
Backed out changeset 95f23366de82 (bug 1288618)
Backed out changeset 63a9c689e1d5 (bug 1288618)
Backed out changeset 8f67443dccb8 (bug 1288618)
Backed out changeset 4e7fe69d5f45 (bug 1288618)
Backed out changeset 53b113acee42 (bug 1288618)
Backed out changeset 2583ae4e2e3b (bug 1288618)
Backed out changeset 75a61d0e71b7 (bug 1288618)
Backed out changeset da740b4fd484 (bug 1288618)
2016-09-21 08:44:11 +02:00
Matt Woodrow c4fcc19e35 Bug 1288618 - Part 13: Add VideoDecoderManager protocol. r=dvander
--HG--
extra : rebase_source : f330066c3e301299f541939ac170217625dcdca5
2016-09-21 15:36:39 +12:00
Mats Palmgren 22199e98a7 Bug 1280798 part 3 - [css-grid] More reftests for auto-fill/fit intrinsic sizing. 2016-09-21 02:14:40 +02:00
Mats Palmgren 0ffa12391e Bug 1280798 part 2 - [css-grid] Take any specified [min-/max-]width/height into account when calculating the number of auto-fill/fit tracks for intrinsic sizing. r=dholbert 2016-09-21 02:14:40 +02:00
Mats Palmgren 782101ebba Bug 1280798 part 1 - [css-grid] Simplify handling of min-size for repeat track calculation. r=dholbert 2016-09-21 02:14:39 +02:00
Nicolas Silva 7dc66b85b3 Bug 1303369 - Disable the nsRefreshDriver warnings while false positives are investigated. r=milan 2016-09-20 16:25:52 +02:00
Andrea Marchesini 72d886f7a3 Bug 1301249 - nsIDocument::GetDocumentURI() should be fallible, r=smaug 2016-09-20 14:03:05 +02:00
Carsten "Tomcat" Book 17d545681a Merge mozilla-central to mozilla-inbound 2016-09-20 12:02:20 +02:00
Manish Goregaokar fe560e754d Bug 1303920 - Update stylo reftest list; r=heycam
MozReview-Commit-ID: 6fKFLbTL2gW

--HG--
extra : rebase_source : bf87e02799dc530b7d26b2040071ecd8213d36df
2016-09-19 20:20:03 +05:30