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

18282 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe b9bff5b5e1 Bug 1415780 - Drop CollectDocuments in nsRefreshDriver.cpp. r=hiro
MozReview-Commit-ID: ETSPKpWDuI4

--HG--
extra : rebase_source : d535999aa9b68d816047f387993f366aeaf0aa45
2018-01-27 19:19:54 +09:00
Hiroyuki Ikezoe 175bc2d176 Bug 1415780 - Let AnimationEventDispatcher observe nsRefreshDriver. r=birtles
So that we can now ensure nsRefreshDriver ticks (i.e. nsRefreshDriver doesn't
stop its timer) for all queued events.
Before this patch, dispatching CSS animation/transition events relied on the
fact that DocumentTimeline observes nsRefreshDriver.  For this fact,
animationcancel or transitioncancel event did not dispatch properly in some
cases, i.e. the case where the animation was dropped from the DocumentTimeline.

MozReview-Commit-ID: 7JYro0MY2U2

--HG--
extra : rebase_source : 28c8e2a50d29c5344e2c5ca3c43af41f4692fa0f
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 7828b6be59 Bug 1415780 - Let nsPresContext have AnimationEventDispatcher. r=birtles
Now we sort CSS animation/transition events by scheduled event time prior
to compositor order.

SortEvents() will be a private method in the next patch in this patch
series.

MozReview-Commit-ID: ICkOayquN0f

--HG--
extra : rebase_source : 405c8232e93c54a073c722a4332873af02daa870
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 357f94c98c Bug 1415780 - Don't count all observers for nsRefreshDriver. r=smaug
We just need information whether there is still an observer or not in most
cases.  The only case we need to know the count is in an assertion in the
dtor of nsRefreshDriver.  In the dtor we are checking there remains no
observers other than early runners.

Note that the order in HasObserver() was adjusted to reflect that we check
boolean flag first (mViewManagerFlushIsPending) and subsequently check observer
which is likey happen to.  mFrameRequestCallbackDocs should have checked prior
to mResizeEventFlushObservers though.

MozReview-Commit-ID: E1qplusqw1Y

--HG--
extra : rebase_source : ebd9e6eb08952df954c55860638233c9a8729856
2018-01-27 21:17:26 +09:00
Emilio Cobos Álvarez f7d932d9fe Bug 1433591: Update the style of child anon box wrapper after owned anon boxes. r=bz
Since the former could inherit from the latter.

Test incoming in a followup.

MozReview-Commit-ID: LJjprcyjDyU
2018-01-28 05:11:07 +01:00
Brindusan Cristian 674c27a54e Merge inbound to mozilla-central. a=merge 2018-01-27 13:04:15 +02:00
ben.tian@gmail.com 0f573ba322 Bug 1413834 - part 4: Limit frame traversal inside scope owned by document root when shadow host has no frame , r=smaug, emilio
--HG--
extra : rebase_source : 1e7fb01bda9a0927b1bea3085ab50eb3caf054c5
2018-01-26 17:49:47 +02:00
ben.tian@gmail.com 8e8a01efb7 Bug 1413834 - part 1: Limit frame traversal and getting of next tabindex inside scope owned by document root, r=smaug
--HG--
extra : rebase_source : 6a9bca46f5e98311b0179b8b44bebe59bb77e676
2018-01-26 17:47:44 +02:00
Robert Longson 4e0dcdc8da Bug 1419764 - Improve performance where a transform is set by direct matrix manipulation. r=dholbert
MozReview-Commit-ID: zzDTSXtRiU
2018-01-26 10:21:34 -08:00
Hiroyuki Ikezoe 471558b3c1 Bug 1433336 - Collect only documents which are observerd by IntersectionObserver in nsRefreshDriver::Tick(). r=smaug
We don't need to collect whole descendants documents.

This patch intentionally leaves animation events handling which is another
caller of CollectDocuments in nsRefreshDriver since the animation part will
be fixed in a different way in bug 1415780.

MozReview-Commit-ID: INAJm1NHLuI

--HG--
extra : rebase_source : 4e255cef604d4455d6efa5dc2ebddd5dc649ee65
2018-01-26 20:11:17 +09:00
Timothy Nikkel f1bc1aa42e Bug 1417358. Make sure that the override dirty rect that we set when a displayport changes gets cleared even if we don't perform a partial display list update. r=mattwoodrow
We do this by tracking them as a property on the root frame the same way we do for modified frames.

