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

195 Коммитов

Автор SHA1 Сообщение Дата
Botond Ballo f037b67019 Bug 1629732 - Fix non-unified build errors in layout/tools. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D71846
2020-04-22 00:10:55 +00:00
aarushivij 58b3a02016 Bug 1631439 - Rewrite callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...) r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D71579
2020-04-20 15:42:03 +00:00
Ting-Yu Lin 014e9adb5c Bug 1627398 Part 3 - Add a menu item in layout debugger to dump frames in CSS pixels. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D69916

--HG--
extra : moz-landing-system : lando
2020-04-08 00:29:36 +00:00
Simon Giesecke 8aa47bcfb7 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D66016

--HG--
extra : moz-landing-system : lando
2020-03-17 09:38:32 +00:00
Ting-Yu Lin a50454abf1 Bug 1602767 - Make layout debugger's paged mode use the same setup as reftest-paged. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D56543

--HG--
extra : moz-landing-system : lando
2019-12-11 03:46:58 +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
Cameron McCormack 36e13da4fc Bug 1599294 - Fix URL used for opening layout debugger from the command line. r=dholbert,emilio
Differential Revision: https://phabricator.services.mozilla.com/D54644

--HG--
extra : moz-landing-system : lando
2019-11-26 00:35:18 +00:00
Emma Malysz 273aab2e2a Bug 1596884, replace remaining .xul files in layout/tools with .xhtml r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D53898

--HG--
rename : layout/tools/layout-debug/ui/content/layoutdebug.xul => layout/tools/layout-debug/ui/content/layoutdebug.xhtml
rename : layout/tools/recording/recording.xul => layout/tools/recording/recording.xhtml
rename : layout/tools/reftest/reftest.xul => layout/tools/reftest/reftest.xhtml
extra : moz-landing-system : lando
2019-11-20 20:40:32 +00:00
Ting-Yu Lin fe7aba788d Bug 1590185 Part 3 - Add --paged command line argument to layout debugger. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D49994

--HG--
extra : moz-landing-system : lando
2019-10-29 19:51:44 +00:00
Ting-Yu Lin 0023c0c92d Bug 1590185 Part 2 - Support paged mode layout in layout debugger. r=dbaron
This patch adds a menu item in "Toggle" -> "Paged Mode". If the item is
toggled, after finishing loading the document, the document will be
forced into paged mode.

The print settings in `nsLayoutDebuggingTools::SetPagedMode()` are
similar to `setupPrintMode()` in reftest-content.js.

Remove the hack in nsDocumentViewer::InitInternal() because we don't
want to set a new document when mIsPageMode = false.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 19:51:42 +00:00
Ting-Yu Lin 3f0609ea5d Bug 1590185 Part 1 - Remove obsolete member variables in nsLayoutDebuggingTools. r=heycam
Bug 1566215 Part 3 moved these features to layoutdebug.js.
https://hg.mozilla.org/mozilla-central/rev/f84c119572a1f4d8b20ac05c0bd8cefe4fe70fef

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

--HG--
extra : moz-landing-system : lando
2019-10-29 19:51:33 +00:00
Zibi Braniecki e91fc59641 Bug 1591570 - Remove contenttitlesetting. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D50665

--HG--
extra : moz-landing-system : lando
2019-10-29 17:48:22 +00:00
Brindusan Cristian 225180bff0 Bug 1585217 - Fix Eslint. r=me CLOSED TREE 2019-10-02 02:00:51 +03:00
Emilio Cobos Álvarez caccd3a1d9 Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 17:09:23 +00:00
Noemi Erli 20a7022489 Backed out changeset 3f8c2c77cd63 (bug 1585217) for failing in rowser_openLayoutDebug.js CLOSED TREE 2019-10-01 19:07:26 +03:00
Emilio Cobos Álvarez 078e5fd7fa Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 14:23:12 +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
Ciure Andrei fa4f19c71e Backed out changeset f5716082ad9c (bug 1585217) for causing ESlint failure CLOSED TREE 2019-10-01 05:51:21 +03:00
Emilio Cobos Álvarez 2b5100f2c5 Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 02:17:48 +00:00
Brian Grinstead 92fc475e5b Bug 1584306 - Replace <xul:textbox> with <html:input> in layout/tools/layout-debug/ui/content/layoutdebug.xul;r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D47329

--HG--
extra : moz-landing-system : lando
2019-09-27 17:23:31 +00:00
Zibi Braniecki 38edf520dd Bug 1581204 - Remove unused DTDs from layout. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D45901

--HG--
extra : moz-landing-system : lando
2019-09-16 19:41:54 +00:00
Cameron McCormack 2503e0f3c1 Bug 1577390 - Wait a bit before loading document in Layout Debugger when profiling. r=dbaron
That gives the profiler a chance to attach to a newly created content
process.  There's no API for waiting for the profiler to be ready in a
just-created process, unfortunately.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 23:12:58 +00:00
Cameron McCormack 79a431d339 Bug 1569077 - Part 3: Add --capture-profile argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39469

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:30 +00:00
Cameron McCormack 712f284101 Bug 1569077 - Part 2: Add --autoclose argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39468

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:28 +00:00
Cameron McCormack 7ce6716163 Bug 1569077 - Part 1: Refactor layout debugger command line handling. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39467

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:26 +00:00
Cameron McCormack d622a3d445 Bug 1569060 - Add layout debugger command to dump process IDs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D39437

