Commit Graph

24 Commits

Author SHA1 Message Date
Matteo Ferretti
199353dcee Bug 1359028 - added encodeURIComponent and fixed css class typo; r=pbro
The patch of bug 1353005 removed by mistake a leading dot in a css class, and
the `encodeURIComponent` calls (so the # in the color definition was considered
the hash part in the url).
Also, it appears autoland rejected the last commit from Bug 1353005, so this
patch includes those changes as well.

MozReview-Commit-ID: 2aVW3hYHhSr
2017-04-25 16:35:08 +02:00
Matteo Ferretti
e36bf2991f Bug 1353005 - removed sdk/content/mod and replaced with DOMWindowUtils calls; r=pbro pbro
MozReview-Commit-ID: 7aj8C0zYr6C
2017-04-10 21:47:39 +02:00
Matteo Ferretti
c75591f4c5 Bug 1345434 - Implementation of a virtual canvas technique for grid highlighter; r=pbro
A virtual canvas is basically a canvas that seems bigger than is actually is.
The technique consists in moving a fixed sized canvas during the scrolling, when
is needed, to give the illusion that it always covers the entire document.

MozReview-Commit-ID: Hp4cUZaBdm8
2017-04-04 15:11:04 +02:00
Matteo Ferretti
4a6c9485d3 Bug 1349275 - refactored moveInfobar function; r=pbro
- Added `getViewportDimensions`
- Added `getComputedStylePropertyValue` to `CanvasFrameAnonymousContentHelper`
- Refactored totally `moveInfobar` to works with both APZ enabled and new
  positioned absolutely highlighters
- Updated `AutoRefreshHighlighter` for having a `scrollUpdate` method.
- Updated tests

MozReview-Commit-ID: 5m31ZzRzLXr
2017-03-28 12:40:22 +02:00
Iris Hsiao
fc280a6213 Backed out changeset 448adfbcfda1 (bug 1349275) for eslint failure 2017-03-29 10:29:13 +08:00
Matteo Ferretti
7484fd202f Bug 1349275 - refactored moveInfobar function; r=pbro
- Added `getViewportDimensions`
- Added `getComputedStylePropertyValue` to `CanvasFrameAnonymousContentHelper`
- Refactored totally `moveInfobar` to works with both APZ enabled and new
  positioned absolutely highlighters
- Updated `AutoRefreshHighlighter` for having a `scrollUpdate` method.
- Updated tests

MozReview-Commit-ID: 5m31ZzRzLXr
2017-03-28 12:40:22 +02:00
Matteo Ferretti
4364825159 Bug 1348267 - used display density pixel ratio to scale the font size; r=pbro
Added also a `getDisplayPixelRatio` method, since we're probably going to use it
more often, instead of doing this math all the time in the code, it will be more
clear.

MozReview-Commit-ID: HLtbwDBvbF6
2017-03-17 12:07:11 +01:00
Matteo Ferretti
3831752b0d Bug 1343217 - Cut the CssGridHighlighter canvas size to its maximum size; r=pbro
This is a temporary fix to prevent the CssGridHighlighter from crashing on very
big pages.
This way, at least some parts of the highlighter are visible.
See bug 1345434 for the real fix.

MozReview-Commit-ID: DIw7RXi0SEz
2017-03-02 10:52:15 +01:00
Matteo Ferretti
fd8cc97d66 Bug 1312103 - Avoid scrolling latency on highlighters given by APZ; r=pbro
- Used `position: absolute` instead of `position: fixed` whenever was possible.
- Updated utility functions and auto-refresh base class to consider the scrolled
  values in root document and scrollable elements.

MozReview-Commit-ID: 6evdOrfj74z
2017-01-02 11:43:37 +01:00
Florian Quèze
0a4ee94a29 Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
Ehsan Akhgari
917a5e63fc Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Carsten "Tomcat" Book
84568d0bc2 Backed out changeset 7d1f7dd996f7 (bug 1310845) 2016-11-16 14:50:44 +01:00
Ehsan Akhgari
2d792bd2ad Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-15 18:31:46 -05:00
Gabriel Luong
b8da371ddc Bug 1308257 - Part 1: Move ReflowActor to reflow.js r=pbro 2016-11-01 11:51:58 +09:00
Brian Grinstead
c2d2c30c3e Bug 1304513 - Get rid of sdk use in devtools/shared/layout/utils.js;r=tromey
MozReview-Commit-ID: FXV7XhbuZmw
2016-09-22 07:59:35 -07:00
Ryan VanderMeulen
724c163f1c Merge fx-team to m-c. a=merge 2016-08-19 09:54:25 -04:00
Patrick Brosset
98f15741fe Bug 1289553 - Move the eyedropper label so it's always visible; r=jdescottes
This adds a few new CSS selectors that are used to move the label to the
top and/or left/right of the eyedropper canvas.
The CSS rules use transform and a quick transition.
The eyedropper highlighter then just makes use of this by adding top, left,
right attributes to the DOM depending on its position.

This also adds a test for this, and while testing, I discovered a bug in
shared/layout/utils.js that I fixed here too. Sometimes, the node passed is
actually a DOCUMENT_NODE and so we must account for this in a couple of places
in this file to avoid JS errors.

MozReview-Commit-ID: H969k3mEDJE


MozReview-Commit-ID: 9qOCYVp4mld
2016-08-18 15:17:47 +02:00
Tom Tromey
850dac53cb Bug 1292242 - move scrollIntoViewIfNeeded to its own module; r=bgrins
MozReview-Commit-ID: 8diNiffQmDB
2016-08-17 11:13:54 -06:00
Patrick Brosset
e19007d87a Bug 1262439 - 1 - Introduce a new eye-dropper highlighter; r=zer0
This is mostly porting code from the XUL eye-dropper over to a new
highlighter file.
While I have tested this locally, this highlighter isn't yet used
in devtools.
This will come in later patches.

MozReview-Commit-ID: IF0puLu5Yc7
2016-07-21 14:35:14 +02:00
Joseph Yeh
1341d9ee45 Bug 1274609 - Replace uses of Ci.nsIDOMNodeFilter constants. r=jlongster
MozReview-Commit-ID: 1OeiMaVZ7tm
2016-07-11 20:28:00 +02:00
Patrick Brosset
b52f1b4c32 Bug 1246088 - ESLint cleanups of devtools/shared/layout/utils.js; r=bgrins
MozReview-Commit-ID: gUB8kFMQVF
2016-03-09 12:09:48 +01:00
Patrick Brosset
90dee9ddfa Bug 1246088 - Safely access contentWindow in iframe and embed; r=bgrins
MozReview-Commit-ID: 6GRsMsJPn5x
2016-03-09 11:54:12 +01:00
J. Ryan Stinnett
d0e4c235aa Bug 1238160 - Set docshell isolation mode. r=smaug
Renames nsDocShell isBrowser* attributes to add a "Moz" prefix for clarity.

Adds nsDocShell::GetIsIsolatedMozBrowserElement, which parallels
GetIsInIsolatedMozBrowserElement, but only checks the immediate docshell.

Adds nsDocShell::SetIsInIsolatedMozBrowserElement for the frame loader and tab
child to set the isolation state.

nsDocShell methods related to mozbrowser elements (and their callers) are
updated to use GetIs(In)?IsolatedMozBrowserElement when checking isolation /
origins and GetIsMozBrowserElement when checking frame types.

MozReview-Commit-ID: 6pGD5fF47ZN
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00