gecko-dev/layout/inspector
Emilio Cobos Álvarez 449d4bf816 Bug 1617746 - Deal with duplicate adopted stylesheets correctly. r=nordzilla
This also fixes some other bits, like mAdoptedStyleSheets.ElementAt(0) (which
really should be "the first applicable adopted stylesheet") and so on. Added a
test for that.

The new invariant also implies that a DocumentOrShadowRoot can't appear twice in
StyleSheet::mAdopters.

Also clears adopted stylesheets in Document::ResetStylesheetsToURI, as it's the
right thing to do (if you hit that code path with constructable sheets you'd end
up asserting, as we'd call FillStyleSetDocumentSheets after and find sheets in
there). I don't quite have a test-case for that though.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 01:46:17 +00:00
..
tests Bug 1614202 - Implement parsing for CSS conic-gradient syntax. r=emilio 2020-02-19 17:43:04 +00:00
InspectorFontFace.cpp Bug 1537575 - Cleanup generic font-family handling. r=jfkthame 2019-04-01 21:47:59 +00:00
InspectorFontFace.h Bug 1613071: rename `RangeData` to `StyledRange` and move it to separate file. r=smaug 2020-02-05 09:12:23 +00:00
InspectorUtils.cpp Bug 1617746 - Deal with duplicate adopted stylesheets correctly. r=nordzilla 2020-02-27 01:46:17 +00:00
InspectorUtils.h Bug 1496147 - part 2: Remove nsAutoPtr usages from layout/inspector/. r=dbaron 2020-02-26 04:14:14 +00:00
ServoStyleRuleMap.cpp Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio 2019-10-24 17:15:32 +00:00
ServoStyleRuleMap.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
inDeepTreeWalker.cpp Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio 2019-10-24 17:15:32 +00:00
inDeepTreeWalker.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
inIDeepTreeWalker.idl
inLayoutUtils.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
inLayoutUtils.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
moz.build Bug 1593119 - Remove dom/xbl and the MOZ_XBL build option r=bzbarsky 2019-11-07 00:35:32 +00:00