We also set the property in ProcessFrame but that is okay because we are guaranteed to finish the partial update at that point.
2018-01-25 23:42:44 -06:00
Emilio Cobos Álvarez 411705ebde Bug 1433056: Account for pres shell destruction. r=smaug
The underlying issue here is that the pres shell was already being torn down
when we flush.

The less risky change here is to just change the assertions instead of
IsSafeToFlush too, but the !isSafeToFlush || mViewManager assertion was also
firing already, because we null out the view manager from Destroy.

So this change is effectively idempotent behavior-wise (we tighten a bit the
view manager assertion, but that should be fine).

Just let me know if you want me to just loosen the assertions, but I think the
IsSafeToFlush change is nicer too.

MozReview-Commit-ID: 240qLlLi7RE

--HG--
extra : rebase_source : df5dacb849a93e62f90e278c0d99f1034b341b79
2018-01-25 15:56:47 +01:00
Henri Sivonen 5b05e804a9 Bug 1431025 - Use encoding_rs::mem::is_utf16_bidi() as the implementation of HasRTLChars(). r=jfkthame
MozReview-Commit-ID: KnaI7wIndVf

--HG--
extra : rebase_source : 6a00c8fc140c1cf070e8fa668e7e099f98621820
2018-01-18 14:28:15 +02:00
Csoregi Natalia f9dc75cd65 Backed out changeset 640595d09e90 (bug 1419764) for reftest failures. a=backout 2018-01-25 12:23:02 +02:00
Narcis Beleuzu 9279994eae Merge inbound to mozilla-central. a=merge 2018-01-24 23:56:14 +02:00
Brian Grinstead 0cdec62954 Bug 1420229 - Create a new components.css file and load it as a UA stylesheet;r=bz,Gijs
This provides a place for current XBL stylesheets to be loaded without using XBL <resources>,
that load as a UA sheet instead of loading them as document sheets. This makes the styles
apply more similarly to XBL, in that they are less specific than document styles.

MozReview-Commit-ID: 3ewomJZMbrk

--HG--
extra : rebase_source : 8d8d837872947daa8f601e7d32de118655dabdde
2017-11-30 12:39:28 -08:00
Emilio Cobos Álvarez cd8167d8de Bug 1431474: Try to assert nice things about what's going on on our flushes. r=bz
This is green on try... Let's see on the wild.

MozReview-Commit-ID: C9Gam0s42pO
2018-01-24 10:35:13 +01:00
Emilio Cobos Álvarez a8ea649ff5 Bug 1431474: Make AccessibleCaretManager flush notifications through the document. r=bz
We're crashing because we're trying to flush layout of a shell whose document is
in the bfcache, so when we try to get the shell from the document in the style
set we get null back.

This shouldn't generally happen, and all flushes should go through the document
instead to avoid bugs like this and also other bugs related to subdocuments, and
all the stuff that nsIDocument::FlushPendingNotifications handles but the
presshell version doesn't. That's bug 1431852.

MozReview-Commit-ID: 1IJ4DBa3DCO
2018-01-24 10:32:53 +01:00
Andrea Marchesini b8bb98af8c Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb 2018-01-23 14:30:18 +01:00
Robert Longson d339da0191 Bug 1419764 - Improve performance where a transform is set by direct matrix manipulation. r=dholbert 2018-01-24 07:07:02 +00:00
Emilio Cobos Álvarez af5c08c014 Bug 1409672: Handle document state changes using the invalidation machinery. r=xidorn
MozReview-Commit-ID: EoSMrYPS7dl
2018-01-22 17:57:05 +01:00
Hiroyuki Ikezoe de78e9b503 Bug 1432061 - Let nsTransformManager participate in cycle-collection. r=birtles
MozReview-Commit-ID: GVmu6vxMPDm

--HG--
extra : rebase_source : 3856e0a6130871c76dc32b3d90a98b54b1d4d84c
2018-01-22 06:21:08 +09:00
Noemi Erli 1e1fdc2b3d Merge inbound to mozilla-central. a=merge 2018-01-19 12:10:24 +02:00
Jonathan Watt b7e7d82901 Bug 1430619 part 2 - Move nsIContentViewerContainer::setIsPrinting to nsIDocShell. r=smaug
MozReview-Commit-ID: LJrZbDAilnW
2018-01-11 12:05:37 +00:00
Andreea Pavel 353c1b48e7 Backed out 2 changesets (bug 1428993) for failing reftest ayout/reftests/display-list/1428993-1.html on Android
Backed out changeset 080c07796f4c (bug 1428993)
Backed out changeset 7f88ebf8d0d1 (bug 1428993)

