Commit Graph

976 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
50c94e07ae Bug 1601083 - Add an InspectorUtils API to get the containing block of an Element. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D56387

--HG--
extra : moz-landing-system : lando
2019-12-09 22:07:00 +00:00
Gabriele Svelto
69790bc62e 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
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
Emilio Cobos Álvarez
3b3de3f3e7 Bug 1590280 - Allow to use the sheet cache to avoid parsing as long as CSSOM hasn't mutated the stylesheet. r=heycam
We need to ensure we have a unique inner so that ruleLists and such have the
right pointer identity (we could do better, really, but it's harder).

But as long as the CSSOM hasn't modified them there should be no reason not to
use the cache. We can do a deep clone synchronously instead of refetching /
reparsing.

This is important because, as of right now, just using the inspector makes the
stylesheets unique, which is unfortunate.

We'll still have the modified rule bit for sheets with @import, because our
notification system for @import is silly, and on parents of imported sheets.

Fixing those are future improvements, but I see no reason not to land this.

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

--HG--
extra : moz-landing-system : lando
2019-12-03 11:04:03 +00:00
Emilio Cobos Álvarez
0ff42b5218 Bug 1600155 - Remove StyleSheet{Added,Removed} and StyleRule{Added,Removed,Changed} events. r=heycam,smaug
They're only used by tests, and are not exposed.

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

--HG--
extra : moz-landing-system : lando
2019-11-30 12:24:32 +00:00
Emma Malysz
733458951b Bug 1595877, replace .xul mochitest files in layout/ with .xhtml r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D52728

--HG--
rename : layout/base/tests/chrome/chrome_content_integration_window.xul => layout/base/tests/chrome/chrome_content_integration_window.xhtml
rename : layout/base/tests/chrome/chrome_over_plugin_window.xul => layout/base/tests/chrome/chrome_over_plugin_window.xhtml
rename : layout/base/tests/chrome/default_background_window.xul => layout/base/tests/chrome/default_background_window.xhtml
rename : layout/base/tests/chrome/dialog_with_positioning_window.xul => layout/base/tests/chrome/dialog_with_positioning_window.xhtml
rename : layout/base/tests/chrome/file_bug1018265.xul => layout/base/tests/chrome/file_bug1018265.xhtml
rename : layout/base/tests/chrome/printpreview_bug396024_helper.xul => layout/base/tests/chrome/printpreview_bug396024_helper.xhtml
rename : layout/base/tests/chrome/printpreview_bug482976_helper.xul => layout/base/tests/chrome/printpreview_bug482976_helper.xhtml
rename : layout/base/tests/chrome/printpreview_helper.xul => layout/base/tests/chrome/printpreview_helper.xhtml
rename : layout/base/tests/chrome/test_bug1018265.xul => layout/base/tests/chrome/test_bug1018265.xhtml
rename : layout/base/tests/chrome/test_bug1041200.xul => layout/base/tests/chrome/test_bug1041200.xhtml
rename : layout/base/tests/chrome/test_bug420499.xul => layout/base/tests/chrome/test_bug420499.xhtml
rename : layout/base/tests/chrome/test_bug465448.xul => layout/base/tests/chrome/test_bug465448.xhtml
rename : layout/base/tests/chrome/test_bug514660.xul => layout/base/tests/chrome/test_bug514660.xhtml
rename : layout/base/tests/chrome/test_bug533845.xul => layout/base/tests/chrome/test_bug533845.xhtml
rename : layout/base/tests/chrome/test_bug812817.xul => layout/base/tests/chrome/test_bug812817.xhtml
rename : layout/base/tests/chrome/test_chrome_content_integration.xul => layout/base/tests/chrome/test_chrome_content_integration.xhtml
rename : layout/base/tests/chrome/test_chrome_over_plugin.xul => layout/base/tests/chrome/test_chrome_over_plugin.xhtml
rename : layout/base/tests/chrome/test_css_visibility_propagation.xul => layout/base/tests/chrome/test_css_visibility_propagation.xhtml
rename : layout/base/tests/chrome/test_default_background.xul => layout/base/tests/chrome/test_default_background.xhtml
rename : layout/base/tests/chrome/test_leaf_layers_partition_browser_window.xul => layout/base/tests/chrome/test_leaf_layers_partition_browser_window.xhtml
rename : layout/base/tests/chrome/test_printpreview.xul => layout/base/tests/chrome/test_printpreview.xhtml
rename : layout/base/tests/chrome/test_printpreview_bug396024.xul => layout/base/tests/chrome/test_printpreview_bug396024.xhtml
rename : layout/base/tests/chrome/test_printpreview_bug482976.xul => layout/base/tests/chrome/test_printpreview_bug482976.xhtml
rename : layout/forms/test/bug665540_window.xul => layout/forms/test/bug665540_window.xhtml
rename : layout/generic/test/file_bug514732_window.xul => layout/generic/test/file_bug514732_window.xhtml
rename : layout/generic/test/test_backspace_delete.xul => layout/generic/test/test_backspace_delete.xhtml
rename : layout/generic/test/test_bug469613.xul => layout/generic/test/test_bug469613.xhtml
rename : layout/generic/test/test_bug469774.xul => layout/generic/test/test_bug469774.xhtml
rename : layout/generic/test/test_bug508115.xul => layout/generic/test/test_bug508115.xhtml
rename : layout/generic/test/test_bug514732-2.xul => layout/generic/test/test_bug514732-2.xhtml
rename : layout/generic/test/test_bug632379.xul => layout/generic/test/test_bug632379.xhtml
rename : layout/inspector/tests/chrome/test_bug467669.xul => layout/inspector/tests/chrome/test_bug467669.xhtml
rename : layout/inspector/tests/chrome/test_bug695639.xul => layout/inspector/tests/chrome/test_bug695639.xhtml
rename : layout/inspector/tests/chrome/test_bug708874.xul => layout/inspector/tests/chrome/test_bug708874.xhtml
rename : layout/inspector/tests/chrome/test_bug727834.xul => layout/inspector/tests/chrome/test_bug727834.xhtml
rename : layout/inspector/tests/chrome/test_fontFaceGeneric.xul => layout/inspector/tests/chrome/test_fontFaceGeneric.xhtml
rename : layout/inspector/tests/chrome/test_fontFaceRanges.xul => layout/inspector/tests/chrome/test_fontFaceRanges.xhtml
rename : layout/inspector/tests/chrome/test_fontFeaturesAPI.xul => layout/inspector/tests/chrome/test_fontFeaturesAPI.xhtml
rename : layout/inspector/tests/chrome/test_fontVariationsAPI.xul => layout/inspector/tests/chrome/test_fontVariationsAPI.xhtml
rename : layout/style/test/chrome/bug535806-xul.xul => layout/style/test/chrome/bug535806-xul.xhtml
rename : layout/style/test/chrome/test_bug1160724.xul => layout/style/test/chrome/test_bug1160724.xhtml
rename : layout/style/test/chrome/test_bug418986-2.xul => layout/style/test/chrome/test_bug418986-2.xhtml
rename : layout/style/test/chrome/test_bug535806.xul => layout/style/test/chrome/test_bug535806.xhtml
rename : layout/xul/test/test_bug1197913.xul => layout/xul/test/test_bug1197913.xhtml
rename : layout/xul/test/test_bug159346.xul => layout/xul/test/test_bug159346.xhtml
rename : layout/xul/test/test_bug372685.xul => layout/xul/test/test_bug372685.xhtml
rename : layout/xul/test/test_bug393970.xul => layout/xul/test/test_bug393970.xhtml
rename : layout/xul/test/test_bug398982-1.xul => layout/xul/test/test_bug398982-1.xhtml
rename : layout/xul/test/test_bug398982-2.xul => layout/xul/test/test_bug398982-2.xhtml
rename : layout/xul/test/test_bug467442.xul => layout/xul/test/test_bug467442.xhtml
rename : layout/xul/test/test_bug477754.xul => layout/xul/test/test_bug477754.xhtml
rename : layout/xul/test/test_bug703150.xul => layout/xul/test/test_bug703150.xhtml
rename : layout/xul/test/test_bug987230.xul => layout/xul/test/test_bug987230.xhtml
rename : layout/xul/test/test_popupReflowPos.xul => layout/xul/test/test_popupReflowPos.xhtml
rename : layout/xul/test/test_popupSizeTo.xul => layout/xul/test/test_popupSizeTo.xhtml
rename : layout/xul/test/test_popupZoom.xul => layout/xul/test/test_popupZoom.xhtml
rename : layout/xul/test/test_resizer.xul => layout/xul/test/test_resizer.xhtml
rename : layout/xul/test/test_resizer_incontent.xul => layout/xul/test/test_resizer_incontent.xhtml
rename : layout/xul/test/test_splitter.xul => layout/xul/test/test_splitter.xhtml
rename : layout/xul/test/test_submenuClose.xul => layout/xul/test/test_submenuClose.xhtml
rename : layout/xul/test/test_windowminmaxsize.xul => layout/xul/test/test_windowminmaxsize.xhtml
rename : layout/xul/test/titledpanelwindow.xul => layout/xul/test/titledpanelwindow.xhtml
rename : layout/xul/test/window_resizer.xul => layout/xul/test/window_resizer.xhtml
rename : layout/xul/test/window_resizer_element.xul => layout/xul/test/window_resizer_element.xhtml
rename : layout/xul/test/windowminmaxsize1.xul => layout/xul/test/windowminmaxsize1.xhtml
rename : layout/xul/test/windowminmaxsize10.xul => layout/xul/test/windowminmaxsize10.xhtml
rename : layout/xul/test/windowminmaxsize2.xul => layout/xul/test/windowminmaxsize2.xhtml
rename : layout/xul/test/windowminmaxsize3.xul => layout/xul/test/windowminmaxsize3.xhtml
rename : layout/xul/test/windowminmaxsize4.xul => layout/xul/test/windowminmaxsize4.xhtml
rename : layout/xul/test/windowminmaxsize5.xul => layout/xul/test/windowminmaxsize5.xhtml
rename : layout/xul/test/windowminmaxsize6.xul => layout/xul/test/windowminmaxsize6.xhtml
rename : layout/xul/test/windowminmaxsize7.xul => layout/xul/test/windowminmaxsize7.xhtml
rename : layout/xul/test/windowminmaxsize8.xul => layout/xul/test/windowminmaxsize8.xhtml
rename : layout/xul/test/windowminmaxsize9.xul => layout/xul/test/windowminmaxsize9.xhtml
extra : moz-landing-system : lando
2019-11-14 20:25:21 +00:00
Brian Grinstead
d981495450 Bug 1593119 - Remove dom/xbl and the MOZ_XBL build option r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D51338

--HG--
extra : moz-landing-system : lando
2019-11-07 00:35:32 +00:00
Brian Grinstead
8e592888cb Bug 1593119 - clang-format the files affected by the MOZ_XBL unifdef r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D52057

--HG--
extra : moz-landing-system : lando
2019-11-07 00:35:25 +00:00
Brian Grinstead
f19f38776b Bug 1593119 - unifdef MOZ_XBL r=bzbarsky
This was generated with:

```
rg -l -g '*.{cpp,h}' MOZ_XBL . | while read FILE ; do
   echo $FILE
   unifdef -m -UMOZ_XBL $FILE
done
```

After this, I manually removed the directive in nsContentUtils.cpp due to:

  unifdef: ./dom/base/nsContentUtils.cpp: 4630: Unterminated string literal
  unifdef: Output may be truncated

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

--HG--
extra : moz-landing-system : lando
2019-11-07 00:35:13 +00:00
Brian Grinstead
7be32e6d1b Bug 1587142 - Remove XBL tests in layout/ r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50651

--HG--
extra : moz-landing-system : lando
2019-11-05 20:45:28 +00:00
Daniel Holbert
1d091bf238 Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio
This patch:
- Gives ServoStyleRuleMap.cpp an include for Element.h (to provide that type).
- Gives inDeepTreeWalker.cpp a mozilla::dom prefix for its one use of Document.
- Gives inLayoutUtils.cpp a "using" decl for mozilla::dom, so we can compile
  with the many un-namespaced "Document" and "Element" usages in that file.

Depends on D50167

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

--HG--
extra : moz-landing-system : lando
2019-10-24 17:15:32 +00:00
Edgar Chen
ee3842300e Bug 1421539 - Remove todo comment for shadow dom; r=smaug
Given that test_bug522601-shadow.xhtml already has pretty nice test cases for shadow dom;

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

--HG--
extra : moz-landing-system : lando
2019-10-16 13:16:51 +00:00
Brendan Dahl
237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

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

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Brendan Dahl
c68cd30ef2 Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:14 +00:00
Gabriele Svelto
10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
Daisuke Akatsuka
4a9a59aaa0 Bug 713106: Add test for InspectorUtils. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D45806

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:38 +00:00
Daisuke Akatsuka
409a2bc885 Bug 713106: Make :visited selector enabled to use from DevTools. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45624

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:12 +00:00
Daisuke Akatsuka
ef36d9df93 Bug 713106: Show :visited rule while the pseudo is locked. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45623

--HG--
extra : moz-landing-system : lando
2019-09-13 22:11:58 +00:00
Yura Zenevich
dae04e052b Bug 1564968 - add isElementThemed method to InspectorUtils to infer native theme styling such as focus. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43441

--HG--
extra : moz-landing-system : lando
2019-08-28 17:49:22 +00:00
Bogdan Tara
02e806d54a Backed out 6 changesets (bug 1564968) by yzen's request CLOSED TREE
Backed out changeset 4b7516635108 (bug 1564968)
Backed out changeset c3227d4ff4b3 (bug 1564968)
Backed out changeset 868dbd59c79e (bug 1564968)
Backed out changeset db1a396ab58e (bug 1564968)
Backed out changeset e69163dc4683 (bug 1564968)
Backed out changeset c12857bc6980 (bug 1564968)
2019-08-28 16:06:23 +03:00
Yura Zenevich
830e72a287 Bug 1564968 - add isElementThemed method to InspectorUtils to infer native theme styling such as focus. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43441

--HG--
extra : moz-landing-system : lando
2019-08-27 03:35:13 +00:00
Mats Palmgren
1f1f009b71 Bug 1574060 - Implement layout for 'display: flow-root list-item'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42087

--HG--
extra : moz-landing-system : lando
2019-08-16 06:30:24 +00:00
Mats Palmgren
aa7733da8b Bug 1557825 part 2 - Add tests and update devtools for 'display:block ruby'. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D40213

--HG--
extra : moz-landing-system : lando
2019-08-14 14:38:33 +00:00
Mats Palmgren
c766e6e2e9 Bug 1105868 part 5 - Add / update tests for inline list-item 'display' values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39834

--HG--
extra : moz-landing-system : lando
2019-08-14 14:37:23 +00:00
Mats Palmgren
307e0a6d66 Bug 1569825 - Hide some 'display' values in devtools auto-completion that we want to discourage authors from using. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D39810

--HG--
extra : moz-landing-system : lando
2019-08-14 14:35:56 +00:00
Jonathan Kew
7ae68c458b Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-09 08:59:27 +00:00
shindli
f5dea34efe Backed out 5 changesets (bug 1421938) for bustages in /builds/worker/workspace/build/src/layout/base/nsQuoteList.cpp CLOSED TREE
Backed out changeset 4e25a6db1f5b (bug 1421938)
Backed out changeset 11a8f9bc0418 (bug 1421938)
Backed out changeset f27980997dc5 (bug 1421938)
Backed out changeset adb2e2714c14 (bug 1421938)
Backed out changeset 33e38a62b400 (bug 1421938)
2019-07-09 02:52:38 +03:00
Jonathan Kew
6bea7b3966 Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-08 20:16:19 +00:00
shindli
2c12986a7f Backed out 5 changesets (bug 1421938) for causing a bustage in /builds/worker/workspace/build/src/intl/locale/cldr-quotes.inc:21:448 CLOSED TREE
Backed out changeset 3958f2af0e34 (bug 1421938)
Backed out changeset 89a0866d1aa0 (bug 1421938)
Backed out changeset f150702af11f (bug 1421938)
Backed out changeset b8ebd4d241e0 (bug 1421938)
Backed out changeset 1d38eb5eff6e (bug 1421938)
2019-07-08 23:09:34 +03:00
Jonathan Kew
e5f479f588 Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-08 12:13:28 +00:00
Masayuki Nakano
36e5df54ec Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug
And also this patch moves some related methods which use the inline methods
and member variables used only by them.

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

--HG--
rename : layout/base/nsIPresShellInlines.h => layout/base/PresShellInlines.h
extra : moz-landing-system : lando
2019-04-30 01:52:53 +00:00
Cameron McCormack
e95797966a Bug 1539159 - Prevent modification of UA style sheets. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D25661

--HG--
extra : moz-landing-system : lando
2019-04-29 05:34:06 +00:00
Emilio Cobos Álvarez
11ea945833 Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert
Per the discussion in:

  https://groups.google.com/d/msg/mozilla.dev.platform/P79pwa9z5m8/iPYPAWPHCAAJ

They should be CamelCase, and that's what most of them already do. This converts
the rest, which are a few.

For the ones that already used `e` or `k` prefixes, I've mostly done:

 for file in $(rg Type::e layout | cut -d : -f 1 | sort | uniq); do sed -i 's#Type::e#Type::#g' $file; done

For the ones that used uppercase, I've removed the prefix if it was already in
the type name, and turn them into CamelCase.

Depends on D28680

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:03:04 +00:00
Emilio Cobos Álvarez
88a1b27597 Bug 1546046 - Remove support for XBL resources. r=TYLin
So much unsound code going away :-)

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

