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

59570 Коммитов

Автор SHA1 Сообщение Дата
J. Ryan Stinnett 729eca139b Bug 1393234 - Check STYLO_FORCE_DISABLED in reftests. r=jmaher
MozReview-Commit-ID: DEg817q0HOQ

--HG--
extra : rebase_source : 27b536a6ef63885916811ce3f0d2b725cdfc49b2
2017-08-24 16:29:49 -05:00
Chung-Sheng Fu e5b80e9a8f Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm
MozReview-Commit-ID: ArhSHKPYOr8

--HG--
extra : rebase_source : 888f7ce8f9db809ad5abbe6340af74e9dfb1d73b
2017-06-08 17:52:46 +08:00
Kartikaya Gupta feac69c750 Bug 1393836 - Enable advanced table layers by default with WebRender. r=mtseng
MozReview-Commit-ID: 3urG2CInsoI

--HG--
extra : rebase_source : 965d7da0352a28c755728830bdf59d45c79369f7
2017-08-25 15:06:06 -04:00
Kartikaya Gupta efd913ac3f Bug 1393836 - Remove unneeded doubling of border thickness. r=mtseng
MozReview-Commit-ID: 7ZczsYj2oDm

--HG--
extra : rebase_source : 84c2355095969de6fb147c6834a572ab7e886887
2017-08-25 15:06:06 -04:00
Emilio Cobos Álvarez 1400981514 Bug 1385154: Test-cases for the nasty edge cases. r=heycam
Chromium and Epiphany fail these, whoops...

MozReview-Commit-ID: JPGgcGrxIh5
2017-08-28 10:28:37 +02:00
Masayuki Nakano 5e251e26e0 Bug 1393348 - part3: Converting SelectionType to index of Selection array in nsFrameSelection should use array instead of switch statement r=smaug
GetIndexFromSelectionType() in nsFrameSelection.cpp or
nsFrameSelection::GetSelection() appears in profile of attachment 8848015.  So,
it should not use switch statement due to really hot path.

With the previous patch, we can make it use array to retrieve the index from
SelectionType with static_cast<int8_t>.

MozReview-Commit-ID: 8jvIF5buTyT

--HG--
extra : rebase_source : ccb9c855caa6688e45097f67de3160860339d281
2017-08-24 20:01:20 +09:00
Masayuki Nakano 3bd4299525 Bug 1393348 - part2: nsISelectionController::SELECTION_* should be sequential integer values r=smaug
nsISelectionController::SELECTION_* are declared as bit-mask.  However, no
methods of nsISelectionController treat them as bit-mask and these
values need a switch statement in nsFrameSelection to convert SelectionType to
array index of nsFrameSelection::mDOMSelections because it's too big to create
an array to do it.  Additionally, this conversion appears profile of
attachment 8848015.

So, now, we should declare these values as sequential integer values.

However, only nsTextFrame uses these values as bit-mask.  Therefore, this patch
adds new type, SelectionTypeMask and creates new inline method,
ToSelectionTypeMask(SelectionType), to retrieve mask value for a SelectionType.

MozReview-Commit-ID: 5Za8mA6iu4

--HG--
extra : rebase_source : 86617c1f5fa23166458f4353cb834f9e7c5b131b
2017-08-24 19:14:04 +09:00
Bobby Holley 8fb4fb3d6c Bug 1393791 - Stop unbinding native-anonymous content off a script runner. r=emilio
The failure mode in the attached crashtest is an inconsistency in the flattened
tree. Specifically, we null out mVideoControls in an nsVideoFrame, but defer
the UnbindFromTree call on that NAC element, which measn that its mParent still
points to the nsVideoFrame's mContent. Because all this stuff runs off of script
runners, and the anonymous content destroyer is not guaranteed to run before
other potential script runners, we end up running arbitrary script while the
tree mismatch exists. This script calls back into ProcessPendingRestyles, which
causes trouble.

We could build a separate deferral mechanism, but it's not clear that we actually
need to defer the unbind anymore. The deferred unbind was added in bug 489008,
which predated a lot of simplifications in layout/dom interaction.