--HG--
extra : rebase_source : dd7c442728f6086af7c0de714e21090700709d67
2018-01-18 21:03:23 +02:00
Miko Mynttinen c6350c2dd1 Bug 1428993 - Part 2: Override dirty rect for stacking contexts between OOF frame placeholder and the containing block r=mattwoodrow
MozReview-Commit-ID: FoX9uyoiqj4

--HG--
extra : rebase_source : 64baafadcb35509e08f8db30b2153eb16c41c369
2018-01-12 18:02:14 +01:00
Miko Mynttinen 10a44a7717 Bug 1428993 - Part 2: Override dirty rect for stacking contexts between OOF frame placeholder and the containing block r=mattwoodrow
MozReview-Commit-ID: FoX9uyoiqj4

--HG--
extra : rebase_source : 08d1aad9ec618bfccf95ba4983cb57aaaeb82070
2018-01-12 18:02:14 +01:00
Emilio Cobos Álvarez 927ea89c0d Bug 1426649: Remove nsCSSFrameConstructor updates. r=mats
They used to do quote updates and such but they where moved long ago, and do
nothing now.

MozReview-Commit-ID: 188vzGctbty

--HG--
extra : rebase_source : dd638875f9ef9ceb2343df5f8677a23d820c7a36
2017-12-21 19:34:48 +01:00
Emilio Cobos Álvarez 1273bba03f Bug 1426649: Stop tracking DOM changes from painting. r=dbaron
I'm pretty sure this is not a problem now, since we don't mutate the DOM from
painting, and we don't have legacy extensions anymore.

Just to confirm, I did a try run with a RELEASE_ASSERT(!CheckDOMModified()), and
it passed.

MozReview-Commit-ID: HTekD8tsz9v

--HG--
extra : rebase_source : 3ae51ff73b921fd720bd09ae9e294f2d85c71644
2017-12-21 14:09:32 +01:00
Emilio Cobos Álvarez e06ff3dbe2 Backout changeset b54c60961def (Bug 1409672) for failing one OSX reftest on a CLOSED TREE. r=backout
MozReview-Commit-ID: 6ZHlFBpMOUo
2018-01-17 23:09:38 +01:00
Emilio Cobos Álvarez e191632bd8 Bug 1409672: Hook in the invalidator stuff. r=xidorn
MozReview-Commit-ID: EoSMrYPS7dl
2018-01-17 21:51:53 +01:00
Emilio Cobos Álvarez 141792488a Bug 1430608: Make nsMediaFeatures work with a document, not a pres context. r=heycam
Returning a zero-sized viewport in the case there's no shell / pres context.

For now, no other change yet. After this we can start tweaking the ShadowRoot
Stylist setup, and even try to return computed styles without a document \o/.

MozReview-Commit-ID: 3cT2PKQISri
2018-01-17 21:51:47 +01:00
Emilio Cobos Álvarez 480dcc7f05 Bug 1428491: Remove redundant mBindingManager member in ServoStyleSet. r=heycam
MozReview-Commit-ID: KMiivgik0fr
2018-01-17 19:12:45 +01:00
Emilio Cobos Álvarez 271544691d Bug 1430844: Add assertions that would've caught this. r=bz
MozReview-Commit-ID: 1UfhIRn2We2
2018-01-17 19:12:34 +01:00
Emilio Cobos Álvarez cd4b889709 Bug 1430844: Make resize reflow sound re. viewport units. r=bz
In particular, we set the pres context visible area _before_ processing
restyles.

This causes inconsistencies when resolving viewport units. In particular, the
resulting style tree will have some units resolved in terms of the old size, and
some in terms of the new size, depending on whatever is dirty, because we don't
flush the pending media query changes.

Also, some sizes are resolved against the unconstrained size because of the
shrink-to-fit stuff. Fix this by flushing _before_ in this case, instead of
after, since we're going to set the size to an actual value later when reflowing
the root frame.

MozReview-Commit-ID: ExI5yTJCjGp
2018-01-17 19:12:25 +01:00
Tim Huang 98af9c6f96 Bug 1222285 - Part 2: Making the keyboard events of modifier keys been suppressed when 'privacy.resistFingerprinting' is true. r=arthuredelstein,masayuki
This patch makes 'Shift', 'Alt', 'Contorl' and 'AltGraph' been suppressed for content
when fingerprinting resistance is enabled. Chrome can still get these events.

