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

64079 Коммитов

Автор SHA1 Сообщение Дата
arthur.iakab 5bf85a2548 Backed out 4 changesets (bug 1372381) for artifact build bustages
Backed out changeset 56c7ffeaa9fd (bug 1372381)
Backed out changeset 4e0f7fe818d0 (bug 1372381)
Backed out changeset 92a96d6b599b (bug 1372381)
Backed out changeset 620bdfafd42f (bug 1372381)

--HG--
extra : rebase_source : f3f465077a9a4198c88caf8977a02b384ccbef01
2018-05-01 01:39:08 +03:00
Chris Manchester d0a6e686c9 Bug 1372381 - Generate automation.py with GENERATED_FILES rather than Makefile.in r=mshal
This commit also removes "DEFAULT_APP", which is unused.

MozReview-Commit-ID: 5YYaC5LJqUn

--HG--
extra : rebase_source : 11a5264758ab3b2d8faef1e50a666981988457f2
2018-04-30 11:08:59 -07:00
Emilio Cobos Álvarez e7d5158b29 Bug 1458458: Move setting SMIL override values into nsDOMCSSAttrDeclaration. r=hiro
MozReview-Commit-ID: KkXGtl6vz2L
2018-05-02 18:09:05 +02:00
Emilio Cobos Álvarez 45a1c9c1db Bug 1458458: Minor nsDOMCSSAttrDeclaration cleanup. r=hiro
MozReview-Commit-ID: LA249WzjZ5n
2018-05-02 18:08:57 +02:00
Emilio Cobos Álvarez fbc8297c7c Bug 1458458: Remove dead code from nsDOMCSSAttributeDeclaration. r=hiro
MozReview-Commit-ID: 67r8s3zDZMA
2018-05-02 18:05:13 +02:00
Neil Deakin 5d96e7d4d3 Bug 1444920, remove the debug='true' flag from xul elements and the corresponding debug frame flags, r=dholbert 2018-05-02 10:32:54 -04:00
Brad Werth edc885a2e3 Bug 1451499 Part 3: Implement polygon for shape-margin > 0. r=jfkthame
MozReview-Commit-ID: BJtGaJBQMQr

--HG--
extra : rebase_source : 28673e9758b15647dd8603f87d997566f257c62c
2018-04-19 11:47:04 -07:00
Brad Werth 51417a7fcd Bug 1451499 Part 2: Stub in support for polygon with shape-margin == 0. r=jfkthame
MozReview-Commit-ID: 2biFnthoWin

--HG--
extra : rebase_source : a3bb7051555e1b19be1864de777dc2b7c96b24ed
2018-04-19 11:27:28 -07:00
Brad Werth c3368afe4a Bug 1451499 Part 1: Uplift some interval methods from ImageShapeInfo to ShapeInfo. r=jfkthame
MozReview-Commit-ID: AMwujPuTeOm

--HG--
extra : rebase_source : 8872b15c63d39473aa39c9e58a70fd363c0fc031
2018-04-19 12:17:44 -07:00
Emilio Cobos Álvarez 3b8557aa3e Bug 1453196: Fix MathML reframing code when the root is a MathML element. r=bz
MozReview-Commit-ID: CPd40oHIT5w

--HG--
extra : rebase_source : 64974ab5eb9adea507caf16c330a272f818951ed
2018-04-14 22:58:13 +02:00
Nicolas Silva 85d46efa66 Bug 1457241 - Add fuzziness to some of the gradient reftests. r=kats
MozReview-Commit-ID: 4sfWX1tbbKB

--HG--
extra : rebase_source : 05c26de1f9627052a0705f2a20f197a6d3d1fe68
2018-04-30 10:13:08 -04:00
Xidorn Quan b50ebda124 Bug 1448759 part 5 - Remove nsCSSPropList.h and nsCSSPropAliasList.h. r=heycam
MozReview-Commit-ID: EKx2g7CmvqB

--HG--
extra : rebase_source : 11ba4920129e22bd6469b2e89cd6e738d2d921b5
2018-04-29 22:09:17 +10:00
Xidorn Quan 2e130c425c Bug 1448759 part 4 - Switch gAllSubpropTable to use generated ServoCSSPropList.h. r=heycam
MozReview-Commit-ID: IfzfFpw5ABz

--HG--
extra : rebase_source : ce27e8440108763c0758f9dc071b7990fc4034b6
2018-04-29 22:03:48 +10:00
Xidorn Quan 8f6370d1d3 Bug 1448759 part 3 - Remove kKeywordTableTable and LookupPropertyValue. r=heycam
MozReview-Commit-ID: F2EbL0hSgPX

