Commit Graph

1040 Commits

Author SHA1 Message Date
Sebastian Hengst
0dd56967f5 Backed out changeset c32c74847eb6 (bug 1335539) 2017-02-21 17:53:45 +01:00
Andrea Marchesini
10d85bf63f Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-02-21 15:04:47 +01:00
Carsten "Tomcat" Book
62425aaabb Backed out changeset 952f0a7824ad (bug 1335539) 2017-02-21 10:30:06 +01:00
Andrea Marchesini
83ac311d0c Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-02-21 07:51:35 +01:00
Matt Woodrow
03b6309c72 Bug 1302071 - Part 2: Remove ClearMozAfterPaintEvents since it's unused. r=tnikkel
MozReview-Commit-ID: FCy5y6cDXrY
2017-02-17 11:50:28 +13:00
Sylvestre Ledru
e3d60e5b2e Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/base/ r=Ehsan
MozReview-Commit-ID: 5sCNbqC4ew3
2017-02-09 15:44:02 +01:00
Kartikaya Gupta
05ab5e41a7 Merge m-c to graphics
MozReview-Commit-ID: Gds3AlDHXgY
2017-01-20 10:07:40 -05:00
Boris Zbarsky
cdbd6b5265 Bug 1332353. Make it clearer when a stylesheet is really owned by its mDocument. r=heycam 2017-01-19 23:49:44 -05:00
Kartikaya Gupta
3d70f1ee98 Merge m-c to graphics
MozReview-Commit-ID: LPeWBwbK82h
2017-01-12 12:40:09 -05:00
Kartikaya Gupta
c72106b831 Merge m-c to graphics
MozReview-Commit-ID: HGa7QgtJVwu
2017-01-06 11:24:57 -05:00
Morris Tseng
565444eb81 Merge m-c to graphics. 2016-12-29 18:26:24 +08:00
Kartikaya Gupta
3050106083 Merge m-c to graphics
MozReview-Commit-ID: 6XqNGxF5EiQ
2016-12-23 10:14:44 -05:00
Boris Zbarsky
3873abb4ad Bug 1320801 part 5. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's devicePixelRatio getter. r=bkelly 2016-12-22 11:05:54 -08:00
Kartikaya Gupta
26f427122c Merge m-c to graphics
MozReview-Commit-ID: E0Sr26LKcZx
2016-12-21 10:16:15 -05:00
Ho-Pang
a2e4a87f34 Bug 1299209 - Part 2: Support setting pointerId in nsDOMWindowwUtils and nsContentUtils. f=sshih, r=smaug 2016-12-20 23:06:00 -05:00
Ehsan Akhgari
cb0ab50626 Bug 1312514 - Part 3: Add a test to ensure that timeouts from tracking scripts end up in the tracking bucket; r=bkelly
For simplicity, this test is being added to test_classifier.html which
already has all of the infrastructure necessary for setting up a test
domain as a tracking domain.
2016-12-20 12:40:30 -05:00
Nathan Froyd
3fe0e257a7 Bug 1322396 - report external resources of documents when flushing use counters in tests; r=dholbert
Our use counter tests force reporting of use counters from documents to
make the tests more deterministic: relying on the default
report-at-document-destruction behavior would introduce any number of
intermittents.  However, documents may have any number of external
resource documents, and we have no mechanism for forcing a deterministic
reporting of the use counters from those documents.  Relying on those
external resources to have been destroyed (and thereby reported their
use counters) when we examine the values of the use counters in question
is a recipe for intermittent failures.

Therefore, we introduce an optional report kind for use counter
reporting: if a document is reporting its use counters for the purposes
of a test, we will also report the use counters for the document's
external resource documents.  This change makes everything more
deterministic.
2017-01-11 09:52:23 -05:00
Phil Ringnalda
de4e89601d Backed out 2 changesets (bug 1322396) for unexpected-pass failures in browser_use_counters.js
Backed out changeset 211d8715c965 (bug 1322396)
Backed out changeset aae1f858f6de (bug 1322396)

