Commit Graph

62951 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
549e302e25 Bug 1442506: Adjust assertion to allow empty appends. r=xidorn
Deletion at the end of a text-node ends up translated to an empty append. It's
harmless though.

Reviewers: xidorn

Bug #: 1442506

Differential Revision: https://phabricator.services.mozilla.com/D667

MozReview-Commit-ID: DqheOYVWx8o
2018-03-02 12:26:27 +01:00
Ciure Andrei
199c24a789 Merge inbound to mozilla-central. a=merge 2018-03-02 12:16:06 +02:00
Ciure Andrei
71383d1213 Merge autoland to mozilla-central. a=merge 2018-03-02 12:13:33 +02:00
Bogdan Tara
df1787e902 Bug 1442428 - Annotate css-disabled/select/select-fieldset-legend-4.html reftest so it passes on Android; r=me,a=test-only 2018-03-02 11:34:40 +02:00
Dorel Luca
3ccafa2b66 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-02 00:09:29 +02:00
Xidorn Quan
5b522decf1 Bug 1441729 - Remove aTextIsSignificant param from nsStyleUtil::IsSignificantChild and its friends. r=emilio
MozReview-Commit-ID: CEZmAwcnglg

--HG--
extra : rebase_source : 4b5526baaf6a5fdee658ae5bdecb46e719bb2d38
2018-02-28 12:54:01 +11:00
Tiberius Oros
be676ac217 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-01 19:34:54 +02:00
Tiberius Oros
61d400da1c Merge inbound to mozilla-central. a=merge 2018-03-01 19:29:00 +02:00
Sebastian Hengst
405622e7b5 Bug 1440938 - Fall back to cairo's glyph metrics API if FreeType fails in some way, or if we're not using a variation font: Add back annotations for failing Android reftests. r=test-fix CLOSED TREE
--HG--
extra : amend_source : 31148a09ffdc5ba2dac05877d821991155ff59a7
2018-03-01 21:41:25 +02:00
Sebastian Hengst
118e03a936 merge mozilla-central to mozilla-inbound 2018-03-01 20:32:20 +02:00
Kartikaya Gupta
e38ffe883b Bug 1440664 - Update reftest annotation for changes in WR PR 2471. r=jrmuizel
MozReview-Commit-ID: A75y6OtL4AR

--HG--
extra : rebase_source : 2573804a6aabed4a31ce68cc96c4fc4e5660210c
2018-03-01 16:53:00 -05:00
Kartikaya Gupta
1edc77ffd1 Bug 1440664 - Update reftest annotation for WR PR 2443. r=jrmuizel
MozReview-Commit-ID: L941zlptWWM

--HG--
extra : rebase_source : 486ac26cdbf2cd9106c4551b077e457da4167f62
2018-03-01 16:52:51 -05:00
Matt Woodrow
646790055d Bug 1440177 - Part 7: Don't allocate new clips when flattening nsDisplayOpacity. r=mstange
Combing the two clips as-is should always be correct, and since they're frequently identical, we can usually make IntersectClip a no-op.

MozReview-Commit-ID: 3xxMyZjwPvJ

--HG--
extra : rebase_source : 8ae4891b88d7229a685771c13a98d3578ffb8767
2018-03-02 11:19:17 +13:00
Matt Woodrow
1e2b3f200e Bug 1440177 - Part 6: Don't dereference display items during AddPaintedDisplayItem for the LAYER_NONE case. r=jnicol
The display items are almost certainly gone from the cache at this point, so dereferencing them can take a while.
This moves the DisplayItemData lookup, and the IsReused/HasMergedFrames checks into the ProcessDisplayItems pass (where we already use the items), and then just uses the AssignedDisplayItem entry for everything.

MozReview-Commit-ID: 8udcE0bmyF3

--HG--
extra : rebase_source : 594513ef2c7d68b42e56b0536f8f6372fa9de90f
2018-03-02 11:19:17 +13:00
Masatoshi Kimura
b1b043af08 Bug 1442266 - Stop including unnecessary <iostream>. r=froydnj
MozReview-Commit-ID: B0JDqyBanFE