MozReview-Commit-ID: 1JYAhiXKVJC
2017-08-27 15:29:36 -07:00
Bobby Holley 9631dd3e22 Bug 1393791 - Move SVG Use anonymous content to the frame. r=emilio
This brings it into alignment with what everything else does.

MozReview-Commit-ID: 2A9p8umHnKi
2017-08-27 15:29:32 -07:00
Bobby Holley d3e80c057b Bug 1393791 - Hoist nsSVGUseFrame into a header. r=emilio
MozReview-Commit-ID: FcD2Nh7zcRO
2017-08-27 15:28:03 -07:00
Bobby Holley 23cdafc91d Bug 1393791 - Crashtest. r=me
MozReview-Commit-ID: IWqnaFxC1Nx
2017-08-27 15:27:53 -07:00
Wei-Cheng Pan e55f4e59ec Bug 1388298 - Add an API to process all invalidations on the main thread. r=emilio
MozReview-Commit-ID: I7rBwvPQykR

--HG--
extra : rebase_source : 432210b2798c8b602fb7659e097721c6fbc1d60d
2017-08-24 15:36:48 +08:00
Bobby Holley 7d9019f3fd Bug 1394156 - Use a smart pointer for nsIFrame::mStyleContext. r=emilio
MozReview-Commit-ID: FizF2iCvp9t
2017-08-27 10:46:00 -07:00
Bobby Holley 08e1911969 Bug 1394156 - Use a smart pointer for nsIFrame::mContent. r=emilio
MozReview-Commit-ID: 5xsLwXkXym7
2017-08-27 10:45:59 -07:00
Bobby Holley a61ee7166e Bug 1394156 - Make static_casts of mContent use GetContent(). r=emilio
This was done with: perl -pi -e 's/\(mContent\)/\(GetContent\(\)\)/g' *.cpp

MozReview-Commit-ID: 7ugPKf5ypGw
2017-08-27 10:45:59 -07:00
Emilio Cobos Álvarez eee20b3f8b Bug 1389645: Crashtest. r=me
MozReview-Commit-ID: BFJB3gm9IAS
2017-08-27 00:08:45 +02:00
Emilio Cobos Álvarez 2fe72a41ea Bug 1389645: Don't incorrectly set lazy frame construction bits in ContentAppended and ContentRangeInserted. r=bholley
Before this patch, we may get into that piece of code reentrantly from lazy
frame construction itself leaving stale dirty bits around that we really don't
want.

MozReview-Commit-ID: 2wtKeF3o0Gr
2017-08-27 00:08:43 +02:00
Bobby Holley 7174bd25c7 Bug 1392863 - Clean up DoProcessPendingRestyles. r=emilio
MozReview-Commit-ID: 4JhWFNPVvGn
2017-08-26 12:28:25 -07:00
Nazım Can Altınova 7a9152ad10 Bug 1355721 - stylo: Mark osx only test failure as pass r=me
MozReview-Commit-ID: C1NDIhQEBfe
2017-08-26 01:55:48 -07:00
Bobby Holley dd9a4ea85c Bug 1376884 - Add a tweaked version of our existing invalidation stress test that runs parallel in adaptive mode. r=me
MozReview-Commit-ID: 8AjqX6y4FCI
2017-08-25 22:50:44 -07:00
Wes Kocher 7ea5ed6e6a Merge m-c to autoland, a=merge
MozReview-Commit-ID: LEKykpTAKjv
2017-08-25 17:32:33 -07:00
Wes Kocher 68149d6a59 Merge inbound to central, a=merge
MozReview-Commit-ID: 3N9jinnrmjb
2017-08-25 16:21:57 -07:00
Sebastian Hengst 6fd5b9e1ca merge mozilla-central to autoland. r=merge a=merge 2017-08-25 13:19:59 +02:00
Sebastian Hengst 31302b9cec merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5armhVE9Jui
2017-08-25 13:12:04 +02:00
Ryan VanderMeulen 22d133ea9e Merge m-c to inbound. a=merge 2017-08-24 20:21:30 -04:00
Gregory Szorc 2a5e786286 Backed out changesets b749fc196a50, 2791eac8d760 (bug 1355721) for build bustage
CLOSED TREE