--HG--
extra : rebase_source : 8394244ec3cf903439972d325f6976e3a02d70e1
2018-04-29 21:41:29 +10:00
Xidorn Quan 97d42bea68 Bug 1448759 part 2 - Have nsStyleUtil::AppendBitmaskCSSValue take a keyword table directly. r=heycam
MozReview-Commit-ID: zjCWjA5W0E

--HG--
extra : rebase_source : aea5c0e305322e5cc346a3d658773339aeebc82f
2018-04-29 21:34:52 +10:00
Xidorn Quan f2ba299166 Bug 1448759 part 1 - Make KTableEntry an independent type. r=heycam
MozReview-Commit-ID: oZfJAigThN

--HG--
extra : rebase_source : 6a0efbf40fed8c9eaba7bb3af74d281b536677c8
2018-04-29 21:17:26 +10:00
Xidorn Quan 1d799f9bea Bug 1454591 part 6 - Remove CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND. r=heycam
MozReview-Commit-ID: RoKvxNSSdo

--HG--
extra : rebase_source : 73dc88397673c8a72b73bf639392df4b9efb3e90
2018-05-04 15:20:58 +10:00
Xidorn Quan 48dc9dc70a Bug 1454591 part 5 - Generate subproperty lists from Servo data. r=heycam
I manually diffed the generated lists and the original ones from in
nsCSSProps.cpp. All generated lists seem to contain the same set of
subproperties as their old correspondents.

There are still some differences:

Order of subproperties of many shorthands is changed. There are many
comments in the old lists stating that the order is important, but they
are mostly for serialization. I auditted all users of the subproperty
lists, and it doesn't seem to me any of them relies on the order.

gOutlineRadiusSubpropTable is renamed to gMozOutlineRadiusSubpropTable
which I don't think is a problem at all, but maybe worth mentioning.

MozReview-Commit-ID: 190SBZfxVOW

--HG--
extra : rebase_source : cd5e8b1667a4550542c361d31361e45456c6b6a3
2018-05-04 15:17:05 +10:00
Xidorn Quan bd99a99f09 Bug 1454591 part 2 - Refactor GenerateCSSPropsGenerated.py. r=heycam
This removes the extra template file and uses the script to generate
the whole nsCSSPropsGenerated.inc file directly, because it doesn't
seem to really make much sense to have them separate.

One behavior change to this refactor is that, the static assertions
no longer include aliases. Other parts of the generated data all ignore
aliases, so checking property id of aliases isn't really useful. It
makes the code simpler everywhere to just strip aliases from the list
at the very beginning.

MozReview-Commit-ID: BYYvnCOqJwC

--HG--
extra : rebase_source : d683f2dd54e38c6b580435568820c8bc3f52cd70
2018-05-04 14:37:41 +10:00
Xidorn Quan 7db648bdec Bug 1454591 part 1 - Generate more structured data in ServoCSSPropList.py. r=heycam
This patch changes ServoCSSPropList.py to use classes for properties.
This allows extending the data in the file without needing to update all
users of this file.

Sorting in GenerateCSSPropsGenerated.py is removed because the data file
has the right order already.

MozReview-Commit-ID: D74bItCfpPH

--HG--
extra : rebase_source : e0138c255f77515f491496fcb8680686362f4e9e
2018-05-04 13:44:51 +10:00
Noemi Erli 08df4e6e11 Merge inbound to mozilla-central. a=merge 2018-04-29 12:48:02 +03:00
Andreea Pavel 66f222b56d Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-28 20:42:49 +03:00
Andreea Pavel 443c91d4b4 Merge inbound to mozilla-central. a=merge 2018-04-28 20:30:18 +03:00
Robert Longson dac58f515c Backout Bug 149075 - While it is compatible with the SVG specification, all other browsers allow it 2018-04-28 16:09:38 +01:00
Xidorn Quan 5efc0123ab Bug 1434130 part 15 - Remove kCSSRawPredefinedCounterStyles. r=emilio
MozReview-Commit-ID: 5aiU0VChbpY

--HG--
extra : source : 3943b16b0d0b6ba4f2bb04423daf609fd204c10e
2018-04-29 09:03:31 +10:00
Xidorn Quan f7399c7c0f Bug 1434130 part 14 - Remove nsCSSProps::kParseVariantTable. r=emilio
The parsevariant field is not removed from nsCSSPropList.h since that
file is going away soon anyway.

MozReview-Commit-ID: 3nRBQtmZRKG

--HG--
extra : source : dcb6ff9ec9f61d2ea99253cd34a9d904f89cfe17
2018-04-29 09:03:31 +10:00
Xidorn Quan 5050b395ae Bug 1434130 part 13 - Use Servo code to back GetCSSValuesForProperty. r=emilio,gl
This causes various changes to properties-db.js and also many devtools
tests get updated.