--HG--
extra : moz-landing-system : lando
2019-04-23 16:43:15 +00:00
Bogdan Tara
ec489aa170 Backed out changeset e85cb54e5944 (bug 1546046) complementary backout after 1470880 was backed out CLOSED TREE 2019-04-23 06:55:29 +03:00
Emilio Cobos Álvarez
daef6a8b67 Bug 1546046 - Remove support for XBL resources. r=TYLin
So much unsound code going away :-)

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

--HG--
extra : moz-landing-system : lando
2019-04-22 21:57:22 +00:00
Emilio Cobos Álvarez
d3f8a1f5a6 Bug 1544535 - Bug 1542263 - Don't keep two list of stylesheets in ServoStyleSet. r=firefox-style-system-reviewers,jwatt
Just one set of stylesheets is enough. While at it, unify SheetType and Origin.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 04:20:31 +00:00
Brian Grinstead
ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Brian Grinstead
6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Emilio Cobos Álvarez
2c6ec66a70 Bug 1540732 - Validate input in InspectorUtils.removeContentState as well. r=smaug
Same as bug 1538732, but I didn't know this api existed at all.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:13:10 +00:00
Masayuki Nakano
5e41233499 Bug 1540990 - Get rid of unnecessary nsIPresShell.h inclusions r=emilio
A lot of files include `nsIPresShell.h` even though currently they don't
need it.  This patch removes the unnecessary inclusions.

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

