Commit Graph

4720 Commits

Author SHA1 Message Date
Neil Deakin
38846a0f8f Bug 1358713, when a popup's anchor does not have a frame originally, don't have the popup update its position to follow it, r=tn 2017-05-05 11:13:56 -04:00
Emilio Cobos Álvarez
7760981e45 Bug 1361749: Initialize nsTextboxFrame::mAscent. r=mats
MozReview-Commit-ID: CcWhmLy1pbY
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:38 +02:00
Emilio Cobos Álvarez
13cbafea32 Bug 1361749: Initialize nsSliderFrame::{mDragStart,mThumbStart}. r=mats
MozReview-Commit-ID: 6YeKLkjYrCB
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:31 +02:00
Emilio Cobos Álvarez
2cf3a7138b Bug 1361749: Initialize nsScrollbarFrame::{mIncrement, mSmoothScroll}. r=mats
MozReview-Commit-ID: 8rgUPNr24gF
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:29 +02:00
Emilio Cobos Álvarez
4f7cb19d67 Bug 1361749: Initialize nsMenuPopupFrame::{mXPos, mYPos}. r=mats
MozReview-Commit-ID: 3T7ZzFPz0Wa
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:26 +02:00
Emilio Cobos Álvarez
66d00246ee Bug 1361517: Initialize nsBoxFrame::{mFlex,mAscent}. r=mats
MozReview-Commit-ID: H2U2NSswEP2
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:25 +02:00
Carsten "Tomcat" Book
2a74ba4261 Merge mozilla-central to autoland 2017-05-02 11:23:38 +02:00
Emilio Cobos Álvarez
23bce99ae1 Bug 1361051: rename mozilla::FrameType to mozilla::LayoutFrameType. r=xidorn
This avoids conflicts with mozilla::dom::FrameType.

MozReview-Commit-ID: 7aEMbHRaTFk

--HG--
extra : rebase_source : 2d01321f5ce0ec8c0e3f70984674f82678034b3c
2017-05-01 19:32:52 +02:00
Mats Palmgren
facb121186 Bug 1360867 - Make a few classes final to possibly devirtualize some calls. r=dholbert
MozReview-Commit-ID: EyBsvXbfJvK
2017-05-02 03:50:16 +02:00
Emilio Cobos Álvarez
e44543aad4 Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
MozReview-Commit-ID: 5Nzhyta5Hle

--HG--
extra : rebase_source : c2e9d4bfb9239f5e851d110cd7dff98c1e1a8d8b
2017-04-30 17:30:08 +02:00
Botond Ballo
66ed3e9795 Bug 1359211 - Handle touch-scrolling of XUL <listbox> in JS. r=bz,dao,kats
The APZ scrolling codepath doesn't do the right thing for <listbox>
without special handling, so have it scroll in JS instead, like we
did in bug 1302736 for <tree>.

MozReview-Commit-ID: LWJCBfhZ3Hc

--HG--
extra : rebase_source : bb8b2f7e713d35822a956e08f4e0eed0557b07b3
2017-04-24 17:12:21 -04:00
Shing Lyu
c46f5d5baf Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: 8LoQ9xNnDnj
2017-04-28 11:15:58 +08:00
Shing Lyu
435db45b79 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-28 11:15:50 +08:00
Masatoshi Kimura
a4c9e326d4 Bug 1358758 - Use CSSIntRect for nsIFrame::GetScreenRect. r=kats
MozReview-Commit-ID: KXPL1ERbFDa