There are two changes affect multiple tests:

* `calc` gets removed from everywhere. We never have it listed in all
  properties which deserve it, and doing so without much false positive
  (i.e. properties don't deserve but get it) can be pretty tricky.
  So they are just removed for now.

* The complete color keyword list is no longer included, and instead,
  "COLOR" is prepended to the list directly. We can probably remove
  the related code which replaces color keywords with "COLOR" from
  devtools. Note that, with stylo enabled, the list is already unrelated
  to what the parsing code uses. We should eventually re-enable the
  disabled test here after we can get the color list from cssparser
  in bug 1456715.

Other changes to properties-db.js seem to be valid, some of them also
affect tests:

* `{-webkit-,}align-{content,items,self}` get `first baseline`, `safe`,
  `unsafe`, and lose `left` and `right`.

* `{-moz-,-webkit-,}{animation,transition}{,-timing-function}` has a
  new `frame` keyword which is a function value in `<timing-function>`.

* `{background,{-webkit-,}mask}-position-x` lose `top` and `bottom`, and
  correspondingly `{background,{-webkit-,}mask}-position-y` lose `left`
  and `right`.  They don't deserve those values.

* `{background,{-webkit-,}mask}{,-size}` get `auto`.

* `border` shorthand loses `<image>` values as well as other keyword
  values for `border-image-*` subproperties, because they aren't parsed
  on the shorthand.

* `{-moz-,}border-image{,-width}` get `auto`.

* `-moz-context-properties` gets `none`.

* `cursor` get some -moz-prefixed values as well as `url`.

* `fill` and `stroke` get the color keywords.

* `{-webkit-,}filter` get the keywords and function names.

* `font` shorthand loses values from many of `font-variant-*` properties
  because they are not parsed there.

* `font-variant` and `font-variant-alternates` get function values of
  the longhand.

* `font-variant-{east-asian,ligatures,numeric}` get `normal`, and
  `font-variant-ligatures` in addition gets `none`.
  `font-{feature,variation}-settings` also get `normal`.

* `grid` and `grid-template-{areas,columns,rows}` get `none`.

* `grid`, `grid-template`, and `grid-template-{columns,rows}` get
  `auto`, `fit-content`, `minmax`, and `repeat`.

* `grid-auto-{columns,rows}` get `auto`, `fit-content` and `minmax`.

* `-moz-image-region` gets `auto` and `rect`.

* `{-webkit-,}justify-content` lose `baseline`, `last baseline`, and
  get `safe` and `unsafe`.

* `{justify,place}-items` get `first baseline`, `legacy`, `safe`,
  `unsafe` and lose `auto`.

* `{justify,place}-self` and `place-content` get `first baseline`,
  `safe`, and `unsafe`.

* `outline{,-style}` get `hidden`.

* `scroll-snap-coordinate` gets `none`, and `scroll-snap-points-{x,y}`
  gets `none` and `repeat`.

* `shape-outside`, `text-emphasis{,-style}` get all the keyword values
  and function names they deserve.

* `stroke-dasharray` gets `none`.

* `text-combine-upright` drops `digits` which we never implemented.

* `{-moz-,-webkit-,}transform` and `-moz-window-transform` get their
  transform function list. `accumulatematrix` and `interpolatematrix`
  aren't real CSS value but they have `#[css(function)]` specified.
  We should probably remove them at some point.

* `will-change` gets `auto`.

* All properties accept `<image>` value now gets -webkit-prefixed
  gradient function names, including
  * `background{,-image}`,
  * `{-moz-,-webkit-,}border-image{,-source}`, and
  * `{-webkit-,}mask{,-image}`.

MozReview-Commit-ID: E7Y0CFUFYgW

--HG--
extra : source : bab732c8c531cfca1bcd233f769c25bb2e373773
2018-04-29 09:03:31 +10:00
Xidorn Quan ab9de25533 Bug 1434130 part 8 - Have TextAlign derive ToCss and unship char value from it. r=emilio
MozReview-Commit-ID: CXDnyqzjQkq

--HG--
extra : source : a78f97b583f55fb2373d9629b16883584d93cfd1
2018-04-29 09:03:31 +10:00
Xidorn Quan aa75ec745f Bug 1434130 part 2 - Add collect_values function to SpecifiedValueInfo trait for collecting possible values. r=emilio
This is the basic structure of the stuff. Following patches will fill
the gap between Gecko and Servo on value generating, and finally hook
it into InspectorUtils.

MozReview-Commit-ID: KNLAfFBiY6e

--HG--
extra : source : e9e5d72857746710ead3cd42481b805efc771389
2018-04-29 09:03:31 +10:00
Xidorn Quan 0192f05add Bug 1434130 part 1 - Skip system font variant for ToCss in font subproperties. r=emilio
System font keywords are not a valid value for those properties.

The newly-added #[css(skip)] would be reused by deriving algorithm of
SpecifiedValueInfo to skip them as well.

MozReview-Commit-ID: EmnhkaA9RR5

--HG--
extra : source : d2fc92ed32f497ff6826228181b19787c1b48cc4
2018-04-29 09:03:31 +10:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Csoregi Natalia aa73cfd14b Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-28 00:55:43 +03:00
Bas Schouten 2c2327c372 Bug 1427063: Have D2D interpret colors in premultiplied space. As it says is its default. r=rhunt
MozReview-Commit-ID: 5OWjHW1CqjN
2018-04-23 19:27:48 +02:00
Cosmin Sabou 68fdb6cf4f Merge inbound to mozilla-central. a=merge 2018-04-27 13:04:36 +03:00
Robert Longson e8cda31517 Bug 1457351 - color attribute should apply to filters. r=heycam 2018-04-27 07:35:43 +01:00
Gerald Squelart 89f75361b3 Bug 1417761 - Remove "layout.css.text-combine-upright.enabled" pref - r=xidorn
Shipped since Firefox 48, other browsers have similar impls, and the related
spec has been in CR since a while ago.
The syntax of this property as implemented should be considered to be pretty
stable, so we can remove this pref.

MozReview-Commit-ID: H7lDsdbUamD

--HG--
extra : rebase_source : fda63805d9dea49a55d57153c841426508a882f6
2018-04-27 11:31:25 +10:00
Boris Zbarsky 93af0eea13 Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot 2018-04-26 23:37:33 -04:00
Boris Zbarsky ba064862db Bug 1455674 part 12. Remove nsIDOMElement use from xpidl in layout. r=mossop 2018-04-26 23:36:30 -04:00
Boris Zbarsky ffa08d7425 Bug 1455674 part 9. Remove nsIDOMElement use from nsIFocusManager. r=qdot 2018-04-26 23:35:19 -04:00
Boris Zbarsky dd4506eee2 Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8 2018-04-26 15:28:31 -04:00
Lee Salzman f27dc02d63 Bug 1457284 - add Skia m66 cherry-picks. r=rhunt
MozReview-Commit-ID: 4naJirEFhiV
2018-04-26 22:45:34 -04:00
shindli af700315a1 Backed out 2 changesets (bug 1457155, bug 1457156) for B failures in builds/worker/workspace/build/src/dom/html/HTMLObjectElement.cpp on a CLOSED TREE
Backed out changeset 8b2a6b54336c (bug 1457155)
Backed out changeset 4e267d999797 (bug 1457156)
2018-04-27 01:34:37 +03:00
Boris Zbarsky 52916ae726 Bug 644603 part 2. Ignore scroll positions when calculating the position of hypothetical boxes. r=dbaron 2018-04-26 17:55:45 -04:00
Boris Zbarsky 8bf73defc4 Bug 644603 part 1. Introduce nsIFrame::GetOffsetToIgnoringScrolling. r=dbaron 2018-04-26 17:53:05 -04:00
Boris Zbarsky 25cec96459 Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8 2018-04-26 15:28:31 -04:00
Emilio Cobos Álvarez 081d926e7b Bug 1457026: Teach nsDocumentEncoder about display: contents. r=mats
MozReview-Commit-ID: 5F3qurRHMNM
2018-04-26 18:06:37 +02:00
Bobby Holley 3cbcfdf4cd Bug 1457325 - Expose time to DOMContentFlushed on the timeline. r=bholley,r=mstange
MozReview-Commit-ID: E6QPjgfUKdo
2018-04-27 11:15:27 -07:00
Neil Deakin ef5f9b4b23 Bug 1446961, move PopupBoxObject to XULPopupElement, a new subclass of XULElement. Remove popup.xml methods, r=paolo,bz
Test changes for removal of PopupBoxObject and popup.xml methods, some reflow tests now have different stacks now that they are not going through popup.xml binding methods, test_popupanchor.xul changes due to need to wait for popuppositioned event after resizing. The old code would just adjust the arrow directly when sizeTo was called, but the new code does this through an asynchronous popuppositioned event. Changes to some places that check for XULElement class.

--HG--
rename : dom/webidl/PopupBoxObject.webidl => dom/webidl/XULPopupElement.webidl
rename : layout/xul/PopupBoxObject.cpp => dom/xul/XULPopupElement.cpp
rename : layout/xul/PopupBoxObject.h => dom/xul/XULPopupElement.h
2018-04-27 11:04:38 -04:00
Neil Deakin 8fc4678d7a Bug 1446961, add two special cases in PopupBoxObject as supported in popup.xml, r=paolo,bz
1 - the old showPopup redirects to showMenu when no argument is specified. Support this in openPopup as bookmarks drag code that pops open menus as you drag over them relies on this
2 - reposition the popup after popup is resized, needed to update the arrow position in the arrow panel
2018-04-27 11:04:37 -04:00
Neil Deakin 0e1bcfce45 Bug 1446961, add dictionary second argument directly to PopupBoxObject::OpenPopup as supported in popup.xml#openPopup, r=bz 2018-04-27 11:04:37 -04:00
Neil Deakin f66d199e49 Bug 1446961, remove unused popup frame methods now that showPopup has been removed, r=paolo 2018-04-27 11:04:37 -04:00
Neil Deakin aa71e22720 Bug 1446961, remove deprecated showPopup method of PopupBoxObject as well as unused GetPopupSetFrame method, and move some methods' positions to group related methods together better, r=paolo,bz 2018-04-27 11:04:37 -04:00
Neil Deakin cf9835ac8b Bug 1446961, remove obsolete calls to showPopup and replace usages of the popup box object with the same methods defined on popups, r=paolo 2018-04-27 11:04:36 -04:00
Emilio Cobos Álvarez 0faef276ec Bug 1455885: Make the SVG context paint not use a node property, but a member in SVGDocument. r=jwatt
MozReview-Commit-ID: H6SRTsDL5Rh
2018-04-26 17:07:39 +02:00
Emilio Cobos Álvarez a1b2e5070a Bug 1455885: Inline and make document casts fatally assert. r=bz
For consistency with AsElement / AsContent / AsDocumentFragment, etc.

MozReview-Commit-ID: 8GSj8R9hLBe
2018-04-26 17:05:12 +02:00
Emilio Cobos Álvarez 8239c1300e Bug 1386840: Defer loading and don't block rendering for non-matching stylesheets. r=bz,heycam
MozReview-Commit-ID: 24UJZDooGmn
2018-04-26 16:44:03 +02:00
Emilio Cobos Álvarez 31aff796a0 Bug 1456435: Make the loader a bit less outparam-happy. r=heycam
Returning the same type and UpdateStyleSheet.

This hopefully helps seeing how the data flows between the methods, instead of
the messy bits we had before.

MozReview-Commit-ID: C6THNRi8bbg
2018-04-26 16:43:58 +02:00
Emilio Cobos Álvarez 5618bcfb59 Bug 1456435: Less bool outparam in Loader too. r=heycam
MozReview-Commit-ID: D5A2BxwHGjn
2018-04-26 16:43:54 +02:00
Emilio Cobos Álvarez a00f507b72 Bug 1456435: Make UpdateStyleSheet less bool-happy. r=heycam
MozReview-Commit-ID: FlTD390lMhg
2018-04-26 16:43:52 +02:00
Kartikaya Gupta 690111347c Bug 1456340 - Increase fuzz slightly for webrender. r=me
DONTBUILD because this is trivial
2018-04-26 10:40:11 -04:00
Boris Zbarsky dac6314cb8 Bug 1456588 part 2. Change nsIFocusManager::MoveFocus to take Element. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky 8a0b50bea8 Bug 1456588 part 1. Change nsIFocusManager::SetFocus to take Element. r=enndeakin 2018-04-26 10:37:46 -04:00
Jonathan Kew 5485dd0a02 Bug 1456547 - When weight/stretch/style descriptor is omitted from a @font-face rule, the corresponding variation axis should not be clamped to the 'normal' value. r=jwatt 2018-04-26 15:32:36 +01:00
Xidorn Quan 43eb5c8140 Bug 1456364 part 4 - Convert CSS_PROPERTY_* flags to a typed enum flags. r=emilio
MozReview-Commit-ID: 4mLPe5cH80N
2018-04-26 16:24:33 +02:00
Xidorn Quan 1eb2fafd90 Bug 1456364 part 3 - Remove flags from nsCSSPropList.h. r=emilio
Some assertions are also removed because they are no longer necessary.
The script generating the flags guarantees those assertions hold.

MozReview-Commit-ID: BgXMBoRBJaJ
2018-04-26 16:24:32 +02:00
Xidorn Quan 9684819902 Bug 1456364 part 2 - Remove PropertyParseType. r=emilio
MozReview-Commit-ID: 3JDLVKJAlpv
2018-04-26 16:24:31 +02:00
Xidorn Quan 8af9d264aa Bug 1456364 part 1 - Reduce dependencies to nsCSSProps.h. r=emilio
So that hacking on this header can be less painful...

MozReview-Commit-ID: LmpMnF7q9RG
2018-04-26 16:24:30 +02:00
Miko Mynttinen ce747b87c6 Bug 1455944 - Do not paint nsDisplayOpacity children when opacity push/pop markers have empty paint rect r=mattwoodrow
MozReview-Commit-ID: 5BgHOFjW34H

--HG--
extra : rebase_source : 0fc76b610ee3149c525e342988fac5b5028feeeb
2018-04-25 22:54:18 +02:00
Miko Mynttinen 181215aa0f Bug 1454105 - Do not flatten opacity for IB splits r=mattwoodrow
MozReview-Commit-ID: 67nBRgzdSZ6

--HG--
extra : rebase_source : 5bd24b253e4d3c2638c38d745abf16abebabd302
2018-04-24 17:17:04 +02:00
Alexis Beingessner 5b56b93c8b Bug 1430869 - add reftest for border collapse and captions. r=mstange
MozReview-Commit-ID: CrmfZx7rKPV

--HG--
extra : rebase_source : d876371fd02c309766e7236ba9e5954263a5cc93
2018-04-25 11:11:32 -04:00
Alexis Beingessner 79986e1bf8 Bug 1430869 - use mVisibleRect instead of GetRect. r=mstange
An ancient comment from 1998 assures us that GetRect is wrong if there are captions.
The painting code instead uses mVisibleRect which appears to be correct.

MozReview-Commit-ID: 6Lax4sjInJu

--HG--
extra : rebase_source : 79dd527173443fba8d0718c581852d7bfcc47a3c
2018-04-23 15:08:04 -04:00
arthur.iakab 9e9c6ca596 Merge mozilla-central to inbound on a CLOSED TREE
--HG--
extra : amend_source : 45e514d60768068dc6f2b59b05059a0b86e4f692
2018-05-01 01:20:42 +03:00
Ryan Hunt 8298d017b1 Bug 1454978 - Update test fuzziness. r=bas
MozReview-Commit-ID: DFDwOo8VsdQ

--HG--
extra : rebase_source : fd8366e79d08da52d1105946a2e6d5f146ea70d4
2018-04-25 16:54:31 -05:00
Brad Werth 3cfcd5ae94 Bug 1436431 Part 1: Extend PresShell::GetRectVisibility to consider the target frame's scrollable ancestors. r=bz
MozReview-Commit-ID: JIP8ZRNu7fV

--HG--
extra : rebase_source : 8670162f3429065d532647fef2687d1c5feca113
2018-03-30 13:04:42 -07:00
Timothy Guan-tin Chien 49faa579a0 Bug 1451576 - Set dir=auto on [Browse...] button of <input type=file> r=Ehsan
The label of the button comes from the UI; it's direction should be independent
of the web content directionality. As there is no access to :-moz-locale-dir()
selectors in HTML, we'll have to rely on auto-direction here.

The alternative (or, addition to the fix here) would be adding the value of
the dir attribute to HtmlForm.properties, allowing the localizers to set
the directionality explicitly. I however don't know if that's necessary.

MozReview-Commit-ID: 5NXeLtxLXVH

--HG--
extra : rebase_source : 724eb60ccd841d2355fc17ba31af3cf4792962ef
extra : source : 91d8903ab19812f36aa1732d35d0dc203b0f6281
2018-04-17 18:04:39 +08:00
Timothy Guan-tin Chien d84752434e Bug 1457435 - Higher maxDiff for resizer SVG image matching r=dao
MozReview-Commit-ID: DBkQAdKREng

--HG--
extra : rebase_source : ce083a49db7310d9553eabb87fc6b7c8d7f35ccb
2018-04-27 08:03:04 -07:00
Noemi Erli 0ec806df24 Backed out changeset f8ad5962fc89 (bug 1435094) bustage in /builds/worker/workspace/build/src/layout/painting/nsDisplayList.cpp on a CLOSED TREE 2018-04-27 04:14:39 +03:00
Alexis Beingessner 4bb2580c85 Bug 1435094 - wire up GlyphRasterSpace to nsDisplayTransform. r=kats,mstange
When a transform thinks it's animated we should abandon screen rasterization
and instead favour local rasterization. This produces a more visually
pleasant rendering, as pixel-snapping "wobbles" the text between
frames.

The float scale of GlyphRasterSpace::Local is currently unused, but this
PR tries its best to set it to a reasonable value, based on discussion
with glennw about the intended semantics. We agreed it should specify
the scale *relative* to the parent stacking context, which means it's
just whatever scaling the stacking context's transform applies. It's
possible we'll need to clamp this value or make it properly 2-dimensional
later on.

Some book-keeping is added to StackingContextHelper to ensure that
GlyphRasterSpace::Screen is never requested by a descendent
of a stacking context using GlyphRasterSpace::Local.

nsDisplayMask is changed to use a StackingContextHelper to ensure
rasterSpace is properly propagated.

In addition, this is the first commit making use of cbindgen's new support
for bridging Rust enums natively into C++! This bumps our minimum cbindgen
to 6.0.0 (just released).

MozReview-Commit-ID: 9AlsB6nUheB

--HG--
extra : rebase_source : 978e51dbedeb1542e0829752b7f828ffeb2872e9
2018-04-25 10:47:34 -04:00
Emilio Cobos Álvarez 7b61d17469 Bug 1457102: Ensure a style flush happens after a compat mode change. r=heycam
This is the actual fix. The compat mode changed (well, it didn't), but we were
not scheduling a style flush.

Then someone called getComputedStyle on an element in this document, and the
styles were thought clean, thus we didn't flush style, and we assert when style
resolution happened.

MozReview-Commit-ID: KkM6NwzD640

--HG--
extra : rebase_source : 6047872fe6b2fb30b538de874909d428080ed8b5
2018-04-26 16:11:48 +02:00
Noemi Erli 2f1bd2e3cf Backed out 3 changesets (bug 1436431) for Linting failures on a CLOSED TREE
Backed out changeset 477ef0f2e047 (bug 1436431)
Backed out changeset 6d1b03688ba6 (bug 1436431)
Backed out changeset a51257921d04 (bug 1436431)
2018-04-27 02:12:01 +03:00
Brad Werth 10f1e206a6 Bug 1436431 Part 1: Extend PresShell::GetRectVisibility to consider the target frame's scrollable ancestors. r=bz
MozReview-Commit-ID: JIP8ZRNu7fV

--HG--
extra : rebase_source : b412a9b7504526f3ce85d12625df615c3feb44a5
2018-03-30 13:04:42 -07:00
shindli c72db9830d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-27 00:44:51 +03:00
Kartikaya Gupta b481f8e00f Bug 1456114 - Update fuzz annotation from WR PR 2693. r=jrmuizel
MozReview-Commit-ID: JtoLtORrTNP

--HG--
extra : rebase_source : c3556d929233c17c151a8a616588a10e33b1c26e
2018-04-26 14:15:31 -04:00
Kartikaya Gupta b881108e5b Bug 1456114 - Update for WR PR 2679. r=jrmuizel
MozReview-Commit-ID: GrFwU62DcWU

--HG--
extra : rebase_source : bacebaedb5870063f30053def14fe5ab49954925
2018-04-26 14:15:19 -04:00
Timothy Guan-tin Chien c594214666 Bug 1450017 - Part IX, Move resizer style rules to minimal-xul.css and unify non-native resizer style r=dao
MozReview-Commit-ID: LEodr0aTPkM

--HG--
extra : rebase_source : 92c1b404ebbe64324f63ccbe1878575ae0309604
extra : source : a56127f3a7ed207da2a160362eb1bcf01bf31522
2018-04-10 21:31:25 +08:00
Timothy Guan-tin Chien e6a0db03b8 Bug 1450017 - Part V, Remove rtl="true" attribute from resizer r=enndeakin+6102
This patch changes the direction context the dir=bottomend/bottomstart value
from the CSS direction property value to locale dir, with the help
from :-moz-locale-dir(rtl) selector.

The change is justified because:

- In the web content, we have since rely on the nsScrollFrame to set the
  direction explicity.
- XUL window should always render in the application locale; it should be
  fine to disregard direction property set in the local document DOM teee,
  as it is unlikely to be differ than the locale dir.

This remove the one last bit of JavaScript from the resizer binding.

MozReview-Commit-ID: AweJ5GARNUE

--HG--
extra : rebase_source : 17772435a1f9cfdbc7289eb41d69e5922ffdb302
extra : source : edfba1676e4bb74e32cc987d851f7a6b12abef3b
2018-04-10 21:25:15 +08:00
Timothy Guan-tin Chien f6cc388fd8 Bug 1450017 - Part IV, Always set resizer direction explicitly in ScrollFrameHelper::CreateAnonymousContent() r=enndeakin+6102
Given that we have access to the RTL/writing modes information via
ScrollFrameHelper::IsPhysicalLTR(), set the dir to bottomleft/bottomright
instead of context-aware value bottomend.

MozReview-Commit-ID: Lfe053WOsY2

--HG--
extra : rebase_source : 3bcab336bbb6ee45adecc95f5c113b76f7ea00c1
extra : source : 60cbc29f51d3605fefa35bcba42ef5f39ed32cdf
2018-04-10 21:10:29 +08:00
Timothy Guan-tin Chien eb0872ad04 Bug 1450017 - Part III, Replace direction: rtl with localedir="rtl" in resizer reftests r=enndeakin+6102
This change would bring the tests closer to the real world scenario

MozReview-Commit-ID: 9fslEo8w8Zi

--HG--
extra : rebase_source : 9abe57b41929e0f5184f5c5ee724e27abc157cf9
extra : source : a38a84f76fb90a6b66288cb9bb59d6b869fe81cd
2018-04-10 08:02:41 +08:00
Timothy Guan-tin Chien 3741529478 Bug 1450017 - Part II, Reftest for non-native-theme resizer r=enndeakin+6102
This set of tests, copied from native-theme resizer reftests, ensure
the style of non-native-theme resizer.

MozReview-Commit-ID: 52miLT8h7Xe

--HG--
rename : layout/reftests/native-theme/blank-window.xul => layout/reftests/xul/blank-window.xul
rename : layout/reftests/native-theme/resizer-bottomend-flipped.xul => layout/reftests/xul/resizer-bottomend-flipped.xul
rename : layout/reftests/native-theme/resizer-bottomend-rtl.xul => layout/reftests/xul/resizer-bottomend-rtl.xul
rename : layout/reftests/native-theme/resizer-bottomend.xul => layout/reftests/xul/resizer-bottomend.xul
rename : layout/reftests/native-theme/resizer-bottomleft.xul => layout/reftests/xul/resizer-bottomleft.xul
rename : layout/reftests/native-theme/resizer-bottomright.xul => layout/reftests/xul/resizer-bottomright.xul
rename : layout/reftests/native-theme/resizer-bottomstart-rtl.xul => layout/reftests/xul/resizer-bottomstart-rtl.xul
rename : layout/reftests/native-theme/resizer-bottomstart.xul => layout/reftests/xul/resizer-bottomstart.xul
rename : layout/reftests/native-theme/resizer-left.xul => layout/reftests/xul/resizer-left.xul
extra : rebase_source : c7fa4de0666c91c2a6a53a15b76f1baf056cfd2c
extra : intermediate-source : 0e194e1220c7b359c5ee358409d6103fe64cbc04
extra : source : 7fe89d34b1af6fa36f6b3966a25ed6eecfdc87b1
2018-04-04 15:56:07 +08:00
Kartikaya Gupta fc66c485b6 Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
MozReview-Commit-ID: 5VIHjwx6A2j

--HG--
extra : rebase_source : d986028cff52ba52a58887225e272bf04ad88de3
2018-04-25 11:29:07 -04:00
Emilio Cobos Álvarez 9b13f54912 Bug 1457920: Loader::ParseSheet is not really fallible. r=xidorn
MozReview-Commit-ID: IexX1RRCuF4
2018-05-02 04:13:34 +02:00
Emilio Cobos Álvarez a62beaa09b Bug 1457920: Cleanup a useless argument in Loader. r=xidorn
MozReview-Commit-ID: HajaHl6JEV8
2018-05-02 04:13:32 +02:00
Emilio Cobos Álvarez 9b0a6feb0a Bug 1457920: Trivially inline a bunch of methods that had no reason for not being inlined. r=xidorn
MozReview-Commit-ID: EgcfUwwpZrB
2018-05-02 04:13:30 +02:00
Emilio Cobos Álvarez 30faf7ea5d Bug 1457920: Remove ServoStyleSheet.{h,cpp}. r=xidorn
MozReview-Commit-ID: 1T39DoLUBZk
2018-05-02 04:13:28 +02:00
Emilio Cobos Álvarez c556ec7ad0 Bug 1457920: Remove ServoStyleSheet usage. r=xidorn
MozReview-Commit-ID: LIBkovuQ6MB
2018-05-02 04:13:26 +02:00
Emilio Cobos Álvarez b82b71f57d Bug 1457920: Move stuff from ServoStyleSheet.cpp to StyleSheet.cpp. r=xidorn
MozReview-Commit-ID: 3Tu27mWxWGB
2018-05-02 04:13:24 +02:00
Emilio Cobos Álvarez bf64474d79 Bug 1457920: Remove StyleSheet::AsServo. r=xidorn
MozReview-Commit-ID: IkkJvUFHykk
2018-05-02 04:13:21 +02:00
Emilio Cobos Álvarez 5cb9f4328b Bug 1457920: Remove DidDirty. r=xidorn
MozReview-Commit-ID: 54sVDiRkLze
2018-05-02 04:13:16 +02:00
Emilio Cobos Álvarez 12807e8c1f Bug 1457920: Remove EnabledStateChanged. r=xidorn
MozReview-Commit-ID: DXSw93Q2vvK
2018-05-02 04:13:13 +02:00
Emilio Cobos Álvarez aa78dd2679 Bug 1457920: Remove FORWARD_INTERNAL. r=xidorn
MozReview-Commit-ID: EzWWdstzeev
2018-05-02 04:13:11 +02:00