gecko-dev/layout/inspector
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
..
tests Bug 1600155 - Remove StyleSheet{Added,Removed} and StyleRule{Added,Removed,Changed} events. r=heycam,smaug 2019-11-30 12:24:32 +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
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
InspectorFontFace.cpp Bug 1537575 - Cleanup generic font-family handling. r=jfkthame 2019-04-01 21:47:59 +00:00
InspectorFontFace.h 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 2019-04-01 14:32:06 +00:00
InspectorUtils.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
InspectorUtils.h Bug 713106: Make :visited selector enabled to use from DevTools. r=pbro,emilio 2019-09-13 22:12:12 +00:00
moz.build Bug 1593119 - Remove dom/xbl and the MOZ_XBL build option r=bzbarsky 2019-11-07 00:35:32 +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