--HG--
extra : rebase_source : dec1e2678083e3fb2b9a6b89322d1fa747ed6d4a
2018-03-01 23:07:56 +09:00
Narcis Beleuzu
d970361c95 Backed out 2 changesets (bug 1436113) for bc failures on browser_about_studies.js
Backed out changeset 8ccf1c3f156f (bug 1436113)
Backed out changeset 18a7f08a6cdc (bug 1436113)

--HG--
rename : toolkit/components/normandy/content/AboutPages.jsm => browser/extensions/shield-recipe-client/content/AboutPages.jsm
rename : toolkit/components/normandy/content/about-studies/about-studies.css => browser/extensions/shield-recipe-client/content/about-studies/about-studies.css
rename : toolkit/components/normandy/content/about-studies/about-studies.html => browser/extensions/shield-recipe-client/content/about-studies/about-studies.html
rename : toolkit/components/normandy/content/about-studies/about-studies.js => browser/extensions/shield-recipe-client/content/about-studies/about-studies.js
rename : toolkit/components/normandy/content/about-studies/common.js => browser/extensions/shield-recipe-client/content/about-studies/common.js
rename : toolkit/components/normandy/content/about-studies/img/shield-logo.png => browser/extensions/shield-recipe-client/content/about-studies/img/shield-logo.png
rename : toolkit/components/normandy/content/about-studies/shield-studies.js => browser/extensions/shield-recipe-client/content/about-studies/shield-studies.js
rename : toolkit/components/normandy/content/shield-content-frame.js => browser/extensions/shield-recipe-client/content/shield-content-frame.js
rename : toolkit/components/normandy/content/shield-content-process.js => browser/extensions/shield-recipe-client/content/shield-content-process.js
rename : toolkit/components/normandy/docs/data-collection.rst => browser/extensions/shield-recipe-client/docs/data-collection.rst
rename : toolkit/components/normandy/docs/index.rst => browser/extensions/shield-recipe-client/docs/index.rst
rename : toolkit/components/normandy/jar.mn => browser/extensions/shield-recipe-client/jar.mn
rename : toolkit/components/normandy/lib/ActionSandboxManager.jsm => browser/extensions/shield-recipe-client/lib/ActionSandboxManager.jsm
rename : toolkit/components/normandy/lib/AddonStudies.jsm => browser/extensions/shield-recipe-client/lib/AddonStudies.jsm
rename : toolkit/components/normandy/lib/Addons.jsm => browser/extensions/shield-recipe-client/lib/Addons.jsm
rename : toolkit/components/normandy/lib/CleanupManager.jsm => browser/extensions/shield-recipe-client/lib/CleanupManager.jsm
rename : toolkit/components/normandy/lib/ClientEnvironment.jsm => browser/extensions/shield-recipe-client/lib/ClientEnvironment.jsm
rename : toolkit/components/normandy/lib/EventEmitter.jsm => browser/extensions/shield-recipe-client/lib/EventEmitter.jsm
rename : toolkit/components/normandy/lib/FilterExpressions.jsm => browser/extensions/shield-recipe-client/lib/FilterExpressions.jsm
rename : toolkit/components/normandy/lib/Heartbeat.jsm => browser/extensions/shield-recipe-client/lib/Heartbeat.jsm
rename : toolkit/components/normandy/lib/LogManager.jsm => browser/extensions/shield-recipe-client/lib/LogManager.jsm
rename : toolkit/components/normandy/lib/NormandyApi.jsm => browser/extensions/shield-recipe-client/lib/NormandyApi.jsm
rename : toolkit/components/normandy/lib/NormandyDriver.jsm => browser/extensions/shield-recipe-client/lib/NormandyDriver.jsm
rename : toolkit/components/normandy/lib/PreferenceExperiments.jsm => browser/extensions/shield-recipe-client/lib/PreferenceExperiments.jsm
rename : toolkit/components/normandy/lib/PreferenceFilters.jsm => browser/extensions/shield-recipe-client/lib/PreferenceFilters.jsm
rename : toolkit/components/normandy/lib/RecipeRunner.jsm => browser/extensions/shield-recipe-client/lib/RecipeRunner.jsm
rename : toolkit/components/normandy/lib/Sampling.jsm => browser/extensions/shield-recipe-client/lib/Sampling.jsm
rename : toolkit/components/normandy/lib/SandboxManager.jsm => browser/extensions/shield-recipe-client/lib/SandboxManager.jsm
rename : toolkit/components/normandy/lib/ShieldPreferences.jsm => browser/extensions/shield-recipe-client/lib/ShieldPreferences.jsm
rename : toolkit/components/normandy/lib/Storage.jsm => browser/extensions/shield-recipe-client/lib/Storage.jsm
rename : toolkit/components/normandy/lib/TelemetryEvents.jsm => browser/extensions/shield-recipe-client/lib/TelemetryEvents.jsm
rename : toolkit/components/normandy/lib/Uptake.jsm => browser/extensions/shield-recipe-client/lib/Uptake.jsm
rename : toolkit/components/normandy/lib/Utils.jsm => browser/extensions/shield-recipe-client/lib/Utils.jsm
rename : toolkit/components/normandy/moz.build => browser/extensions/shield-recipe-client/moz.build
rename : toolkit/components/normandy/skin/osx/Heartbeat.css => browser/extensions/shield-recipe-client/skin/osx/Heartbeat.css
rename : toolkit/components/normandy/skin/shared/Heartbeat.css => browser/extensions/shield-recipe-client/skin/shared/Heartbeat.css
rename : toolkit/components/normandy/skin/shared/heartbeat-icon.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-icon.svg
rename : toolkit/components/normandy/skin/shared/heartbeat-star-lit.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-star-lit.svg
rename : toolkit/components/normandy/skin/shared/heartbeat-star-off.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-star-off.svg
rename : toolkit/components/normandy/test/.eslintrc.js => browser/extensions/shield-recipe-client/test/.eslintrc.js
rename : toolkit/components/normandy/test/browser/.eslintrc.js => browser/extensions/shield-recipe-client/test/browser/.eslintrc.js
rename : toolkit/components/normandy/test/browser/action_server.sjs => browser/extensions/shield-recipe-client/test/browser/action_server.sjs
rename : toolkit/components/normandy/test/browser/browser.ini => browser/extensions/shield-recipe-client/test/browser/browser.ini
rename : toolkit/components/normandy/test/browser/browser_ActionSandboxManager.js => browser/extensions/shield-recipe-client/test/browser/browser_ActionSandboxManager.js
rename : toolkit/components/normandy/test/browser/browser_AddonStudies.js => browser/extensions/shield-recipe-client/test/browser/browser_AddonStudies.js
rename : toolkit/components/normandy/test/browser/browser_Addons.js => browser/extensions/shield-recipe-client/test/browser/browser_Addons.js
rename : toolkit/components/normandy/test/browser/browser_CleanupManager.js => browser/extensions/shield-recipe-client/test/browser/browser_CleanupManager.js
rename : toolkit/components/normandy/test/browser/browser_ClientEnvironment.js => browser/extensions/shield-recipe-client/test/browser/browser_ClientEnvironment.js
rename : toolkit/components/normandy/test/browser/browser_EventEmitter.js => browser/extensions/shield-recipe-client/test/browser/browser_EventEmitter.js
rename : toolkit/components/normandy/test/browser/browser_FilterExpressions.js => browser/extensions/shield-recipe-client/test/browser/browser_FilterExpressions.js
rename : toolkit/components/normandy/test/browser/browser_Heartbeat.js => browser/extensions/shield-recipe-client/test/browser/browser_Heartbeat.js
rename : toolkit/components/normandy/test/browser/browser_LogManager.js => browser/extensions/shield-recipe-client/test/browser/browser_LogManager.js
rename : toolkit/components/normandy/test/browser/browser_NormandyDriver.js => browser/extensions/shield-recipe-client/test/browser/browser_NormandyDriver.js
rename : toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js => browser/extensions/shield-recipe-client/test/browser/browser_PreferenceExperiments.js
rename : toolkit/components/normandy/test/browser/browser_RecipeRunner.js => browser/extensions/shield-recipe-client/test/browser/browser_RecipeRunner.js
rename : toolkit/components/normandy/test/browser/browser_ShieldPreferences.js => browser/extensions/shield-recipe-client/test/browser/browser_ShieldPreferences.js
rename : toolkit/components/normandy/test/browser/browser_Storage.js => browser/extensions/shield-recipe-client/test/browser/browser_Storage.js
rename : toolkit/components/normandy/test/browser/browser_about_preferences.js => browser/extensions/shield-recipe-client/test/browser/browser_about_preferences.js
rename : toolkit/components/normandy/test/browser/browser_about_studies.js => browser/extensions/shield-recipe-client/test/browser/browser_about_studies.js
rename : toolkit/components/normandy/test/browser/browser_Normandy.js => browser/extensions/shield-recipe-client/test/browser/browser_bootstrap.js
rename : toolkit/components/normandy/test/browser/fixtures/addon-fixture/manifest.json => browser/extensions/shield-recipe-client/test/browser/fixtures/addon-fixture/manifest.json
rename : toolkit/components/normandy/test/browser/fixtures/normandy.xpi => browser/extensions/shield-recipe-client/test/browser/fixtures/normandy.xpi
rename : toolkit/components/normandy/test/browser/head.js => browser/extensions/shield-recipe-client/test/browser/head.js
rename : toolkit/components/normandy/test/unit/.eslintrc.js => browser/extensions/shield-recipe-client/test/unit/.eslintrc.js
rename : toolkit/components/normandy/test/unit/echo_server.sjs => browser/extensions/shield-recipe-client/test/unit/echo_server.sjs
rename : toolkit/components/normandy/test/unit/head_xpc.js => browser/extensions/shield-recipe-client/test/unit/head_xpc.js
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/api/v1/index.json => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/api/v1/index.json
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/api/v1/recipe/signed/index.json => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/api/v1/recipe/signed/index.json
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/normandy.content-signature.mozilla.org-20210705.dev.chain => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/normandy.content-signature.mozilla.org-20210705.dev.chain
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/console-log/implementation/sha384-RGx3rydrSq53UfmW9kFcK0mQYra67XIvZvr4MhmAe--ljiiMQOtgM7Cmca48um3v => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/console-log/implementation/sha384-RGx3rydrSq53UfmW9kFcK0mQYra67XIvZvr4MhmAe--ljiiMQOtgM7Cmca48um3v
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/console-log/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/console-log/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/opt-out-study/implementation/sha384-HM_avYcD00o27ufwU1V7PIBtiuMAXML6MMwlYrDEqDX-XzGVuOfL52RCM680JExN => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/opt-out-study/implementation/sha384-HM_avYcD00o27ufwU1V7PIBtiuMAXML6MMwlYrDEqDX-XzGVuOfL52RCM680JExN
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/opt-out-study/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/opt-out-study/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/preference-experiment/implementation/sha384-KQgG38GQ7KZAb2VIB48ANQO6nBcxZoLm2ORzUviRT5nAvSywyPjZ5cJIElw6iXIt => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/preference-experiment/implementation/sha384-KQgG38GQ7KZAb2VIB48ANQO6nBcxZoLm2ORzUviRT5nAvSywyPjZ5cJIElw6iXIt
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/preference-experiment/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/preference-experiment/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/show-heartbeat/implementation/sha384-dEGiyKPEln8Ns5cQHzGpMIGdirSAAX0X-Kwlu-U3sJ05yNbO-ANij_a6c5SyL7G4 => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/show-heartbeat/implementation/sha384-dEGiyKPEln8Ns5cQHzGpMIGdirSAAX0X-Kwlu-U3sJ05yNbO-ANij_a6c5SyL7G4
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/show-heartbeat/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/show-heartbeat/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/signed/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/signed/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/classify_client/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/classify_client/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/recipe/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/recipe/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/recipe/signed/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/recipe/signed/index.json
rename : toolkit/components/normandy/test/unit/mock_api/normandy.content-signature.mozilla.org-20210705.dev.chain => browser/extensions/shield-recipe-client/test/unit/mock_api/normandy.content-signature.mozilla.org-20210705.dev.chain
rename : toolkit/components/normandy/test/unit/query_server.sjs => browser/extensions/shield-recipe-client/test/unit/query_server.sjs
rename : toolkit/components/normandy/test/unit/test_NormandyApi.js => browser/extensions/shield-recipe-client/test/unit/test_NormandyApi.js
rename : toolkit/components/normandy/test/unit/test_Sampling.js => browser/extensions/shield-recipe-client/test/unit/test_Sampling.js
rename : toolkit/components/normandy/test/unit/test_SandboxManager.js => browser/extensions/shield-recipe-client/test/unit/test_SandboxManager.js
rename : toolkit/components/normandy/test/unit/test_Utils.js => browser/extensions/shield-recipe-client/test/unit/test_Utils.js
rename : toolkit/components/normandy/test/unit/utils.js => browser/extensions/shield-recipe-client/test/unit/utils.js
rename : toolkit/components/normandy/test/unit/xpcshell.ini => browser/extensions/shield-recipe-client/test/unit/xpcshell.ini
rename : toolkit/components/normandy/vendor/LICENSE_THIRDPARTY => browser/extensions/shield-recipe-client/vendor/LICENSE_THIRDPARTY
rename : toolkit/components/normandy/vendor/PropTypes.js => browser/extensions/shield-recipe-client/vendor/PropTypes.js
rename : toolkit/components/normandy/vendor/React.js => browser/extensions/shield-recipe-client/vendor/React.js
rename : toolkit/components/normandy/vendor/ReactDOM.js => browser/extensions/shield-recipe-client/vendor/ReactDOM.js
rename : toolkit/components/normandy/vendor/classnames.js => browser/extensions/shield-recipe-client/vendor/classnames.js
rename : toolkit/components/normandy/vendor/mozjexl.js => browser/extensions/shield-recipe-client/vendor/mozjexl.js
2018-03-01 06:44:44 +02:00
Narcis Beleuzu
6be3b8b032 Backed out 7 changesets (bug 1440177) for crashtest (on 1359658-1.html) and reftest failures
Backed out changeset f359ad5c4fc3 (bug 1440177)
Backed out changeset d63c5a6c13ae (bug 1440177)
Backed out changeset d22462ac7ee1 (bug 1440177)
Backed out changeset b7e46c4c7dc1 (bug 1440177)
Backed out changeset f92987184172 (bug 1440177)
Backed out changeset e6808a7dda3e (bug 1440177)
Backed out changeset ce353b632a31 (bug 1440177)
2018-03-01 06:21:43 +02:00
Matt Woodrow
c72e4fb667 Bug 1440177 - Part 5: Don't call GetDisplayItemDataForManager in AddPaintedDisplayItem since we already have it passed in as a parameter. r=jnicol
MozReview-Commit-ID: CfHL0Kqto6X