--HG--
extra : rebase_source : 263b18d1736b09bb62d914f066481281966b288c
2017-04-25 07:33:13 +09:00
Mats Palmgren
ef94ae96c4 Bug 1359205 - Make XUL pseudo values nsICSSAnonBoxPseudo* instead of nsIAtom* and assert that IsTreePseudoElement() got a pseudo tag of the right type. r=bz
MozReview-Commit-ID: G2WFsNV4Fjz
2017-04-26 17:54:43 +02:00
Sebastian Hengst
ceff3b0678 Backed out changeset 1f9d0f8e65b9 (bug 1351548) 2017-04-26 13:13:05 +02:00
Sebastian Hengst
f46ebb0d94 Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Shing Lyu
96b400c04a Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Shing Lyu
dae014d9d5 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-26 18:21:43 +08:00
Carsten "Tomcat" Book
9155c12847 merge autoland to mozilla-central a=merge 2017-04-25 11:23:43 +02:00
Botond Ballo
9323d2bb93 Bug 1355374 - Use the AsyncDragMetrics to communicate the scroll thumb length to APZ. r=mstange
MozReview-Commit-ID: DJUKr4s9nWQ

--HG--
extra : rebase_source : d5f9a265098c343416fc933135b4f28a808cd49e
2017-04-21 13:57:11 -04:00
Botond Ballo
3c8b50b2af Bug 1355376 - Do not use async scrollbar dragging for scroll frames with custom scrollbar mediators. r=mstange
Supporting custom scrollbar mediators would require having custom logic in APZ
for each custom mediator. Since custom mediators are only used by legacy XUL
elements (<listbox> and <tree>) that isn't worth implementing.

MozReview-Commit-ID: KtCUvtiR1qn

--HG--
extra : rebase_source : dfd301da4d6877dd636c9719df46409db260d94c
2017-04-21 19:26:13 -04:00
Daniel Holbert
7513e3217b Bug 1358200: Initialize member vars in nsRootBoxFrame init list. r=mats
MozReview-Commit-ID: HqKksokYNrD
2017-04-22 12:07:03 -07:00
Marco Bonardo
444b7b3de9 Bug 1356440 - Favicons of bookmarks views don't update on visit. r=mrbkap,past,enndeakin
MozReview-Commit-ID: 8j5yLqr7MTc

--HG--
extra : rebase_source : 0da3b4bf0fca0462e22f76c1392f1d9e69f0e71c
extra : amend_source : d6c92db62af2b62671cf13f0b5385b2bc2c8b81e
2017-04-19 11:41:49 +02:00
Wes Kocher
514e230373 Merge inbound to central, a=merge 2017-04-13 17:24:01 -07:00
Neil Deakin
3a1b430f17 Bug 1334635, don't flush layout in the tree's CheckOverflow method if the scroll overflow hasn't changed, r=jaws, dholbert
The flush was added due to the overflow/underflow events causing recursion in some cases. But if the events aren't fired there is no point in doing this. The password manager test is changed to flush since it relies on showing/hiding tree columns but currently doesn't wait for a relayout before asking for cell information.
2017-04-13 08:21:23 -04:00
Mats Palmgren
6bd5854c02 Bug 1338108 - The result of adding any percentage factor to a size that is zero should also be zero. r=dholbert
MozReview-Commit-ID: ErkjtVZyFqV
2017-04-07 01:02:59 +02:00
KuoE0
4f17947f0f Bug 1348738 - (Part 4) Add a nsIDocument arg to nsRepeatService::Start to get the event target from it. r=dholbert
In the new architecture of Quantum DOM, all timer callback need a
specified event target. So, we add the new document arg to Start
function to get the event target from it. And update all callers.

MozReview-Commit-ID: a482mukqGc

--HG--
extra : rebase_source : 36f9d47a4afd7c7113adf3f274656b694b8d0943
2017-03-29 16:40:05 +08:00
KuoE0
5f42875bfd Bug 1348738 - (Part 3) Add a string-label arg to nsRepeatService::Start and upgrade to InitWithNamedFuncCallback from InitWithFuncCallback. r=dholbert
In the new architecture of Quantum DOM, all runnables need a name label.
So, we add the new string-label arg to Start function, and update all
callers.

MozReview-Commit-ID: G9LXFjtFcQv

