Commit Graph

539240 Commits

Author SHA1 Message Date
Samuel Vargas
8e0b9d6ceb Bug 1367570 - Explicitly set vertex attribs [1,3] to opaque black - r=jgilbert 2017-05-26 19:48:50 -07:00
Nathan Froyd
d76955c52a Bug 1368099 - part 2- quote suggested Stylo paths on Windows; r=rillian
We install the tooltool packages to ${HOME}/.mozbuild by default, and
${HOME} may have spaces on Windows.  The arguments to the command-line
options need to be quoted appropriately.

DONTBUILD because NPOTB
2017-05-26 22:36:35 -04:00
Nathan Froyd
17c85c1c0d Bug 1368099 - part 1 - provide the correct --with-libclang-path suggestions; r=rillian
libclang.dll lives in the bin/ directory, not the lib/ directory.
2017-05-26 22:36:35 -04:00
Jeff Muizelaar
783be16285 Bug 1367147. Draw alpha masks to A8 surfaces and use them directly. r=jwatt
This can keep things on the GPU and makes it better for recording surfaces.
2017-05-26 22:32:24 -04:00
ohn0
e64bada746 Bug 1367062 - Change std::map to std::unordered_map in APZCTreeManager r=botond
MozReview-Commit-ID: yHXUFw2fx6
***
Bug 1367062 - Change std::map to std::unordered_map in APZCTreeManager
changed gfx/layers/FrameMetrics.h by adding a ScrollableLayerGuidHash class that will be used as the hashing function for std::unordered_maps which use ScrollableLayerGuid as keys.
changed gfx/layers/apz/src/APZCTreeManager.cpp by changing mApzcMap to a std::unordered_map.
changed gfx/layers/apz/src/APZCTreeManager.h by changing mZoomConstraints to a std::unordered_map.

MozReview-Commit-ID: JmoQzh1MvKK

--HG--
extra : rebase_source : cb7bd9419085f83873c9fd019c4a379fae0ee278
2017-05-26 19:41:13 -04:00
Manish Goregaokar
cbeac5cf6f Bug 1341102 - Fix stylo heap analysis bustage ; r=bustage
MozReview-Commit-ID: HvjpMtB8VYL
2017-05-27 15:29:49 -07:00
Manish Goregaokar
f588139b16 Bug 1367275 - Part 5: stylo: Support -moz-min-font-size-ratio; r=xidorn
MozReview-Commit-ID: xRxkFJodeK
2017-05-27 13:23:15 -07:00
Manish Goregaokar
15ca68fab4 Bug 1367275 - Part 4: stylo: Support -moz-context-properties; r=xidorn
MozReview-Commit-ID: 6eNeT6v8Nl6
2017-05-27 13:22:22 -07:00
Manish Goregaokar
fa7f5ead89 Bug 1367275 - Part 3: stylo: Support font-variation-settings; r=xidorn
MozReview-Commit-ID: 41xVlR8GuOr
2017-05-27 13:22:14 -07:00
Manish Goregaokar
616a37d6b7 Bug 1367275 - Part 2: stylo: Support -moz-window-shadow; r=xidorn
MozReview-Commit-ID: LiYlfmaCfHH
2017-05-27 13:21:44 -07:00
Manish Goregaokar
b61188e68e servo: Merge #17058 - stylo: Support remaning longhands (from Manishearth:stylo-randomprops); r=emilio
r=xidorn https://bugzilla.mozilla.org/show_bug.cgi?id=1367275

Source-Repo: https://github.com/servo/servo
Source-Revision: 369d5cf1242632efeb56278e18a5ea25a3c933a5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 97e668f065ac48f4ec15be64d14f1e021e1dd288
2017-05-27 13:37:59 -05:00
Michael Layzell
b0485183ce Bug 1365719 - Add a IPC_SYNC_RECEIVE_MS probe to record time taken to process sync IPC messages in the target process, dr=bsmedberg, r=ehsan
MozReview-Commit-ID: 4TOlSFX68Vn
2017-05-26 16:18:28 -04:00
Nathan Froyd
3be5437549 Bug 1364588 - part 5 - pass the checkout_root down to stylo package installation; r=rillian
This change ensures that when we're running bootstrap in standalone
mode, we find the correct mach to invoke.

