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

42 Коммитов

Автор SHA1 Сообщение Дата
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
Julian Descottes 6aa9e3336e Bug 1443923 - part4: Expose isCustomElementName to DevTools via InspectorUtils;r=emilio
MozReview-Commit-ID: GaHP1gOCwoB

--HG--
extra : rebase_source : ee275d6643300e09a92e79c3aa0b84a3b96d5581
2018-07-19 13:59:05 +02:00
Xidorn Quan 38a8db3cca Bug 1418874 part 3 - Remove CSSLexer and related stuff. r=emilio,tromey
MozReview-Commit-ID: 2DuHpc3HfmB

--HG--
extra : rebase_source : 9718a8fd7350e33c36fc2307caf49241050800c1
2018-06-14 18:12:02 -07:00
Xidorn Quan 76b6f154a2 Bug 1465628 part 2 - Add InspectorUtils API for getting property preferences. r=emilio
MozReview-Commit-ID: G3ZjnC4cTKD

--HG--
extra : rebase_source : c1795326b8ef0af46b624d07516edad032e95547
2018-05-31 14:11:01 +10:00
Dorel Luca 6780acc0ad Backed out 4 changesets (bug 1465628) for Eslint failure. CLOSED TREE
Backed out changeset 04f276eb2f0e (bug 1465628)
Backed out changeset e9cdff122793 (bug 1465628)
Backed out changeset 6832baa28e3f (bug 1465628)
Backed out changeset e5ac0c7a9fb4 (bug 1465628)
2018-06-05 04:00:30 +03:00
Xidorn Quan 360c0bf77a Bug 1465628 part 2 - Add InspectorUtils API for getting property preferences. r=emilio
MozReview-Commit-ID: G3ZjnC4cTKD

--HG--
extra : rebase_source : 1cf5eb1509b8d8c9e773b03bb73b0ee141ffb01c
2018-05-31 14:11:01 +10:00
Jonathan Kew ad2647f459 Bug 1463115 - Try to skip irrelevant (collapsed/trimmed) whitespace when collecting used font faces for devtools inspector. r=jwatt 2018-05-24 14:44:09 +01:00
Jonathan Kew 6e425cf382 Backed out changeset 36687c035662 (bug 1463115) for frequent mochitest failures on Linux-debug 2018-06-01 18:03:13 +01:00
Jonathan Kew ca7c5f1e17 Bug 1463115 - Try to skip irrelevant (collapsed/trimmed) whitespace when collecting used font faces for devtools inspector. r=jwatt 2018-05-24 14:44:09 +01:00
Emilio Cobos Álvarez ec2824c99f Bug 1452143: Make InspectorUtils.getAllStyleSheets handle Shadow DOM, and also optionally not return UA / User sheets. r=bholley
We don't want to reparse over and over shared sheets, and that confused code
pretty heavily.

MozReview-Commit-ID: 7qkXoCoPNFW
2018-04-17 11:23:36 +02:00
Emilio Cobos Álvarez e341b20ec4 Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez 5dd797f154 Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.

MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez ca5ac79cca Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
Boris Zbarsky b06aa7e061 Bug 1446533 part 1. Rename nsGenericDOMDataNode to CharacterData. r=mystor
This is not renaming the files yet; that will be a separate changeset.

MozReview-Commit-ID: 5TxkEiQlaKF
2018-03-19 15:18:06 -04:00
Jonathan Kew 7a1f777b90 Bug 1435989 - Add a 'ranges' attribute to the InspectorFontFace object, to expose ranges of text that were rendered with a specific font. r=bz,dholbert 2018-02-15 18:48:22 +00:00
Brad Werth 45a547d205 Bug 1415940 Part 6: Create an InspectorUtils::HasRulesModifiedByCSSOM for use by devtools. r=bz,tromey
MozReview-Commit-ID: GrQ7HvBIzkZ

--HG--
extra : rebase_source : 0e8ea8cfb041973a0d0c1cc98202e7e0e465c11a
2018-01-05 13:38:56 -08:00
Cameron McCormack 3ef428b913 Bug 1427419 - Part 26: Move inIDOMUtils.scrollElementIntoView to InspectorUtils. r=bz
This is unused in mozilla-central but still used in comm-central.

MozReview-Commit-ID: HlJT7dthI41
2018-01-11 12:38:01 +08:00
Cameron McCormack ce7231c196 Bug 1427419 - Part 25: Move inIDOMUtils.parseStyleSheet to InspectorUtils. r=bz
MozReview-Commit-ID: FQlNRP8ycY3
2018-01-11 12:38:01 +08:00
Cameron McCormack afa1299635 Bug 1427419 - Part 24: Move pseudo-class lock methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: ItruGMmf5Ih
2018-01-11 12:38:01 +08:00
Cameron McCormack 3f17a89ba7 Bug 1427419 - Part 23: Move inIDOMUtils.getCSSPseudoElementNames to InspectorUtils. r=bz
MozReview-Commit-ID: A6FhXc2mJm1
2018-01-11 12:38:01 +08:00
Cameron McCormack c4663ea0f0 Bug 1427419 - Part 22: Move inIDOMUtils.getUsedFontFaces to InspectorUtils. r=bz
This also changes the function to return a sequence (JS Array) instead of
an nsFontFaceList object, and converts nsFontFace/nsIDOMFontFace into a
Web IDL implemented object too.