--HG--
extra : rebase_source : a19b605013be56d01780c831d2a48ada8825b1c7
2017-03-29 16:32:52 +08:00
KuoE0
6187dc2f18 Bug 1348738 - (Part 2) Make nsRepeatService use InitWithFuncCallback instead of InitWithCallback. r=dholbert
This patch makes nsRepeatService stop inheriting from nsITimerCallback.
We needed that inheritance for InitWithCallback, but we do not need it
for InitWithFuncCallback.

This patch also makes nsRepeatService singly-owned instead of being
refcounted, since we're left with only a single owning pointer.

MozReview-Commit-ID: Fl8beVC8kGH

--HG--
extra : rebase_source : 3b6223c8e4754a90d2fef460940fda4510310f95
2017-03-29 15:54:49 +08:00
KuoE0
809fa786fe Bug 1348738 - (Part 1) Refactor nsRepeatService's InitWithCallback calls into a common helper function. r=dholbert
MozReview-Commit-ID: 2uJNeSsrjSW

--HG--
extra : rebase_source : ac74d89168336f2a611d81793ae157162a55f3dc
2017-03-29 15:40:04 +08:00
KuoE0
123b9045b8 Bug 1348738 - (Part 0) Convert nsRepeatService::gInstance to be a file-scoped StaticRefPtr. r=dholbert
MozReview-Commit-ID: KSLs2tEFf7m

--HG--
extra : rebase_source : 902d743ab118e9ff93a364fec13f78eb118e3c73
2017-03-29 11:48:56 +08:00
Neil Deakin
da85986703 Bug 1350192, when checking through the list of popups to hide when clicking outside the popup, don't include noautohide popups, r=ksteuber 2017-04-03 08:12:26 -04:00
Karl Tomlinson
b1abf64f1a bug 1349849 remove WidgetStateChanged() call from nsScrollbarFrame::MoveToNewPosition() r=mstange
This was added in
https://hg.mozilla.org/mozilla-central/rev/9eabf947efc3363a1bf79aa03c3053d184510846
for https://bugzilla.mozilla.org/show_bug.cgi?id=957445#c29 but the
|aShouldRepaint| out parameter is not handled, and the call has no side
effects.

WidgetStateChanged() in nsNativeThemeWin and nsNativeThemeCocoa do not request
repaint of the scrollbar nor otherwise handle curpos.

nsNativeThemeGTK::WidgetStateChanged() requests a repaint on some changes in
curpos only on scrollbar buttons.

MozReview-Commit-ID: 98iyhLMs7ja

--HG--
extra : rebase_source : 512e0d9e825975a33fadd51e7c69d1ea0fa1cbef
2017-03-23 14:44:08 +13:00
Dan Banner
cdf987089d Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8
MozReview-Commit-ID: K5TLF92pHq4

--HG--
extra : rebase_source : 295bf325a07fa8ec4c55a8babf5418588308dca6
2017-04-12 11:10:00 +01:00
Neil Deakin
d0f4db3889 Bug 1340413, check for anchor changes that affect popup positions and visibility whenever a popup is closed, r=tn 2017-03-29 06:32:00 -04:00
Ryan Hunt
56219a24fd Bug 1341101 part 4 - Specify a nsRenderingContext for nsCSSRendering::PaintStyleImageLayer r=mattwoodrow
MozReview-Commit-ID: 5TX6IXLSC8r

--HG--
extra : rebase_source : fef1d37208dc29f8df67388fe5c335a9c013daef
2017-03-15 00:25:09 -04:00
Wes Kocher
914dd4b76c Merge inbound to m-c a=merge 2017-03-28 13:30:56 -07:00
KuoE0
43466ccd23 Bug 1342874 - (Part 8) DocGroup labeling for timer callbacks in nsTreeSelection. r=dholbert
MozReview-Commit-ID: IkRIFfkVt9J

--HG--
extra : rebase_source : 3768b89d552a079099c8f3542b3eb3864f82346c
2017-03-20 16:13:24 +08:00
KuoE0
4f93bc7c4e Bug 1342874 - (Part 7) DocGroup labeling for timer callbacks in nsTreeBodyFrame. r=dholbert
MozReview-Commit-ID: L8IHAGDAC5Q