MozReview-Commit-ID: EYvhigQ0NSO
2017-01-09 18:45:08 -08:00
sotaro
bb44aaadf7 Bug 1321728 - Update nsDOMWindowUtils::GetLayerManagerRemote() r=nical 2016-12-04 17:35:33 +09:00
Cameron McCormack
5f9911da79 Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Boris Zbarsky
dc4e368825 Bug 1317813. Remove the remaining security checks in windowutils, since untrusted script should never have its hands on this object. r=ehsan 2016-11-17 13:49:26 -05:00
Sylvestre Ledru
bce04869ce Bug 1317430 - Avoid a unnecessary copy by passing a const & in dom/base/ r=smaug
MozReview-Commit-ID: A70LY4ekX8E
2016-11-14 23:15:46 +01:00
Andi-Bogdan Postelnicu
c47b0b7b15 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO
2016-11-14 11:40:37 +02:00
Andi-Bogdan Postelnicu
dbc05f2e21 Bug 1317241 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in dom/. r=baku
MozReview-Commit-ID: CST7fV4h20h
2016-11-14 11:35:58 +02:00
Nathan Froyd
e808804bd7 Bug 1322396 - part 1 - report external resources of documents when flushing use counters in tests; r=dholbert
Our use counter tests force reporting of use counters from documents to
make the tests more deterministic: relying on the default
report-at-document-destruction behavior would introduce any number of
intermittents.  However, documents may have any number of external
resource documents, and we have no mechanism for forcing a deterministic
reporting of the use counters from those documents.  Relying on those
external resources to have been destroyed (and thereby reported their
use counters) when we examine the values of the use counters in question
is a recipe for intermittent failures.

Therefore, we introduce an optional report kind for use counter
reporting: if a document is reporting its use counters for the purposes
of a test, we will also report the use counters for the document's
external resource documents.  This change makes everything more
deterministic.
2017-01-09 13:55:31 -05:00
Cameron McCormack
a191cdb1b5 Bug 1328546 - stylo: Support ServoStyleSheets in nsIStyleSheetService::PreloadSheet and nsIDOMWindowUtils::AddSheet. r=bholley
MozReview-Commit-ID: 2KOMrnCf1Ag
2017-01-05 15:32:22 +08:00
George Wright
afd7a124a4 Bug 1314426 - Add a method to nsIDOMWindowUtils to terminate the GPU process and get the GPU process pid r=smaug,dvander 2016-11-07 14:22:48 -05:00
Ben Kelly
3140345d73 Bug 1303167 P6 Rename new suspend and freeze methods to final names. r=smaug 2016-10-26 10:20:16 -07:00
Ben Kelly
cfc08923aa Bug 1303167 P2 Use new window suspend and freeze methods. r=smaug
* * *
Bug 1303167 P2 interdiff 0001 Review feedback
2016-10-26 10:20:15 -07:00
Boris Chiou
5e5fbf62e9 Bug 1272549 - Part 9: Compute distance for mismatched transform lists. r=birtles
MozReview-Commit-ID: JJWcMgj88GX
2016-10-05 15:36:16 +08:00
Matt Woodrow
82dd7ee7e4 Bug 1300682 - Part 5: Use KnowsCompositor to initialize decoders and create one for VideoDecoderParent to use. r=nical,jya 2016-10-07 21:13:33 +13:00
James Willcox
5676e93ff2 Bug 1278581 - Add 'millisSinceLastUserInput' to nsIDOMWindowUtils r=smaug 2016-09-29 08:27:54 -05:00
Xidorn Quan
7ba350b0a6 Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.

This commit is generated by the following command:

find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
  -e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
  -e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +

MozReview-Commit-ID: 54H5x27Pmso
2016-09-26 22:03:25 +10:00
Stone Shih
bfe46c33cf Bug 1292070 - Part 2: Add API to synthesize mouse event with buttons. f=bevistseng, r=smaug 2016-08-18 11:58:48 +08:00
Ryan VanderMeulen
dbf61a2219 Merge m-c to autoland. a=merge 2016-08-25 08:14:36 -04:00
Kartikaya Gupta
36f24c16c5 Bug 1292781 - Add a test. r=tnikkel
MozReview-Commit-ID: f0UvsKMwAL
2016-08-24 09:15:42 -04:00
Hiroyuki Ikezoe
065f63bf9a Bug 1279071 - Change GetOpacity to GetAnimationOpacity to return opacity value applied by animation. r=birtles,mstange
MozReview-Commit-ID: 6rMUlnppOeK
2016-08-25 09:07:56 +09:00
Nicholas Nethercote
8b8bd02a31 Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange.
This patch makes GetBounds(), GetScreenBounds() and GetClientBounds() more
obviously infallible, like existing functions such as GetNaturalBounds() and
GetClientSize(). This results in clearer behaviour in nsCocoaWindow.mm if
Objective C exceptions occur. Along the way, the patch removes some useless
failure checks for these functions.