--HG--
extra : moz-landing-system : lando
2019-08-06 23:31:55 +00:00
Kannan Vijayan 3fb6190ec6 Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39378

--HG--
extra : moz-landing-system : lando
2019-07-26 16:48:31 +00:00
Cameron McCormack 65b43505be Bug 1569084 - Update help text to use two-dash form for --layoutdebug. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D39448

--HG--
extra : moz-landing-system : lando
2019-07-26 02:25:29 +00:00
Ting-Yu Lin 47c53c2fec Bug 1567982 - Fix command name for the reload button on layout debugger's toolbar. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D38903

--HG--
extra : moz-landing-system : lando
2019-07-22 22:57:49 +00:00
Coroiu Cristina 4436573fa3 Bug 1566215 - Fix ESlint failure on a CLOSED TREE 2019-07-22 09:27:29 +03:00
Cameron McCormack db2d38ee9a Bug 1567328 - Improve the keyboard shortcuts in the Layout Debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38582

--HG--
extra : moz-landing-system : lando
2019-07-19 18:38:47 +00:00
Cameron McCormack bc2763a680 Bug 1566215 - Part 5: Use a remote browser in the layout debugger. r=dbaron,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D38415

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:44 +00:00
Cameron McCormack 383e501763 Bug 1566215 - Part 4: Use message manager to send layout debugger commands to content. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38414

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:37 +00:00
Cameron McCormack 3c7a36d829 Bug 1566215 - Part 3: Move debugging state management into layoutdebug.js. r=dbaron
Many of these features are non-functional these days, but I'll keep them
hooked up in case we decide to fix them.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:35 +00:00
Cameron McCormack b92599beb1 Bug 1566215 - Part 2: Merge nsILayoutDebugger functionality into nsLayoutDebuggingTools. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38412

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:33 +00:00
Cameron McCormack 75400edc99 Bug 1566215 - Part 1: Remove some unused nsLayoutDebuggingTools code. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38411

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:26 +00:00
Victor Porof 6a261b9e77 Bug 1561435 - Format layout/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : b9cc96337c05dbb9a9f811c63dcc5fd63588d652
2019-07-05 10:50:41 +02:00
Cameron McCormack 00bc6ad52c Bug 1552098 - Add "Matched CSS Rules" command to the layout debugger. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D31397

--HG--
extra : moz-landing-system : lando
2019-05-16 23:11:50 +00:00
Sylvestre Ledru e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Andrew McCreight 9c94962bf5 Bug 1545831 - Use ChromeUtils.generateQI in a few more places. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D28241

--HG--
extra : moz-landing-system : lando
2019-04-19 19:58:13 +00:00
Masayuki Nakano 60e014c55e Bug 1544215 - Make nsIContentVewer::GetPresShell() return mozilla::PresShell instead of nsIPresShell r=bzbarsky
Additionally, this patch makes `nsDocumentViewer` which is the only
implementation of `nsIContentViewer` use `mozilla::PresShell` directly
rather than via `nsIPresShell`.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 02:47:26 +00:00
Mike Hommey 0376919567 Bug 1543009 - Move layout debugger xpcom components to static registration. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D26894
2019-04-11 16:23:53 +09:00
Mike Hommey 071a2fe984 Bug 1541792 - Replace linker magic with manual component registration. r=froydnj
Before bug 938437, we had a rather large and error-prone
nsStaticXULComponents.cpp used to register all modules. That was
replaced with clever use of the linker, which allowed to avoid the mess
that maintaining that file was.

Fast forward to now, where after bug 1524687 and other work that
preceded it, we have a much smaller number of remaining static xpcom
components, registered via this linker hack, and don't expect to add
any new ones. The list should eventually go down to zero.

Within that context, it seems to be the right time to get rid of the
magic, and with it the problems it causes on its own.

Some of those components could probably be trivially be converted to
static registration via .conf files, but I didn't want to deal with the
possible need to increase the number of dummy modules in XPCOMInit.cpp.
They can still be converted as a followup.

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

--HG--
extra : moz-landing-system : lando
2019-04-05 02:30:56 +00:00
Carolina Jimenez Gomez 930c75ee4b Bug 1480925 - Removes anti-patterns related with Ci.nsIWhatever. r=keeler,yzen
Differential Revision: https://phabricator.services.mozilla.com/D25686

--HG--
extra : moz-landing-system : lando
2019-04-05 16:51:16 +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
Mark Banner dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Mats Palmgren 59534e1acd Bug 1536309 - Make it possible to optionally enable frame dumps in layout-debugger in non-DEBUG builds. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D23978

--HG--
extra : rebase_source : 820212e760771d3fab68ed476d527f823b20c059
2019-03-19 02:02:44 +01:00
Ting-Yu Lin bc578eec31 Bug 1523808 - Import Service module in layoutdebug.js. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18005

--HG--
extra : moz-landing-system : lando
2019-01-30 00:38:45 +00:00
Ehsan Akhgari 4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00