--HG--
extra : rebase_source : 9f07f7f4cdb1a7dedc2384fc3e0c9c10e6c990f4
2017-03-20 16:06:23 +08:00
KuoE0
8e1cebd674 Bug 1342874 - (Part 6) DocGroup labeling for timer callbacks in nsXULTooltipListener. r=dholbert
MozReview-Commit-ID: 2IqYPliDXnj

--HG--
extra : rebase_source : 82ff8c97379ae46391436623ed303f8ba4e72317
2017-03-20 15:59:02 +08:00
KuoE0
77f651c961 Bug 1342874 - (Part 5) DocGroup labeling for timer callbacks in nsXULPopupManager. r=dholbert
MozReview-Commit-ID: 6fkW4azzj8C

--HG--
extra : rebase_source : a84b5d7672c69bcac7eb4ff8eeea14111eadba49
2017-03-20 15:53:59 +08:00
KuoE0
812b8be7c1 Bug 1342874 - (Part 4) DocGroup labeling for timer callbacks in nsMenuFrame. r=dholbert
Note that we still use InitWithCallback() instead of upgrading to
InitWithNamedFuncCallback(). This is because they have different lifetime
implications for the callback arg that nsMenuFrame passes in, mTimerMediator.

So to label the callback with InitWithCallback(), we make nsMenuTimerMediator
inherit from nsINamed to provide the label via that API's GetName method.

MozReview-Commit-ID: 45c6kDF2xCJ

--HG--
extra : rebase_source : 82a50ae01c6d23b7c495cc1ded68a27001631cff
2017-03-20 15:07:31 +08:00
KuoE0
8282ac8b18 Bug 1342874 - (Part 3) DocGroup labeling for timer callbacks in nsListScrollSmoother. r=dholbert
MozReview-Commit-ID: 60inGY74Zwi

--HG--
extra : rebase_source : d9608a02a451b032c67b8f234838b5151701000c
2017-03-20 14:29:39 +08:00
KuoE0
ebd3dfdfa9 Bug 1342874 - (Part 2) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in nsXULPopupManager. r=dholbert
MozReview-Commit-ID: qr1VzwZwvA

--HG--
extra : rebase_source : 213e5a8efb85a851c6e8cb491ca8e088af4aaaa5
2017-03-16 18:09:44 +08:00
KuoE0
5d342ddbd7 Bug 1342874 - (Part 1) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in XUL frames. r=dholbert
MozReview-Commit-ID: JR28J1weiL4

--HG--
extra : rebase_source : 391a0c07371efe8014c11c6d30e09567d973477d
2017-03-16 18:09:13 +08:00
Daniel Holbert
378098fbfc Bug 1351217: Add missing includes to fix latent unified bustage in layout/xul. r=mats
MozReview-Commit-ID: WJoMxmGYnt

--HG--
extra : rebase_source : 9e975c3110fe7b25e76dc2366c52394f12a82a85
2017-03-28 00:46:22 -07:00
Jonathan Watt
da33662df5 Bug 1058040, part 18 - Minimize the cost of context paint when it is not available. r=dholbert
MozReview-Commit-ID: 5MVW37Vd1aK
2017-03-06 13:49:21 +00:00
Paul Bignier
e2808177ef Bug 1350703 - Typo fixes in code-comments within layout/XUL. r=dholbert
DONTBUILD because comment-only.
2017-03-26 18:37:10 +02:00
Cameron McCormack
9f3f895b0e Bug 1349134 - stylo: Style newly appended children of an element with a binding through their flattened tree parents. r=bholley
MozReview-Commit-ID: 3fQouTm2bw4

--HG--
extra : rebase_source : 599fe1e790c9fb352eb0e81f8f9b08e4012541f2
2017-03-24 14:27:22 +08:00