Commit Graph

866 Commits

Author SHA1 Message Date
Phil Ringnalda
b679ae2f4c Back out 0a88dee3b92b:dc5cc7d7b84d (bug 911889) for beaucoup unexpected assertions
--HG--
extra : rebase_source : a2a13633b6028c99a3c732dbbafe8c800bc32071
2013-10-28 23:38:02 -07:00
Robert O'Callahan
05b58a7e00 Bug 911889. Part 3: Create nsLayoutUtils::HasAnimations, and suppress opacity:0 optimizations whenever there's any opacity animation even if it's not using the compositor. r=dbaron
--HG--
extra : rebase_source : b3ffe185686e38226e0979060a74669271e1c2d5
2013-09-04 23:30:57 +12:00
Robert O'Callahan
c2cf6c85d0 Bug 911889. Part 2: Refactor MarkLayersActive code into its own class and be much more explicit about what it does. r=mattwoodrow
This also changes the functionality a little bit to track independent
per-property mutation counts and independent "content active" status.

--HG--
extra : rebase_source : e69b8e7a95d36720bd38d74f0789ede603e58a09
2013-09-04 23:30:57 +12:00
Robert O'Callahan
b1cfc7c217 Bug 928607. Ensure that nsGfxScrollFrameInner::UpdatePosition clips the overflow area of its children. r=tn
--HG--
extra : rebase_source : 2c8e33393cf73b6760cd26017c58a44d209b8e9b
2013-10-22 14:10:31 +02:00
Benoit Girard
c81b04a023 Backout 9861229c1b15 for test. CLOSED TREE 2013-10-26 01:07:08 +02:00
Benoit Girard
002d47b4b6 Bug 931082 - LayerActivityTracker shouldn't force invalidate. r=roc 2013-10-25 22:45:51 +02:00
Arnaud Bienner
2e3ec1b741 Bug 875275 part 1: Implement layout support for <input type="color">. r=dbaron,dholbert 2013-07-10 00:25:27 +02:00
Masayuki Nakano
ef895616c5 Bug 920425 part.28 Use mozilla::WidgetEvent::AsMouseEvent() r=smaug 2013-10-22 17:55:20 +09:00
Masayuki Nakano
4ea61a9177 Bug 920425 part.27 Use mozilla::WidgetEvent::AsInputEvent() r=smaug 2013-10-18 15:10:26 +09:00
Birunthan Mohanathas
b823b8896b Bug 784739 - Switch from NULL to nullptr in layout/; r=ehsan
--HG--
extra : rebase_source : 0d0d9e11be9d39e4457bddd0bac7e19a50b91b0b
2013-10-08 14:47:21 -04:00
Matt Woodrow
b7e2fb90c1 Bug 916034 - remove + character from a broken rebase. r=bustage 2013-10-02 22:35:19 +13:00
Matt Woodrow
870cf524d2 Bug 916034 - Use a similar surface rather than an image surface for the canvas background cache when using azure. r=ajones 2013-10-02 22:12:34 +13:00
Masayuki Nakano
b266c80d36 Bug 920377 part.32 Get rid of nsMouseEvent r=roc 2013-10-02 15:38:27 +09:00
Daniel Holbert
c28d8443d8 Bug 919865: Replace #ifdef DEBUG with DebugOnly<> in a few spots in layout/generic. r=mats 2013-10-01 22:02:23 -07:00
Masayuki Nakano
0823bd31f1 Bug 920377 part.31 Get rid of nsEvent r=roc 2013-10-02 12:46:04 +09:00
Masayuki Nakano
096a701901 Bug 920377 part.30 Get rid of nsGUIEvent r=roc 2013-10-02 12:46:03 +09:00
Matt Woodrow
32e8400892 Bug 921910 - Invalidate when we change the frame of an asynchronous ImageContainer that is part of a main-thread layer tree. r=roc 2013-10-02 16:05:49 +13:00
Ehsan Akhgari
27c999b3b4 Bug 921753 - Part 1: Avoid #including nsStyleStructInlines.h in nsIFrame.h; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1782 to 1582.
2013-10-01 17:00:38 -04:00
Masayuki Nakano
9c18a013ca Bug 920377 part.26 Get rid of nsInputEvent r=roc 2013-10-01 16:23:02 +09:00
Ehsan Akhgari
f720bbfbaa Bug 921876 - Stop #including nsIFrame.h in nsLayoutUtils.h; r=roc
This patch does the following:
* Move nsIFrame::IntrinsicSize to mozilla::IntrinsicSize so that it can
  be forward-declared.