--HG--
extra : moz-landing-system : lando
2019-04-04 00:19:48 +00:00
Razvan Maries
1cd564b971 Backed out changeset 3b94c20ba873 (bug 1540990) for build bustages. CLOSED TREE 2019-04-04 02:44:00 +03:00
Masayuki Nakano
b2bba953cc Bug 1540990 - Get rid of unnecessary nsIPresShell.h inclusions r=emilio
A lot of files include `nsIPresShell.h` even though currently they don't
need it.  This patch removes the unnecessary inclusions.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 23:29:38 +00:00
Emilio Cobos Álvarez
d8e2990d8a Bug 1535788 - Make the Document own the StyleSet. r=heycam
This is the last step to be able to call matchMedia on display: none iframes.

This is green, except for some startup preference query tests that I'm going to
address in a blocking bug (making LangGroupFontPrefs global, basically).

The setup is similar to the ShadowRoot one, except we don't eagerly keep the
StyleSet around up-to-date, we only fill it if it ever had a pres context.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 07:02:00 +00:00
Emilio Cobos Álvarez
19c116ce06 Bug 1537575 - Cleanup generic font-family handling. r=jfkthame
To be more similar between Rust and C++. This introduces GenericFontFamily and
exposes that plus FontFamilyNameSyntax to C++, using that where appropriate
instead of plain uint8_t as we were doing.