--HG--
extra : amend_source : 7618f27e1cf71347f12384935374d303d5c1ab23
extra : histedit_source : 1143d226673ace563bb5d9ff3c420ded33439791%2C9746a30097304bd2214a0072773dc00c767d31cd
2017-08-24 20:30:17 -07:00
Bas Schouten 64bb6354b5 Bug 1363922 - Part 2: Estimate scale of frames using their transformation relative to the root frame. r=mstange
MozReview-Commit-ID: HTDaOz7sz5c
2017-08-25 00:21:55 +02:00
Kevin Hsieh 3e2984d1e1 Bug 1367860 (part 5) - Add testcases. r=dbaron
MozReview-Commit-ID: E29lR1RMDp4
2017-08-18 14:46:45 -07:00
Nazim Can Altinova 9c729626a5 Bug 1367860 (part 4) - Update CSS fallback font when lang changes (stylo). r=manishearth
MozReview-Commit-ID: AeBHXc0mIVn
2017-08-18 14:42:13 -07:00
Kevin Hsieh 13b2e9b2ef Bug 1367860 (part 3) - Construct language-specific default variable font as fallback font, not specified font. r=dbaron
MozReview-Commit-ID: 5kBHhvacxbS
2017-08-18 12:56:02 -07:00
Kevin Hsieh f06719d4ed Bug 1367860 (part 2) - Update CSS fallback font when lang changes. r=dbaron
MozReview-Commit-ID: 1VzxKnJJ1kD
2017-08-18 11:30:21 -07:00
Kevin Hsieh 64b2dce89a Bug 1367860 (part 1) - Handle CSS font-family units using switch instead of if. r=dbaron
MozReview-Commit-ID: DBwSHM8kfGP
2017-08-18 11:26:44 -07:00
Nazım Can Altınova 2d33fd4586 Bug 1355721 - stylo: Update test expectations for font feature values lookup r=me
MozReview-Commit-ID: Fv9HR1jpc5h

--HG--
extra : rebase_source : f665095e74a20ecc34d8b6533446fe3d2d97fc0e
extra : amend_source : 16b945dd41de53ccbc0e7cbf1eb43331257c6e42
2017-08-24 20:17:39 -07:00
Bas Schouten a2109666bb Bug 1363922 - Part 1: Remember about the reference frame during BuildDisplayList for ScrollFrameHelper so GetScrolledRect can use it. r=mstange
MozReview-Commit-ID: 8GO6xuSH5xY
2017-08-17 15:45:30 +02:00
Nazım Can Altınova acd63fe809 Bug 1355721 - Change nsCSSFontFeatureValuesRule.h to follow style guideline r=emilio
MozReview-Commit-ID: DUd4VTZQ33X

--HG--
extra : rebase_source : 3dcdbb663e51ddc539c8aabd075e7374f3dbe667
2017-08-13 23:06:33 -07:00
Nazım Can Altınova b2b88364dd Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
MozReview-Commit-ID: 7wgQ1NCn7vL

--HG--
extra : rebase_source : 6c774e87b8bd3f30d819302aba5a73a50047981a
2017-08-23 18:05:53 -07:00
Nazım Can Altınova 75f1f81153 Bug 1355721 - Change nsCSSFontFeatureValuesRule.h to follow style guideline r=emilio
MozReview-Commit-ID: DUd4VTZQ33X

--HG--
extra : rebase_source : c2772a233015b1ff419716ff9e34926d4a1a949f
2017-08-13 23:06:33 -07:00
Nazım Can Altınova 00f1cc4565 Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
MozReview-Commit-ID: 7wgQ1NCn7vL

--HG--
extra : rebase_source : c104c2b09ebfbf5cdb98bc5638473cac1bfc40c9
2017-08-23 18:05:53 -07:00
Hiroyuki Ikezoe ffc4667148 Bug 1392851 - A reftest to check that we don't share styles for elements that have animations which are about to be removed. r=birtles
This was a test case for bug 1379203 (Google Inbox issue), but to pass this test
also needs the fix in this series to cancel animations when changing
animation-name to 'none' in the specified CSS rule.