--HG--
extra : rebase_source : 02ceb42a81030527f4320de9b8bcbef8b5a5e853
2018-02-19 12:37:01 +13:00
Matt Woodrow
897969a477 Bug 1440177 - Part 4: Avoid expensive hashtable lookups in PaintedLayerDataTree when we're in an inactive layer and want all items in the same layer. r=mstange
MozReview-Commit-ID: AWsXw2ZrL9Q

--HG--
extra : rebase_source : 98ec4dd7f2e3260ac98767704bf3a3d02cd4e734
2018-02-15 15:52:37 +13:00
Matt Woodrow
3508130537 Bug 1440177 - Part 3: Preallocate a small number of PaintedLayerData objects and only resize the mPaintedLayerDataStack once. r=jnicol
MozReview-Commit-ID: 4RvU35pBz3z

--HG--
extra : rebase_source : 9c39e02256ded8da71c24df441328a1f03c625cc
2018-02-15 14:45:35 +13:00
Matt Woodrow
720a1bf71e Bug 1440177 - Part 2: Combine PaintedLayerItemsEntry and PaintedDisplayItemLayerUserData into a single struct. r=jnicol
These two structs store very similar state (including duplicating the mask layer common clip count), and the former uses an expensive hashtable for lookups.
This patch combines the two, and uses a vector of entries instead of the hashtable so we can do the cleanup pass.
* * *
[mq]: fix