* Move a number of templated inline nsLayoutUtils methods to nsIFrame.
* Use mozilla::layout::FrameChildListID instead of the
  nsIFrame::ChildListID typedef in nsLayoutUtils.h.
* Move nsReflowFrameRunnable to its only user, nsProgressMeterFrame.cpp.
* Make a number of functions requiring nsIFrame.h out-of-line.
* Remove the nsIFrame.h #include from nsLayoutUtils.h and add it to the
  places which require it implicitly.
2013-09-30 17:26:04 -04:00
Daniel Holbert
e76736b865 Bug 913759 part 1: Treat buttonContent frames as block wrappers, so percent heights inside a button can resolve against button's height (minus focus border/padding). r=bz 2013-09-28 10:24:00 -07:00
L. David Baron
31df6fcc33 Bug 828312 patch 9a: Make sticky positioning handle block-in-inline splits correctly. r=dholbert
This assumes that the specification for how position:sticky behaves for
block-in-inline splits matches the specification for position:relative,
in other words, matches
http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level .

It's also necessary for patch 9b since the new rule for handling of
style change hints is that a style change hint applies to all
continuations and all block-in-inline siblings ("special siblings").

The change in StickyScrollContainer::GetScrollRanges is really the fix
for bug 918994, but adjusted for the change here to use block-in-inline
siblings ("special siblings") in addition to continuations.
2013-09-25 12:28:08 -07:00
Daniel Holbert
11e5a68823 Bug 919813 part 2: Upgrade NS_ERROR to MOZ_ASSERT in nsFrame's impl of SetPrevInFlow, SetNextInFlow, SetPrevContinuation, SetNextContinuation. rs=mats 2013-09-25 10:54:56 -07:00
Daniel Holbert
cbd5c87eeb Bug 919813 part 1: Remove never-checked return value from frame methods SetPrevInFlow, SetNextInFlow, SetPrevContinuation, SetNextContinuation. r=mats 2013-09-25 10:54:55 -07:00
Birunthan Mohanathas
b1a40a17a2 Bug 919729 - Remove unnecessary MOZILLA_INTERNAL_API checks from nsIFrame.h. r=bz 2013-09-25 09:48:20 -04:00
Mats Palmgren
ae50ca5ce4 Bug 919318 - Drop the Get prefix on the frame methods GetFirstContinuation, GetLastContinuation, GetFirstInFlow, GetLastInFlow and also on nsLayoutUtils::GetLastContinuationWithChild, because they never return null. r=dholbert 2013-09-25 11:42:34 +00:00
Masayuki Nakano
ee772d1cbc Bug 912956 part.18 Remove nsGUIEvent.h r=roc 2013-09-25 20:21:22 +09:00
Masayuki Nakano
715f30b959 Bug 912956 part.14 mozilla/MouseEvents.h should be included directly r=roc 2013-09-25 20:21:18 +09:00
Daniel Holbert
e999460fd0 Bug 919871: Make .cpp files in layout/generic #include their corresponding .h file first. r=mats 2013-09-24 18:43:43 -07:00
Daniel Holbert
39c340ae62 (no bug) Replace two c-style casts in nsFrame.cpp with const_cast<>. (no review; trivial/non-functional) 2013-09-23 21:04:08 -07:00
Corey Ford
3fc43261c7 Bug 904197 - Use the union of continuations' rects in sticky positioning calculations. r=dholbert
Reftest inline-3.html fails because handling the sticky element's margin correctly will take more work; similarly, border/padding on containing-block continuations won't be handled quite right. Reftest column-contain-1a fails because some of the anonymous blocks inside an nsColumnSetFrame have 0 height.
2013-09-13 16:53:48 -07:00
Corey Ford
92841b7169 Bug 915475 - Don't sticky position frames with NS_FRAME_IS_NONDISPLAY. r=dholbert 2013-09-17 14:11:12 -07:00
L. David Baron
43f9903e53 Bug 911786 part 3: Add an assertion to check that part 2 only changes things for position:sticky. r=dholbert
I'm worried that part 2 was the cause of bug 916751.  If it was, I think
this assertion should catch the problem.  Even if it's not, I think it's
a good assertion to have.
2013-09-17 04:44:16 -07:00
Rik Cabanier
f7c9c54b27 Bug 902525 - Part 3: create a layer for content that stores the blend mode r=roc 2013-09-14 20:40:11 -07:00
Rik Cabanier
8c970079ca Bug 902525 - Part 2: Create layers for isolated groups when blending is involved r=roc 2013-09-14 20:30:00 -07:00
Corey Ford
9f2ee21577 Bug 897105 - Part 4: Build display items and layers for sticky positioned elements. r=roc 2013-09-12 18:56:57 -07:00
Corey Ford
17fd17cb8b Bug 911786 - Part 2: Reapply relative positioning when moving frames without reflowing them. r=dholbert 2013-09-11 11:51:42 -07:00
Corey Ford
25096b484a Bug 914891 - Bail gracefully on sticky positioning with no scroll container. r=dholbert 2013-09-11 16:30:56 -07:00
Scott Johnson
57ce07ef81 Bug 794693, part 2: Perform parent reflow state calculation at the box-block interface before setting up child reflow state to prevent crashing when a parent reflow state is assumed to be non-null. [r=dbaron] 2013-09-09 15:29:06 -05:00
Corey Ford
5db567cbb1 Bug 886646 - Part 6: Implement sticky positioning, calculated on reflow and scroll. r=dbaron, r=dholbert 2013-09-06 09:35:16 -04:00
Corey Ford
367d66a9a7 Bug 886646 - Part 5: Always build a stacking context for sticky positioned elements. r=dbaron 2013-09-06 09:35:16 -04:00
Robert O'Callahan
a67691ee12 Bug 911889. Part 1: Fix mutationUpdate mutation count for first as well as subsequent mutations. r=benwa 2013-09-04 16:43:33 +12:00
Ehsan Akhgari
9b11a89362 Bug 908778 - Don't #include nsRegion.h in nsIFrame.h; r=mats 2013-08-23 18:16:38 -04:00
Ehsan Akhgari
1b1e8f296f Bug 908778 - Don't #include gfxASurface.h in nsIFrame.h; r=mats 2013-08-23 18:16:16 -04:00
Ehsan Akhgari
2d782339fa Bug 908778 - Don't #include nsIContent.h in nsIFrame.h; r=mats 2013-08-23 18:15:45 -04:00
Ehsan Akhgari
2faab8bc9e Bug 908724 - Avoid #including nsPresContext.h in nsIScrollableFrame.h; r=mats
nsPresContext.h pulls in a large number of headers which should not
be needed in nsIScrollableFrame, if we just move ScrollbarStyles to
its own header
2013-08-23 16:20:07 -04:00
Robert O'Callahan
555d6e8e35 Bug 906199. Ensure that nsDisplayTransforms being bubbled up by preserve-3d have the correct clip applied. r=mattwoodrow
--HG--
extra : rebase_source : 565cbebb5a7db17949a34cd41c9f0018db781caf
2013-08-21 15:04:23 +12:00
Ehsan Akhgari
f56168072d Bug 907883 - Minimize #includes in layout/generic; r=roc
--HG--
extra : rebase_source : 5e87b764a12b05aff477c71547e2131be67ca93b
2013-08-22 14:32:52 -04:00
Phil Ringnalda
21991b1148 Back out 4dd5fb21e599 (bug 906199) for Android R2 orange
CLOSED TREE
2013-08-20 22:49:12 -07:00
Robert O'Callahan
98330c01bc Bug 906199. Ensure that nsDisplayTransforms being bubbled up by preserve-3d have the correct clip applied. r=mattwoodrow 2013-08-21 15:04:23 +12:00