DONTBUILD because NPOTB
2017-05-26 16:07:01 -04:00
Nathan Froyd
05acc3e2cb Bug 1364588 - part 4 - compute the firefox checkout root; r=rillian
We'll need this information to be able to locate mach later, since we
can't assume that mach is just several directories above the script
we're currently running.
2017-05-26 16:07:01 -04:00
Nathan Froyd
9c82ef3194 Bug 1364588 - part 3 - check for a clone before installing Stylo packages; r=rillian
If we're running bootstrap from inside a mozilla-central checkout, we'll
have all the necessary files that we need to install tooltool packages
via `mach artifact toolchain`.  If we're running bootstrap from a
downloaded bootstrap.py, however, it's possible that we failed to clone
the repository.  We need to account for that situation and provide
instructions on how to deal with it.

A consequence of these two mechanisms for bootstrap is that we'll have
to make sure we're invoking `mach artifact toolchain` correctly in both
cases, which we'll handle in subsequent commits.
2017-05-26 16:07:01 -04:00
Nathan Froyd
698311c61c Bug 1364588 - part 2 - move Stylo package installation; r=rillian
Now that we're installing Stylo packages through `mach`, we need to have
`mach` available, which is only true after we've checked for a clone of
the tree.  We move the block performing the installation in this commit
and then fixup resulting problems in future commits.
2017-05-26 16:07:01 -04:00
Nathan Froyd
234629de6e Bug 1364588 - part 1 - use `mach artifact toolchain' to download clang Stylo packages; r=rillian
Using this command is more robust than our current method, and brings
several benefits, such as smart caching of the downloaded toolchain.  We
change the clang package downloaded for Windows with this change, but
bindgen has been updated to work well with LLVM 5.0, so there should be
no problems.
2017-05-26 16:07:01 -04:00
Sylvestre Ledru
d525178ff0 Bug 1368106 - Use the new MOZ_DIAGNOSTIC_ASSERT_ENABLED instead of several defines r=glandium
MozReview-Commit-ID: KOM35SQnoRh

--HG--
extra : rebase_source : 6ece3e3e7c287ef1bfc133470a8cd451f8e3971e
2017-05-26 18:53:35 +02:00
Gabriele Svelto
4db26cd069 Bug 1364673 - Hide the mouse throbber when running the pingsender on Windows; r=Dexter
This patch uses the functionality introduced in bug 1366711 to launch the
pingsender without showing its console window nor a mouse throbber. This also
reverts the pingsender into a console application.

MozReview-Commit-ID: BTcqAkR9UKB

--HG--
extra : rebase_source : bf982d54a5a82c660ab980025498a624730520bf
2017-05-29 15:28:36 +02:00
Xidorn Quan
ac6cc1d36a Bug 1368418 part 3 - Remove nsCategoryImp. r=emk
MozReview-Commit-ID: 5qCoeqfM2s5

--HG--
extra : rebase_source : 6dc1693ce61bea4ec35469a3388c75a9fb64e5b3
2017-05-29 16:17:39 +10:00
Xidorn Quan
143db590ff Bug 1368418 part 2 - Remove nsCaseConversionImp2. r=emk
Code search indicates that it is used neither internally nor in any
addon. It should be safe to remove.

MozReview-Commit-ID: K3dBoydIwGk

--HG--
extra : rebase_source : 984aee342b0006af94eec1cd7fce123bccea4bd7
2017-05-29 16:10:36 +10:00
Xidorn Quan
9dc47921e1 Bug 1368418 part 1 - Remove nsISemanticUnitScanner. r=emk
Code search indicates that this is not used internally, and the only
addon uses this is Breadcrumbs, which hasn't been updated since 2009,
thus it is already not compatible with current Firefox.

MozReview-Commit-ID: 1lUs7ceaaE1

--HG--
extra : rebase_source : 87060c33291ba415c6c70767c132c4a5b74d29fb
2017-05-29 16:05:29 +10:00
Masayuki Nakano
5b4491bb2c Bug 1368408 Selection::SelectFrames() can assume that the result of nsRange::GetStartParent(), nsRange::GetEndParent() and nsIContentIterator::GetCurrentNode() never returns nullptr in it r=mats
Selection::SelectFrames() is an internal method of Selection, it always handles positioned range.  So, neither aRange->GetStartParent() nor aRange->GetEndParent() never returns nullptr.

Additionally, nsIContentIterator::GetCurrentNode() shouldn't return nullptr until IsDone() returns true.

MozReview-Commit-ID: 1IS4nMLukt

--HG--
extra : rebase_source : a4eee06580519adf2233f535abfdf50ac8730a19
2017-05-29 14:25:11 +09:00
Masayuki Nakano
3b818bdc60 Bug 1368397 part 4 - Rename Selection::setAnchorFocusRange() to Selection::SetAnchorFocusRange() r=mats
MozReview-Commit-ID: BhiGhxSAUbl

--HG--
extra : rebase_source : f47167119cace1bf313710b5e05c922e793e9df5
2017-05-30 13:26:09 +09:00
Masayuki Nakano
241b3fdf37 Bug 1368397 part 3 - Rename Selection::addTableCellRange() to Selection::AddTableCellRange() r=mats
MozReview-Commit-ID: 2koKrL8pyKT

--HG--
extra : rebase_source : c197e311eb2f30ee1c09c9e7b3734cebabd22f36
2017-05-29 13:31:11 +09:00
Masayuki Nakano
24f6ae8001 Bug 1368397 part 2 - Rename Selection::getTableCellLocationFromRange() to Selection::GetTableCellLocationFromRange() r=mats
MozReview-Commit-ID: 8P8Tq9u0xEz

--HG--
extra : rebase_source : fb8f0fd15334c08cc318bb45786181f669467b01
2017-05-29 13:11:57 +09:00
Masayuki Nakano
79dec39e8b Bug 1368397 part 1 - Rename Selection::selectFrames() to Selection::SelectFrames() r=mats
MozReview-Commit-ID: FaZeLqVwgOK

--HG--
extra : rebase_source : e9c87b48d89231cdd2bf6c942382a541e326ace7
2017-05-29 12:27:09 +09:00
Cameron McCormack
dd07264e50 Bug 1367647 - Test expectation updates. r=emilio
MozReview-Commit-ID: 8UEX25GCpJX

--HG--
extra : rebase_source : fb14632f58de7169ad0ef7a420b629eaeac152dd
2017-05-28 19:33:06 +08:00
Cameron McCormack
1f4808b691 servo: Merge #17087 - style: Support a restyle hint that indicates all descendants must be recascaded (from heycam:recascade); r=emilio
This also moves the result of deciding whether to recascade from the RestyleData into the RestyleHint.

Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1367647.

Source-Repo: https://github.com/servo/servo
Source-Revision: aa4aef379d0962523409668dbc301f6dc8138706

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e2d2e62ab8c60cc13ea288498a334c3d2b9fe91b
2017-05-29 20:16:12 -05:00
Daisuke Akatsuka
d27e5208ee Bug 1367283 - Part 9: Add tests to confirm valid 'inherit' value of -moz prefixed properties during animation. r=hiro
Test to confirm valid 'inherit' value of -moz prefixed properties during
animation. This also means to confirm the algorithm of clone_XX methods
of stylo.
NOTE: This file should have only animatable properties that have '-moz' prefix.

In this patch, appends following properties.

* -moz-box-align
* -moz-box-direction
* -moz-box-orient
* -moz-box-pack
* -moz-float-edge
* -moz-orient
* -moz-osx-font-smoothing
* -moz-user-focus
* -moz-user-input
* -moz-user-modify
* -moz-window-dragging

MozReview-Commit-ID: GfBfMkvfgGm

--HG--
extra : rebase_source : f2e220ccc0c6864ad15416a2cda470f64eeb62be
2017-05-30 10:42:59 +09:00
Makoto Kato
ecc0e24787 Bug 1368387 - Remove nsIDOMText usages from Editor. r=masayuki
nsIDOMText is old interface and it needs QI to access node etc.  So we should use Text etc.

MozReview-Commit-ID: 7VrTrE0p2Q9

--HG--
extra : rebase_source : baa6601708d4b71e624a4dc893cc413d7743dbeb
2017-05-29 11:28:21 +09:00
Xidorn Quan
bbbd718f2c Bug 1341102 - Update test expectations.
MozReview-Commit-ID: C8hTU5S3Tgg

--HG--
extra : rebase_source : 98559841c5381589f06f09f0f5c31d7b7ed608f3
extra : amend_source : 031eb125fff71dbb1ae112e387e5c183c07c947d
2017-05-30 10:56:51 +10:00
Xidorn Quan
abe92a8de5 Bug 1352968 part 10 - Update test expectation. r=heycam
MozReview-Commit-ID: DAZz0vRIfkh

--HG--
extra : source : 7e4d56217e0b2ea883b3b803d44e95aca5342c48
2017-05-30 11:10:25 +10:00
Xidorn Quan
7b8459d725 Bug 1352968 part 9 - Notify document about rule insertion only if a rule doesn't have pending child sheet. r=heycam
MozReview-Commit-ID: 3ADpnJuhHXf

--HG--
extra : source : 17633a6e12bf4f9651d35ae0c40fa2b6bca2faa0
2017-05-30 11:10:25 +10:00
Xidorn Quan
1269699516 Bug 1352968 part 8 - Construct @import rule object eagerly. r=heycam
MozReview-Commit-ID: HrgZnW21dHz

--HG--
extra : source : cedc65c6376373d54e623dc5cfadaa2de92909cb
2017-05-30 11:10:25 +10:00
Xidorn Quan
a96cd2ac8a Bug 1352968 part 7 - Make RuleHasPendingChildSheet a static method of StyleSheet. r=heycam
MozReview-Commit-ID: HPJgsFftT6f

--HG--
extra : source : 1895bd31f6c88e1be8c710910dec6e773d1a233d
2017-05-30 11:10:25 +10:00
Xidorn Quan
59a754beda Bug 1352968 part 6 - Remove unused Servo_ImportRule_GetSheet. r=heycam
This function was initially added in bug 1304792, but its only usage was
later removed in bug 1352763.

The name conflicts with another function (which basically does the same
thing without refcount manipulation) I'm adding in a later patch, so I
have to remove it first.

MozReview-Commit-ID: 6fO4EDJUg7R

--HG--
extra : source : 3f7f683b64f42d22a09138cfe01d8ca42d435aa3
2017-05-30 11:10:25 +10:00
Xidorn Quan
a17c79bc30 Bug 1352968 part 5 - Add a param to ctor of ServoCSSRuleList for top level list. r=heycam
@import rules can only exist in top level rule lists, and we need the
stylesheet to construct the import rules.

MozReview-Commit-ID: APCyGW8re8f

--HG--
extra : source : b9b78672249f390d56d71fa46dfa4b4cd49ef182
2017-05-30 11:10:25 +10:00
Xidorn Quan
1b312ca843 Bug 1352968 part 4 - Change the direction of child stylesheet list. r=heycam
It seems no one actually care about the order of the list, and the order
is completely meaningless if the script insert new @import rules.

Changing the order makes inserting faster, and make it easier for later
patch to get the latest inserted child sheet.

MozReview-Commit-ID: 72eKqVoPbZ7

--HG--
extra : source : 6b2b471b993f33f9d06af01e4863cd6c5d34ce3a
2017-05-30 11:10:25 +10:00
Xidorn Quan
4f83161da8 Bug 1352968 part 3 - Add basic CSSOM support for @import rule. r=heycam
Initialization of mChildSheet will be implemented in a later patch.

MozReview-Commit-ID: 3SX3GJEhpBQ

--HG--
extra : source : e45a434d0e9d2e2d8c628b17c2074b8f5de4b1ee
2017-05-30 11:10:25 +10:00
Xidorn Quan
4daf3c74b9 Bug 1352968 part 2 - Move mOwnerRule to StyleSheet and use dom::CSSImportRule instead of css::ImportRule. r=heycam
MozReview-Commit-ID: DTAWGHIUAQX

--HG--
extra : source : 6e84cc987e02c932c95b79cebc89e9b49f22f86a
2017-05-30 11:10:25 +10:00
Xidorn Quan
ae513f0ff4 Bug 1352968 part 1 - Add separate CSSImportRule base class. r=heycam
MozReview-Commit-ID: 5h6dmij1elX

--HG--
extra : source : 5205d8d42a0f9e8f0c013c13a23cf5d85cc37f2f
2017-05-30 11:10:25 +10:00
Xidorn Quan
65bfd17373 Bug 1352968 part 0 - Fix up before adding new files. r=heycam
MozReview-Commit-ID: HSrROKVr1dD

--HG--
extra : source : b22cf2f1834994ee89503dfa1b394ff2ec4b81bb
2017-05-30 11:10:25 +10:00
Xidorn Quan
15091c9b2a servo: Merge #17086 - Add CSSOM support of @import rule for stylo (from upsuper:bug1352968); r=heycam
This is the Servo side change of [bug 1352968](https://bugzilla.mozilla.org/show_bug.cgi?id=1352968).

Source-Repo: https://github.com/servo/servo
Source-Revision: 085743560caffc0d25c7225ac979a857efd82155

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 446fee2038c6da63ed23b4b162fd619e12cbc650
2017-05-29 18:51:45 -05:00
Mike Conley
e4124cb8f6 Bug 1367621 - Regression test to ensure that the URL bar is focused when new tabs are opened in fullscreen mode. r=Felipe
MozReview-Commit-ID: 66Rl2U2Kdbl

--HG--
extra : rebase_source : 04c00eaa006db0b7369de3a9f3989e0e44d9145c
2017-05-26 12:21:25 -04:00
Mike Conley
f34697f42a Bug 1367621 - Make sure to focus the URL bar for 'empty' tabs even while in full screen. r=Felipe
In the e10s-case, we might be calling _adjustFocusAfterTabSwitch before updateCurrentBrowser has
been called, meaning that mCurrentTab hasn't been updated yet. We use the newTab argument instead.

MozReview-Commit-ID: A2ZvbyxSs8t

--HG--
extra : rebase_source : 132e965efb8ee038e3c2d668a74b2c33688a8dc5
2017-05-26 11:36:53 -04:00
Mike Shal
93714d3413 Bug 1319226 - Process JARManifests in the tup backend; r=chmanchester
The JARManifests are relatively straightforward since they can be
converted into FinalTargetFiles by _consume_jar_manifest(). Since these
can contain RenamedSourcePaths, we no longer assert an error for those.
The main difference is that some JARManifests can result in
preprocessing .css files, which use a different marker than the default.

The two odd cases are bookmarks.html.in and buildconfig.html. The first
relies on an l10n define in a Makefile, while the latter needs CXXFLAGS.
The faster make backend works around these by defining
BOOKMARKS_INCLUDE_DIR to the en-US version, and skips the CXXFLAGS case
by defining BUILD_FASTER=1, so that is what the tup backend does for now
as well.

MozReview-Commit-ID: LlmNjQ2g40j

--HG--
extra : rebase_source : 2665a8115fac5329f2ddb49887b08607bcd4aa84
2017-05-26 10:43:31 -04:00
Kartikaya Gupta
c3d1217b06 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 91TVUCwwNt4
2017-05-26 08:28:53 -04:00
Valentin Gosu
e84601e7a7 Bug 1367365 - Disable RCWN r=me a=tomcat
MozReview-Commit-ID: GuIC5Gv09Z3

--HG--
extra : amend_source : 38de21ab56fc9b05109bfc96511f81c718c136d7
2017-05-26 10:59:16 +03:00
Carsten "Tomcat" Book
e92dffa1b6 merge mozilla-inbound to mozilla-central a=merge 2017-05-26 11:06:11 +02:00