MozReview-Commit-ID: KamhbGAIqpD

--HG--
extra : rebase_source : 2d4c1522b04018dfab5cd4eabde828349548548c
2018-02-13 15:56:43 +13:00
Matt Woodrow
b68fc392ab Bug 1440177 - Part 1: Don't call GetLayerState from BuildContainerLayerFor as it recurses into child display items to find the answer. r=jnicol
MozReview-Commit-ID: 3A4OBC5L6Ps

--HG--
extra : rebase_source : 51f8b0a2dd25fbd503938c8f9742f13df609283e
2018-02-13 14:25:55 +13:00
Zhang Junzhi
101d7d588a Bug 1439882 - Removes several redundant #include directives in layout files r=dholbert
Some included headers for source code in layout directory are left unused. This
patch merely removes these redundant headers. All of these headers are still
found in use for other code, so all of them and their related cpp files are kept
still.

MozReview-Commit-ID: KCleuWyOV8Z

--HG--
extra : rebase_source : 6e892dcd8ad8c1f56069d4d93bc7124641361232
2018-03-02 04:12:39 +08:00
Dorel Luca
d5ffb280ca Merge mozilla-central to autoland. r=merge on a CLOSED TREE
--HG--
extra : amend_source : 1da4c47b073cb2032ddeb3da8b88736e5a1c363d
2018-03-02 00:17:24 +02:00
arthur.iakab
1577dd49c5 Backed out 7 changesets (bug 1440177) for build bustages on a CLOSED TREE
Backed out changeset d83a1820b2f2 (bug 1440177)
Backed out changeset a77d06b2cf03 (bug 1440177)
Backed out changeset 928770efc9a3 (bug 1440177)
Backed out changeset 49b285030492 (bug 1440177)
Backed out changeset 717a696b17e0 (bug 1440177)
Backed out changeset 0840994846bf (bug 1440177)
Backed out changeset b1ba6c67264b (bug 1440177)