MozReview-Commit-ID: 1iAW3DYe5kO

--HG--
rename : layout/inspector/nsFontFace.cpp => layout/inspector/InspectorFontFace.cpp
2018-01-11 12:38:01 +08: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 075f0e5256 Bug 1427419 - Part 20: Move inIDOMUtils.getBindingURLs to InspectorUtils. r=bz
This is unused in mozilla-central but still used by comm-central.

The only consumer of this API really just wants the URL strings, so
we return a sequence<DOMString> instead of an array of nsIURI objects.

MozReview-Commit-ID: ITcEe42shHw
2018-01-11 12:38:01 +08:00
Cameron McCormack 45c9e50a65 Bug 1427419 - Part 19: Move inIDOMUtils.getChildrenForNode to InspectorUtils. r=bz
MozReview-Commit-ID: 5AznAfpZIuN
2018-01-11 12:38:00 +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
Cameron McCormack 5a4d54c425 Bug 1427419 - Part 17: Move inIDOMUtils.isIgnorableWhitespace to InspectorUtils. r=bz
This is still being used by the old DOM Inspector in comm-central.

MozReview-Commit-ID: B8fJzjUUewj
2018-01-11 12:38:00 +08:00
Cameron McCormack 0c66b23322 Bug 1427419 - Part 16: Move inIDOMUtils.cssPropertySupportsType to InspectorUtils. r=bz
MozReview-Commit-ID: AfNA6g5lTec
2018-01-11 12:38:00 +08:00
Cameron McCormack 060b4a5e4f Bug 1427419 - Part 15: Move inIDOMUtils.cssPropertyIsShorthand to InspectorUtils. r=bz
MozReview-Commit-ID: LphGIXzOlDB
2018-01-11 12:38:00 +08:00
Cameron McCormack 2212f2845a Bug 1427419 - Part 14: Move inIDOMUtils.getSubpropertiesForCSSProperty to InspectorUtils. r=bz
MozReview-Commit-ID: 8Nyt0V2NUmq
2018-01-11 12:38:00 +08:00
Cameron McCormack 0ef012043a Bug 1427419 - Part 13: Move inIDOMUtils.isValidCSSColor to InspectorUtils. r=bz
MozReview-Commit-ID: DNRfmbDucdT
2018-01-11 12:38:00 +08:00
Cameron McCormack 664c1757c0 Bug 1427419 - Part 12: Move inIDOMUtils.colorToRGBA to InspectorUtils. r=bz
MozReview-Commit-ID: 9EAdNibvZ4
2018-01-11 12:38:00 +08:00
Cameron McCormack 2eef6d3612 Bug 1427419 - Part 11: Move inIDOMUtils.rgbToColorName to InspectorUtils. r=bz
MozReview-Commit-ID: LZcGUEO4Ois
2018-01-11 12:38:00 +08:00
Cameron McCormack f5ef2d0a72 Bug 1427419 - Part 9: Move inIDOMUtils.getCSSValuesForProperty to InspectorUtils. r=bz
MozReview-Commit-ID: D3jf42KI7kO
2018-01-11 12:38:00 +08:00
Cameron McCormack 1a8d3bfd54 Bug 1427419 - Part 8: Move inIDOMUtils.getCSSPropertyNames to InspectorUtils. r=bz
While we're at it, move to a more friendly API. EXCLUDE_SHORTHANDS is
currently unused so we drop that.

MozReview-Commit-ID: H64ou63We4a
2018-01-11 12:37:59 +08:00
Cameron McCormack c81f633513 Bug 1427419 - Part 7: Move inIDOMUtils.isInheritedProperty to InspectorUtils. r=bz
MozReview-Commit-ID: AwILrjGiJ3L
2018-01-11 12:37:59 +08:00
Cameron McCormack 710da9d3e3 Bug 1427419 - Part 6: Move selector methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: 8FKRPeIijkC
2018-01-11 12:37:59 +08:00
Cameron McCormack fc4a76fb7f Bug 1427419 - Part 5: Move nsIDOMUtils.getCSSLexer to InspectorUtils. r=bz
MozReview-Commit-ID: 4UGiS3I2V6B
2018-01-11 12:37:59 +08:00
Cameron McCormack 7371ec9f08 Bug 1427419 - Part 4: Move rule line number methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: HUxWcMPzrSq
2018-01-11 12:37:59 +08:00
Cameron McCormack abddba8b81 Bug 1427419 - Part 3: Move inIDOMUtils.getCSSStyleRules to InspectorUtils. r=bz
MozReview-Commit-ID: 3pcxsYhguOk
2018-01-11 12:37:59 +08:00
Cameron McCormack 04c11b322d Bug 1427419 - Part 2: Move nsIDOMUtils.getAllStyleSheets to InspectorUtils. r=bz
MozReview-Commit-ID: J6lIx4uvMlS
2018-01-11 12:37:59 +08:00
Cameron McCormack 563e7a0e4a Bug 1427419 - Part 1: Add an InspectorUtils chrome-only IDL namespace. r=bz,tromey
Also add a way to access it from SpecialPowers for tests and from
importGlobalProperties for system JS scopes.

MozReview-Commit-ID: IewEs0Gf2M9
2018-01-11 12:37:59 +08:00