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

25 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
Masayuki Nakano e705b3211c Bug 1540015 - part 1: Make Document.h stop including nsIPresShell.h r=smaug
If `Document::GetShell()` returns `PresShell*` rather than `nsIPresShell`, it's
a good step to deCOMTaminate `PresShell`.

This patch makes `Document.h` stop including `nsIPresShell.h` since
`nsIPresShell.h` includes `Document.h` indirectly and that causes bustage
when we make `Document::GetShell()` return `PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:11:04 +00:00
Dorel Luca 5a0fa68b78 Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Masayuki Nakano 854606257b Bug 1540015 - part 1: Make Document.h stop including nsIPresShell.h r=smaug
If `Document::GetShell()` returns `PresShell*` rather than `nsIPresShell`, it's
a good step to deCOMTaminate `PresShell`.

This patch makes `Document.h` stop including `nsIPresShell.h` since
`nsIPresShell.h` includes `Document.h` indirectly and that causes bustage
when we make `Document::GetShell()` return `PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 12:12:20 +00:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Boris Zbarsky 54fad5efa0 Bug 1455676 part 7. Remove nsIDOMNode usage from layout/inspector/. r=qdot 2018-05-29 22:58:48 -04:00
Adrian Wielgosik f1457c6874 Bug 1460940 - Remove nsIDOMDocument uses in layout/. r=bz
MozReview-Commit-ID: KixJ5edlCjl

--HG--
extra : rebase_source : 677049bc7eb131dc86ed468eb8a6b06085f2c17d
2018-05-11 19:46:15 +02:00
Hiroyuki Ikezoe 1b0cba9367 Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
It would be convenient to get nsPresContext from nsIDocument.

MozReview-Commit-ID: Ei6V3UE8XGr