--HG--
extra : amend_source : 1396090c186d31b5196c2c876bcb1ccf5f1ba940
2018-03-01 23:45:23 +02:00
Matt Woodrow
c1025a1ff3 Bug 1440177 - Part 7: Don't allocate new clips when flattening nsDisplayOpacity. r=mstange
Combing the two clips as-is should always be correct, and since they're frequently identical, we can usually make IntersectClip a no-op.

MozReview-Commit-ID: EKHdPogzd3t

--HG--
extra : rebase_source : 13dede364b603ff5dd889141430d5d4cd7e51e17
2018-03-02 10:06:13 +13:00
Matt Woodrow
d4d690dde3 Bug 1440177 - Part 6: Don't dereference display items during AddPaintedDisplayItem for the LAYER_NONE case. r=jnicol
The display items are almost certainly gone from the cache at this point, so dereferencing them can take a while.
This moves the DisplayItemData lookup, and the IsReused/HasMergedFrames checks into the ProcessDisplayItems pass (where we already use the items), and then just uses the AssignedDisplayItem entry for everything.

MozReview-Commit-ID: JrRshEyZncb

--HG--
extra : rebase_source : 280bda37cba3f9dc5a5ba3dadec5e09848b7321c
2018-03-02 10:06:13 +13:00
Matt Woodrow
0d25ffa6b4 Bug 1440177 - Part 5: Don't call GetDisplayItemDataForManager in AddPaintedDisplayItem since we already have it passed in as a parameter. r=jnicol
MozReview-Commit-ID: IHrVPutPSC5