Actually the fix in this series also fixes the Google Inbox issue so that this
test can pass without the fix for the Google Inbox issue. But even so without
the fix for bug 1379203, the style data for the first div element in this test
is cached and the second div element uses the cached data.

MozReview-Commit-ID: GfKSDfTZef4

--HG--
extra : rebase_source : caad72ed69e4ebeec8b8cad25949ea69e3bb652e
2017-08-24 18:27:31 +09:00
Hiroyuki Ikezoe 3fc40c42f2 Bug 1392851 - Try to update running CSS animations when CSS rules are changed. r=birtles
In the case where values in CSS rules changed directly by CSSOM, the old
value in the CSS rule block is immediately replaced by the new one. So if
the element, which is applied to the CSS rule, has running animations, the
new value is used during cascading process in animation-only restyle. Thus
in a subsequent normal restyle, we can't tell whether the value in the CSS
rule has changed or not. As a result, transitions may not be triggered
(bug 1393323) and CSS animations may not be cancelled if the updated
animation-name is 'none' (this bug).

For the latter case of CSS animations where animation-name has been updated to
'none', this patch introduces a workaround whereby we trigger an update of
running animations whenever the traversal is triggered by changes to CSS rules
and we have existing CSS animations.

change-animation-name-to-none-in-rule.html fails without servo #18214, succeeds
with this patch.  Other two tests succeed regardless of the PR.

MozReview-Commit-ID: BrZgTNk9w41

--HG--
extra : rebase_source : 7a55f54a0f94c8db02639f9d8c89f785b3a17a1b
2017-08-24 18:27:10 +09:00
Brad Werth c946e3ebb0 Bug 1387933 Part 2: Gecko-side add a reusable sheets parameter to Servo_StyleSheet_FromUTF8Bytes, and mark a test as passing. r=xidorn
MozReview-Commit-ID: 9wqJW3SqbbM

--HG--
extra : rebase_source : 2d6711c411ec5ef22866a4b3aefcbd9c70619f31
2017-08-22 13:53:53 -07:00
Francois Marier 719c2b26b8 Bug 1388938 - Disable channel annotation and flashblock in tests harnesses.r=hchang
Since these tests harnesses are already disabling Safe Browsing and tracking
protection, they should also disable the other two features that cause
lists to be downloaded from the Mozilla shavar server.

MozReview-Commit-ID: 2158qRU4XZx

--HG--
extra : rebase_source : 287bfb7580538cca7f58ab035b7141166346c318
2017-08-23 15:47:37 -07:00
Bill McCloskey 9cd553af84 Bug 1350432 - Remove mEventObservers to SynchronizedEventQueue (r=froydnj)
MozReview-Commit-ID: 8Xt1gdxFDr4
2017-08-25 10:28:23 -07:00
J. Ryan Stinnett cb71aaebe0 Bug 1393233 - Add env var to disable Stylo. r=bholley
MozReview-Commit-ID: BjNWGh3LQIj

--HG--
extra : rebase_source : 882c78e175d2cd2d2f3b389ee3240fe7eb2a6c94
2017-08-23 17:58:32 -05:00
Manish Goregaokar 6a71487e1d Bug 1393580 - Add crashtest; r=emilio
MozReview-Commit-ID: CCTkfzhsbAF
2017-08-25 09:35:21 -07:00
J. Ryan Stinnett 3c203c6204 Bug 1393645 - Stylo misc. reftest updates. r=manishearth
MozReview-Commit-ID: DjArDBUL0j5

--HG--
extra : rebase_source : 0c9ba32fb8331ac7922fe1aedde5b218de0786f6
2017-08-24 18:49:05 -05:00
Sebastian Hengst 2e163c99b1 Backed out changeset 1bfbae351dd7 (bug 863246) 2017-08-25 16:43:44 +02:00
Sebastian Hengst aeacc34883 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6TGQRm8SSk0
2017-08-24 13:28:57 +02:00
Kris Maglione 821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Wes Kocher fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00