As a follow-up, as discussed on IRC with Jonathan, we can remove the -moz-fixed
family, and turn it just into an alias of Monospace.

The only non-trivial change is the MatchType changes, but they're ok I think.
The code already assumed at most one CSS generic, and the struct still takes 8
bits. I've verified that the relevant tests are passing (though try is closed).

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

--HG--
extra : moz-landing-system : lando
2019-04-01 21:47:59 +00:00
arthur.iakab
cd473e09f4 Backed out 3 changesets (bug 1537594, bug 1537575) for causing build bustages on mathml/nsMathMLChar.cpp CLOSED TREE
Backed out changeset 7375a830b5ef (bug 1537594)
Backed out changeset 0cd1411e2fb3 (bug 1537575)
Backed out changeset c7565f50239a (bug 1537575)
2019-04-01 23:41:04 +03:00
Emilio Cobos Álvarez
2188b25101 Bug 1537575 - Cleanup generic font-family handling. r=jfkthame
To be more similar between Rust and C++. This introduces GenericFontFamily and
exposes that plus FontFamilyNameSyntax to C++, using that where appropriate
instead of plain uint8_t as we were doing.

As a follow-up, as discussed on IRC with Jonathan, we can remove the -moz-fixed
family, and turn it just into an alias of Monospace.

The only non-trivial change is the MatchType changes, but they're ok I think.
The code already assumed at most one CSS generic, and the struct still takes 8
bits. I've verified that the relevant tests are passing (though try is closed).

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

--HG--
extra : moz-landing-system : lando
2019-04-01 18:48:10 +00:00
Jonathan Kew
f5e8791f61 Bug 1533428 - patch 4 - Include chromium-config.mozbuild in the moz.build for a bunch more directories, so that IPC-related headers are available. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D22922

--HG--
extra : moz-landing-system : lando
2019-04-01 14:32:44 +00:00
Jonathan Kew
c671cf4509 Bug 1533395 - Refactor gfxTextRange struct, moving the MatchType enum to gfxTypes.h as FontMatchType, and the struct inside gfxFontGroup as a local type. r=jwatt
This allows us to reduce #include usage of the massive gfxFont.h header,
and keeps this specialized kind of TextRange struct local to where it's used.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 14:32:06 +00:00
Emilio Cobos Álvarez
9ebd6eb639 Bug 1538732 - Don't let inspector change random content state. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25417

--HG--
extra : moz-landing-system : lando
2019-03-29 17:20:39 +00:00
Masayuki Nakano
de2d589e58 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:12:47 +00:00