--HG--
extra : rebase_source : c42f425a665a12a8602d9a7cfacdb16b14cf81a2
2018-02-19 12:37:01 +13:00
Matt Woodrow
ba1dc01583 Bug 1440177 - Part 4: Avoid expensive hashtable lookups in PaintedLayerDataTree when we're in an inactive layer and want all items in the same layer. r=mstange
MozReview-Commit-ID: 6brxIaZR2eq

--HG--
extra : rebase_source : 920907a40682b636353c33b50c59e8bf75d130db
2018-02-15 15:52:37 +13:00
Matt Woodrow
b38deac587 Bug 1440177 - Part 3: Preallocate a small number of PaintedLayerData objects and only resize the mPaintedLayerDataStack once. r=jnicol
MozReview-Commit-ID: 1LIxNSVHHkp

--HG--
extra : rebase_source : 94e8b91151cec4ecfa071d5d5c40309da1a8563f
2018-02-15 14:45:35 +13:00
Matt Woodrow
a1d4e255f4 Bug 1440177 - Part 2: Combine PaintedLayerItemsEntry and PaintedDisplayItemLayerUserData into a single struct. r=jnicol
These two structs store very similar state (including duplicating the mask layer common clip count), and the former uses an expensive hashtable for lookups.
This patch combines the two, and uses a vector of entries instead of the hashtable so we can do the cleanup pass.
* * *
[mq]: fix