The patch also removes the NS_IMETHOD from GetRestoredBounds and makes that
function MOZ_MUST_USE.
2016-08-19 09:03:04 +10:00
Jimmy Wang
6525e7ab81 Bug 1261299 - Add testing method GetSelectionAsPlaintext to DomWindowUtils which returns the text selection that was sent to the osx service menu nsChildView.mm. r=masayuki
MozReview-Commit-ID: JFzgyTmFDp2
2016-07-08 11:35:39 -04:00
Jonathan Chan
e201b93c16 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-16 18:37:48 -07:00
Gregory Szorc
3bcd02ebea Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE
2016-08-16 17:50:40 -07:00
Jonathan Chan
23ccd0531f Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-09 16:28:19 -07:00
Masayuki Nakano
40acbab2c1 Bug 1259665 part.3 Rename WidgetPointerEvent::isPrimary to mIsPrimary r=smaug
MozReview-Commit-ID: LfKzpwCjMcz
2016-08-03 17:34:53 +09:00
Masayuki Nakano
c5656a4a70 Bug 1259665 part.2 Rename WidgetPointerEvent::height to mHeight r=smaug
MozReview-Commit-ID: Ji4X53dByiH
2016-08-03 17:23:56 +09:00
Masayuki Nakano
17a5aa85fe Bug 1259665 part.1 Rename WidgetPointerEvent::width to mWidth r=smaug
MozReview-Commit-ID: 3V5gyOvPuQi
2016-08-03 17:18:04 +09:00
Stone Shih
127957f0ee Bug 1285128 - Should not generate pointer events for those synthesized events that are not dispatched to DOM. r=smaug 2016-07-07 15:28:11 +08:00
Nicolas Silva
3766bcc94a Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Matthew Gregan
f47ad8a984 Bug 1288980 - Add libcubeb backend to about:support. r=felipc 2016-07-26 10:50:14 +12:00
Jan Henning
07d07e8d9e Bug 1282902 - Part 3 - Let the MobileViewportManager recalculate the saved resolution if the display width changed before restoring. r=kats
The mobile session store saves the current document resolution in order to restore the previous zoom level when restoring a page. If the display width has changed since the session data was captured (e.g. because the device was rotated), the resolution might have to be scaled appropriately.
Currently, the session store does this scaling by itself by comparing the stored and current window widths, however this implementation is slightly simplified and doesn't cover all use cases, which means some pages can be restored at a wrong zoom level after rotation. To correctly cover all cases, the session store would have to compare viewport widths, too.

Because the MobileViewportManager doesn't wait for the session store to set the restore resolution, the latter has to call setRestoreResolution() as early as possible in order to guarantee that the restore resolution is set before the first paint of the document. Therefore the session store currently calls this after receiving a LocationChange notification. However at that time, the correct viewport for the current document is not yet available, which means the resolution cannot be recalculated by the session store at that point.

Therefore, this patch changes the approach taken and lets the MVM handle all resolution calculations instead. The session store now simply passes the stored previous display dimensions along with the previous document resolution to the MVM, which can then compare them to the current display and viewport widths and scale the resolution appropriately before using it during first paint.


MozReview-Commit-ID: IGxWw87yftK
2016-07-01 21:23:25 +02:00
Jan Henning
a20ae793e4 Bug 1282902 - Part 1 - Add a helper method for getting the content viewer size in device pixels. r=kats
The intention is for the session store to record the current window size and then pass it to the MobileViewportManager for restoring, so the latter can correctly scale the stored resolution if the display width has since changed. However currently all window dimensions available from the JS side are measured in CSS pixels rounded to integers. Transforming those values back into display pixels by multiplying them with "window.devicePixelRatio" (or accessing window.gScreenWidth/Height, which does the same thing internally) unfortunately introduces some rounding errors.

Therefore this patch introduces a new helper method in DOMWindowUtils which allows to access the content window width as measured in device pixels from the JS side, too.

MozReview-Commit-ID: FGNQlXhkgrU
2016-06-30 23:15:41 +02:00