--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Cameron McCormack 25abd91980 Bug 1427419 - Part 21: Move content state methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: KfrUdNU4as3
2018-01-11 12:38:01 +08:00
Cameron McCormack 41ac7e60e0 Bug 1427419 - Part 18: Move inIDOMUtils.getParentForNode to InspectorUtils. r=bz
MozReview-Commit-ID: 5GxNmyVHf8u
2018-01-11 12:38:00 +08:00
Daniel Holbert 680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Jonathan Watt 8cacd9681d Bug 1018324 - Remove inIFlasher. r=roc 2015-01-26 17:08:45 +00:00
Olli Pettay d72906c30d Bug 314095 - Eliminate nsIContent::GetDocument, r=jst
--HG--
extra : rebase_source : dd8f690940825b298a478b65b68a57418a9962ff
2014-08-22 23:11:27 +03:00
Jonathan Watt 252a891943 Bug 1018324 - Restore inIFlasher, but with drawElementOutline and repaintElement as no-ops. r=bz 2014-06-11 21:29:15 +01:00
Jonathan Watt 03cb023649 Bug 1018324 - Remove inIFlasher. r=roc 2014-06-10 07:02:21 +01:00
Masayuki Nakano f6885469a0 Bug 984271 part.2 Rename nsEventStateManager to mozilla::EventStateManager r=smaug
--HG--
rename : dom/events/nsEventStateManager.cpp => dom/events/EventStateManager.cpp
rename : dom/events/nsEventStateManager.h => dom/events/EventStateManager.h
2014-04-01 13:09:23 +09:00
Robert O'Callahan 57435abee6 Bug 945091. Part 1: Flatten inspector/public and inspector/src into inspector. r=glandium
--HG--
rename : layout/inspector/src/inCSSValueSearch.cpp => layout/inspector/inCSSValueSearch.cpp
rename : layout/inspector/src/inCSSValueSearch.h => layout/inspector/inCSSValueSearch.h
rename : layout/inspector/src/inDOMUtils.cpp => layout/inspector/inDOMUtils.cpp
rename : layout/inspector/src/inDOMUtils.h => layout/inspector/inDOMUtils.h
rename : layout/inspector/src/inDOMView.cpp => layout/inspector/inDOMView.cpp
rename : layout/inspector/src/inDOMView.h => layout/inspector/inDOMView.h
rename : layout/inspector/src/inDeepTreeWalker.cpp => layout/inspector/inDeepTreeWalker.cpp
rename : layout/inspector/src/inDeepTreeWalker.h => layout/inspector/inDeepTreeWalker.h
rename : layout/inspector/src/inFlasher.cpp => layout/inspector/inFlasher.cpp
rename : layout/inspector/src/inFlasher.h => layout/inspector/inFlasher.h
rename : layout/inspector/public/inICSSValueSearch.idl => layout/inspector/inICSSValueSearch.idl
rename : layout/inspector/public/inIDOMUtils.idl => layout/inspector/inIDOMUtils.idl
rename : layout/inspector/public/inIDOMView.idl => layout/inspector/inIDOMView.idl
rename : layout/inspector/public/inIDeepTreeWalker.idl => layout/inspector/inIDeepTreeWalker.idl
rename : layout/inspector/public/inIFlasher.idl => layout/inspector/inIFlasher.idl
rename : layout/inspector/public/inISearchObserver.idl => layout/inspector/inISearchObserver.idl
rename : layout/inspector/public/inISearchProcess.idl => layout/inspector/inISearchProcess.idl
rename : layout/inspector/src/inLayoutUtils.cpp => layout/inspector/inLayoutUtils.cpp
rename : layout/inspector/src/inLayoutUtils.h => layout/inspector/inLayoutUtils.h
rename : layout/inspector/src/inSearchLoop.cpp => layout/inspector/inSearchLoop.cpp
rename : layout/inspector/src/inSearchLoop.h => layout/inspector/inSearchLoop.h
rename : layout/inspector/src/moz.build => layout/inspector/moz.build
rename : layout/inspector/src/nsFontFace.cpp => layout/inspector/nsFontFace.cpp
rename : layout/inspector/src/nsFontFace.h => layout/inspector/nsFontFace.h
rename : layout/inspector/src/nsFontFaceList.cpp => layout/inspector/nsFontFaceList.cpp
rename : layout/inspector/src/nsFontFaceList.h => layout/inspector/nsFontFaceList.h
rename : layout/inspector/public/nsIDOMFontFace.idl => layout/inspector/nsIDOMFontFace.idl
rename : layout/inspector/public/nsIDOMFontFaceList.idl => layout/inspector/nsIDOMFontFaceList.idl
2013-12-04 14:04:23 +13:00
Carsten "Tomcat" Book 08d815245e Backed out changeset 1dcb339812d1 (bug 945091) for mochitest-8 bustage on a CLOSED TREE
--HG--
rename : layout/inspector/inICSSValueSearch.idl => layout/inspector/public/inICSSValueSearch.idl
rename : layout/inspector/inIDOMUtils.idl => layout/inspector/public/inIDOMUtils.idl
rename : layout/inspector/inIDOMView.idl => layout/inspector/public/inIDOMView.idl
rename : layout/inspector/inIDeepTreeWalker.idl => layout/inspector/public/inIDeepTreeWalker.idl
rename : layout/inspector/inIFlasher.idl => layout/inspector/public/inIFlasher.idl
rename : layout/inspector/inISearchObserver.idl => layout/inspector/public/inISearchObserver.idl
rename : layout/inspector/inISearchProcess.idl => layout/inspector/public/inISearchProcess.idl
rename : layout/inspector/nsIDOMFontFace.idl => layout/inspector/public/nsIDOMFontFace.idl
rename : layout/inspector/nsIDOMFontFaceList.idl => layout/inspector/public/nsIDOMFontFaceList.idl
rename : layout/inspector/inCSSValueSearch.cpp => layout/inspector/src/inCSSValueSearch.cpp
rename : layout/inspector/inCSSValueSearch.h => layout/inspector/src/inCSSValueSearch.h
rename : layout/inspector/inDOMUtils.cpp => layout/inspector/src/inDOMUtils.cpp
rename : layout/inspector/inDOMUtils.h => layout/inspector/src/inDOMUtils.h
rename : layout/inspector/inDOMView.cpp => layout/inspector/src/inDOMView.cpp
rename : layout/inspector/inDOMView.h => layout/inspector/src/inDOMView.h
rename : layout/inspector/inDeepTreeWalker.cpp => layout/inspector/src/inDeepTreeWalker.cpp
rename : layout/inspector/inDeepTreeWalker.h => layout/inspector/src/inDeepTreeWalker.h
rename : layout/inspector/inFlasher.cpp => layout/inspector/src/inFlasher.cpp
rename : layout/inspector/inFlasher.h => layout/inspector/src/inFlasher.h
rename : layout/inspector/inLayoutUtils.cpp => layout/inspector/src/inLayoutUtils.cpp
rename : layout/inspector/inLayoutUtils.h => layout/inspector/src/inLayoutUtils.h
rename : layout/inspector/inSearchLoop.cpp => layout/inspector/src/inSearchLoop.cpp
rename : layout/inspector/inSearchLoop.h => layout/inspector/src/inSearchLoop.h
rename : layout/inspector/moz.build => layout/inspector/src/moz.build
rename : layout/inspector/nsFontFace.cpp => layout/inspector/src/nsFontFace.cpp
rename : layout/inspector/nsFontFace.h => layout/inspector/src/nsFontFace.h
rename : layout/inspector/nsFontFaceList.cpp => layout/inspector/src/nsFontFaceList.cpp
rename : layout/inspector/nsFontFaceList.h => layout/inspector/src/nsFontFaceList.h
2013-12-04 09:24:09 +01:00
Robert O'Callahan 8b79ea263f Bug 945091. Part 1: Flatten inspector/public and inspector/src into inspector. r=glandium
--HG--
rename : layout/inspector/src/inCSSValueSearch.cpp => layout/inspector/inCSSValueSearch.cpp
rename : layout/inspector/src/inCSSValueSearch.h => layout/inspector/inCSSValueSearch.h
rename : layout/inspector/src/inDOMUtils.cpp => layout/inspector/inDOMUtils.cpp
rename : layout/inspector/src/inDOMUtils.h => layout/inspector/inDOMUtils.h
rename : layout/inspector/src/inDOMView.cpp => layout/inspector/inDOMView.cpp
rename : layout/inspector/src/inDOMView.h => layout/inspector/inDOMView.h
rename : layout/inspector/src/inDeepTreeWalker.cpp => layout/inspector/inDeepTreeWalker.cpp
rename : layout/inspector/src/inDeepTreeWalker.h => layout/inspector/inDeepTreeWalker.h
rename : layout/inspector/src/inFlasher.cpp => layout/inspector/inFlasher.cpp
rename : layout/inspector/src/inFlasher.h => layout/inspector/inFlasher.h
rename : layout/inspector/public/inICSSValueSearch.idl => layout/inspector/inICSSValueSearch.idl
rename : layout/inspector/public/inIDOMUtils.idl => layout/inspector/inIDOMUtils.idl
rename : layout/inspector/public/inIDOMView.idl => layout/inspector/inIDOMView.idl
rename : layout/inspector/public/inIDeepTreeWalker.idl => layout/inspector/inIDeepTreeWalker.idl
rename : layout/inspector/public/inIFlasher.idl => layout/inspector/inIFlasher.idl
rename : layout/inspector/public/inISearchObserver.idl => layout/inspector/inISearchObserver.idl
rename : layout/inspector/public/inISearchProcess.idl => layout/inspector/inISearchProcess.idl
rename : layout/inspector/src/inLayoutUtils.cpp => layout/inspector/inLayoutUtils.cpp
rename : layout/inspector/src/inLayoutUtils.h => layout/inspector/inLayoutUtils.h
rename : layout/inspector/src/inSearchLoop.cpp => layout/inspector/inSearchLoop.cpp
rename : layout/inspector/src/inSearchLoop.h => layout/inspector/inSearchLoop.h
rename : layout/inspector/src/moz.build => layout/inspector/moz.build
rename : layout/inspector/src/nsFontFace.cpp => layout/inspector/nsFontFace.cpp
rename : layout/inspector/src/nsFontFace.h => layout/inspector/nsFontFace.h
rename : layout/inspector/src/nsFontFaceList.cpp => layout/inspector/nsFontFaceList.cpp
rename : layout/inspector/src/nsFontFaceList.h => layout/inspector/nsFontFaceList.h
rename : layout/inspector/public/nsIDOMFontFace.idl => layout/inspector/nsIDOMFontFace.idl
rename : layout/inspector/public/nsIDOMFontFaceList.idl => layout/inspector/nsIDOMFontFaceList.idl
extra : rebase_source : 6db93b3110568dcde9236f4ee35e61333d7316f0
2013-12-04 14:04:23 +13:00