MozReview-Commit-ID: KamhbGAIqpD

--HG--
extra : rebase_source : 5da2d922f1ae6f47e7e82928f878c7810630ac22
2018-02-13 15:56:43 +13:00
Matt Woodrow
6ed309c84c Bug 1440177 - Part 1: Don't call GetLayerState from BuildContainerLayerFor as it recurses into child display items to find the answer. r=jnicol
MozReview-Commit-ID: 3A4OBC5L6Ps

--HG--
extra : rebase_source : 51f8b0a2dd25fbd503938c8f9742f13df609283e
2018-02-13 14:25:55 +13:00
Gijs Kruitbosch
8fc45f6ac9 Bug 1370930 - remove DirectoryLinksProvider, r=Mardak
MozReview-Commit-ID: 4YcsNvRg7Hn

--HG--
extra : rebase_source : 15518736c9cc52cf18a0540417e6a38c9bed630a
2018-03-01 16:53:49 +00:00
Matt Woodrow
d67f293fa2 Bug 1440177 - Part 7: Don't allocate new clips when flattening nsDisplayOpacity. r=mstange
Combing the two clips as-is should always be correct, and since they're frequently identical, we can usually make IntersectClip a no-op.

MozReview-Commit-ID: AzqvbQJAytp

--HG--
extra : rebase_source : cc7e401af1dab029fa1519164c6a4e97eb8b70e9
2018-03-01 11:42:30 +13:00
Matt Woodrow
3eb2633a17 Bug 1440177 - Part 6: Don't dereference display items during AddPaintedDisplayItem for the LAYER_NONE case. r=jnicol
The display items are almost certainly gone from the cache at this point, so dereferencing them can take a while.
This moves the DisplayItemData lookup, and the IsReused/HasMergedFrames checks into the ProcessDisplayItems pass (where we already use the items), and then just uses the AssignedDisplayItem entry for everything.

MozReview-Commit-ID: 3NibNGSVsax