The reason behind this is that websites can still observe key combinations to
tell which keyboard layout is using even we spoof the keyboardEvent.code,
keyboardEvent.keyCode and modifier states. For example, the AZERTY France
keyboard, the digit keys of it requires the user press the Shift key. So, it is
easy to differentiate AZERTY and QWERTY keyboard by observing whether a Shift key
generates its own before the digit keys. There are similar issues for 'Alt' and
'AltGraph' as well.

MozReview-Commit-ID: 3CwCgvey4lK

--HG--
extra : rebase_source : 225a34ab188f6cca288a6c0e9874261df7db629f
2017-08-31 11:14:14 +08:00
Cosmin Sabou 1f9b4f0f06 Merge inbound to mozilla-central. a=merge 2018-01-17 11:46:53 +02:00
Jonathan Watt 706256a2cc Bug 1430687 - Move the mDestroyBlockedCount early return in nsDocumentViewer::Destroy to the top. r=bobowen
MozReview-Commit-ID: Exe0hIFHK8z
2018-01-09 12:47:20 +00:00
Jonathan Watt d75df097a4 Bug 1430686 - Rename the document viewer "DestroyRefCount" member and methods. r=bobowen
MozReview-Commit-ID: KGUJXOKEQjV
2018-01-08 16:59:31 +00:00
Jonathan Watt a9cf608630 Bug 1430689 - Make ReturnToGalleyPresentation non-virtual. r=bobowen
MozReview-Commit-ID: J3dZuZfDXFd
2018-01-05 12:47:20 +00:00
Andreea Pavel c98c2f7291 Backed out 2 changesets (bug 1428491) for failing browser chrome mochitest at /builds/worker/workspace/build/src/layout/style/ServoStyleSet.cpp:941 on a CLOSED TREE
Backed out changeset 308e79e6c98f (bug 1428491)
Backed out changeset dbfd798e491b (bug 1428491)
2018-01-16 14:26:41 +02:00
Emilio Cobos Álvarez 4ce67178eb Bug 1428491: Remove redundant mBindingManager member in ServoStyleSet. r=heycam
MozReview-Commit-ID: KMiivgik0fr

--HG--
extra : rebase_source : 9cb1181c2b3c1fd5274af3d53042fa3a0966ad10
2018-01-05 20:17:26 +01:00
Emilio Cobos Álvarez 124c284658 Bug 1429961: Crashtest. r=me
MozReview-Commit-ID: 79OJm4Ay1lf
2018-01-16 11:03:40 +01:00
KuoE0 4bd2b6bbf0 Bug 1428297 - (Part 2) Ignore the widget/view usage that is used to show the dropdown menu when content-select is enabled. r=mats
MozReview-Commit-ID: 68HYWmniXwt

--HG--
extra : rebase_source : 4163e1ca016c818acc24ff27121c7e54b45e0aa8
2018-01-08 11:43:51 +08:00
KuoE0 ddd7e128f7 Bug 1428297 - (Part 1) Add an nsLayoutUtils function to check whether content-select is enabled r=mats
MozReview-Commit-ID: KVQ25Dhl9xl

--HG--
extra : rebase_source : 3f3186a7c73ff59f46566a5636d66d0684e3f0f4
2018-01-11 10:37:41 +08:00
Makoto Kato 12f318b242 Bug 1415416 - Part 2. Add test. r=masayuki
MozReview-Commit-ID: 5Bbh5ifPSs7

--HG--
extra : rebase_source : 07cabbc6f2ed00018c4b6a3ce8eebe121cb7998f
2018-01-11 18:39:40 +09:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Daniel Holbert df50292ee2 Bug 1430297: Use AddRef() instead of NS_ADDREF (when keeping generated content alive in nsCSSFrameConstructor). r=mats
MozReview-Commit-ID: ECz1SCYO4ia

--HG--
extra : rebase_source : 87ce08ef34758d4e8ad2463e94a1b62d94f22fe8
2018-01-12 15:33:01 -08:00
Emilio Cobos Álvarez b12fb5d990 Bug 1429088: Crashtest. r=bz
MozReview-Commit-ID: qJQdpdUROs
2018-01-12 11:26:56 +01:00
Bob Owen 0521695fbd Bug 1426087: Decrement nsDocumentViewer::mDestroyRefCount in a separate function. r=jwatt 2018-01-12 10:17:36 +00:00