--HG--
extra : rebase_source : b5b4d82798404ad4c8d84ca33bfb30d4afa55fb6
2018-03-01 11:42:27 +13:00
Matt Woodrow
e7ccc78c95 Bug 1440177 - Part 5: Don't call GetDisplayItemDataForManager in AddPaintedDisplayItem since we already have it passed in as a parameter. r=jnicol
MozReview-Commit-ID: IJrH0MLLPdQ

--HG--
extra : rebase_source : b40c283853116ec733444907a2c6e1c52f88fce4
2018-02-19 12:37:01 +13:00
Matt Woodrow
5c70cbc067 Bug 1440177 - Part 4: Avoid expensive hashtable lookups in PaintedLayerDataTree when we're in an inactive layer and want all items in the same layer. r=mstange
MozReview-Commit-ID: CdbUJ2QuAeM

--HG--
extra : rebase_source : a63e3b82d88a058332768b2dd4fd4a77a810bd0b
2018-02-15 15:52:37 +13:00
Matt Woodrow
2ffbfd1497 Bug 1440177 - Part 3: Preallocate a small number of PaintedLayerData objects and only resize the mPaintedLayerDataStack once. r=jnicol
MozReview-Commit-ID: JnxY10oiffD

--HG--
extra : rebase_source : dd3fd2bcaa40ff8f59fd7fb21a635c819ad501fa
2018-02-15 14:45:35 +13:00
Matt Woodrow
1b8df48c0e Bug 1440177 - Part 2: Combine PaintedLayerItemsEntry and PaintedDisplayItemLayerUserData into a single struct. r=jnicol
These two structs store very similar state (including duplicating the mask layer common clip count), and the former uses an expensive hashtable for lookups.
This patch combines the two, and uses a vector of entries instead of the hashtable so we can do the cleanup pass.

MozReview-Commit-ID: 3gKbB3OBIDd

--HG--
extra : rebase_source : 9e4e2aeb632f98d26f0f229b8a4fab570674e02c
2018-02-13 15:56:43 +13:00
Matt Woodrow
a612c4ae94 Bug 1440177 - Part 1: Don't call GetLayerState from BuildContainerLayerFor as it recurses into child display items to find the answer. r=jnicol
MozReview-Commit-ID: 3A4OBC5L6Ps

--HG--
extra : rebase_source : 51f8b0a2dd25fbd503938c8f9742f13df609283e
2018-02-13 14:25:55 +13:00
Dorel Luca
6735016b56 Merge mozilla-cental to mozilla-inbound. r=merge
--HG--
extra : rebase_source : f7e0a6b0f2925bd159de4d665c02493dab9b6282
2018-03-02 00:21:23 +02:00
Emilio Cobos Álvarez
2988d4e66d Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().

Differential Revision: https://phabricator.services.mozilla.com/D664

MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Matt Woodrow
ac734805c4 Bug 1436510 - Don't attempt partial display list building within perspective as we need to build all children to get consistent indices. r=miko 2018-03-01 16:53:58 +13:00
Matt Woodrow
809bf8f61f Bug 1439809 - Change the display list merging algorithm to no longer require a hashtable of the old display list items. r=miko,mstange 2018-03-01 16:16:02 +13:00
Cosmin Sabou
6edc2e0f3b Merge mozilla-central to inbound. a=merge on a CLOSED TREE 2018-02-28 23:55:37 +02:00
Cosmin Sabou
a97105ec0d Merge inbound to mozilla-central. a=merge 2018-02-28 23:48:29 +02:00
Sebastian Hengst
1761ef65c7 merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-02-28 20:19:28 +02:00
Florian Quèze
f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Florian Quèze
c546946f86 Bug 1433175 - remove by hands some variations of Cc,Ci,Cu definitions, r=Standard8. 2018-02-28 18:51:34 +01:00
Florian Quèze
6df7549a3e Bug 1433175 - semi-automated indent fix, r=Mossop. 2018-02-28 18:51:34 +01:00