Ehsan Akhgari
bf39be2f45
Backout 190fc7cd65c6 (bug 747274) for breaking Android R1; a=bustage
2012-04-23 19:06:10 -04:00
George Wright
97e5839e99
Bug 747274 - Add a pref (default to true on Android) to forcibly use nearest pixel filtering for background drawing. r=jrmuizel,ajuma a=blassey
2012-04-23 11:50:29 -04:00
Ali Juma
ee7a3a3249
Bug 733941 - Let callers of imgIContainer::draw choose to clamp instead of tile. r=roc a=blocking-fennec
2012-04-17 18:04:15 -04:00
L. David Baron
c1ad19f6be
Use the font inflation data to disable font inflation for small pieces of text. (Bug 706193, patch 4) r=roc
...
This merely hooks up the computation done in the previous patches for
this bug to the decision on whether to do font size inflation.
2012-04-16 15:32:12 -07:00
L. David Baron
fccc8b20a7
Add a preference for the threshold at which we have enough text within a BFC to use font size inflation. (Bug 706193, patch 1) r=roc
...
The basic principle behind this preference is that we don't want to use
font size inflation when all the text that we would have inflated would
fit within a line or two. We're better off preserving the layout than
inflating a small amount of text. However, we don't want the inflation
decision to vary between adjacent paragraphs, so this decision needs to
be made once for each block formatting context.
Once the later patches for this bug cause this preference to be honored,
this will be a change in behavior. The old behavior can be obtained by
setting the preference to 0.
2012-04-16 15:32:11 -07:00
Mounir Lamouri
e980c7d0bd
Bug 745495 - Fix crash when using screen object from removed iframe. r=smaug
2012-04-16 11:33:35 +02:00
Scott Johnson
32cca91967
Bug 708175: Disable font inflation for fixed-width or fixed-height input controls. [r=dbaron]
...
--HG--
rename : layout/reftests/font-inflation/input-text-1-ref.html => layout/reftests/font-inflation/input-text-1-height-ref.html
rename : layout/reftests/font-inflation/input-text-1.html => layout/reftests/font-inflation/input-text-1-height.html
rename : layout/reftests/font-inflation/input-text-1-ref.html => layout/reftests/font-inflation/input-text-1-noheight-ref.html
rename : layout/reftests/font-inflation/input-text-1.html => layout/reftests/font-inflation/input-text-1-noheight.html
rename : layout/reftests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-height-ref.html
rename : layout/reftests/font-inflation/input-text-2.html => layout/reftests/font-inflation/input-text-2-height.html
rename : layout/reftests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-noheight-ref.html
rename : layout/reftests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-noheight.html
rename : layout/reftests/font-inflation/input-text-3-ref.html => layout/reftests/font-inflation/input-text-3-height-ref.html
rename : layout/reftests/font-inflation/input-text-3.html => layout/reftests/font-inflation/input-text-3-height.html
rename : layout/reftests/font-inflation/input-text-3-ref.html => layout/reftests/font-inflation/input-text-3-noheight-ref.html
rename : layout/reftests/font-inflation/input-text-3.html => layout/reftests/font-inflation/input-text-3-noheight.html
2012-04-13 02:21:39 -05:00
Matt Brubeck
a900917304
Back out 6d41ddb6b9bc (bug 708175) because of Android test failures
2012-04-11 20:08:54 -07:00
Scott Johnson
de8896f75e
Bug 708175: Disable font inflation for fixed-width or fixed-height input controls. [r=dbaron]
...
--HG--
rename : layout/reftests/font-inflation/input-text-1-ref.html => layout/reftests/font-inflation/input-text-1-height-ref.html
rename : layout/reftests/font-inflation/input-text-1.html => layout/reftests/font-inflation/input-text-1-height.html
rename : layout/reftests/font-inflation/input-text-1-ref.html => layout/reftests/font-inflation/input-text-1-noheight-ref.html
rename : layout/reftests/font-inflation/input-text-1.html => layout/reftests/font-inflation/input-text-1-noheight.html
rename : layout/reftests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-height-ref.html
rename : layout/reftests/font-inflation/input-text-2.html => layout/reftests/font-inflation/input-text-2-height.html
rename : layout/reftests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-noheight-ref.html
rename : layout/reftests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-noheight.html
rename : layout/reftests/font-inflation/input-text-3-ref.html => layout/reftests/font-inflation/input-text-3-height-ref.html
rename : layout/reftests/font-inflation/input-text-3.html => layout/reftests/font-inflation/input-text-3-height.html
rename : layout/reftests/font-inflation/input-text-3-ref.html => layout/reftests/font-inflation/input-text-3-noheight-ref.html
rename : layout/reftests/font-inflation/input-text-3.html => layout/reftests/font-inflation/input-text-3-noheight.html
2012-04-11 18:12:19 -05:00
Robert O'Callahan
d0dd680745
Bug 733607. Restructure logic to compute snapped bounds of display items in layer coordinates. Moves responsibility for computing snapped bounds from within the display items to callers of GetBounds/GetOpaqueRegion. r=tnikkel
...
Previously we snapped the results of nsDisplayItem::GetBounds and
nsDisplayItem::GetOpaqueRegion internally. By tracking which display items were
inside transforms, we disabled snapping quite conservatively whenever an ancestor
had a transform, which is undesirable.
With this patch, we don't snap inside GetBounds or GetOpaqueRegion, but just return
a boolean flag indicating whether the item will draw with snapping or not. This flag
is conservative so that "true" means we will snap (if the graphics context has a transform
that allows snapping), but "false" means we might or might not snap (so it's always safe
to return false).
FrameLayerBuilder takes over responsibility for snapping item bounds. When it converts
display item bounds to layer pixel coordinates, it checks the snap flag returned from
the display item and checks whether the transform when we draw into the layer will be
a known scale (the ContainerParameters scale factors) plus integer translation. If both
are true, we snap the item bounds when converting to layer pixel coordinates. With
this approach, we can snap item bounds even when the items have ancestors with active
transforms.
2012-04-10 23:24:18 +12:00
Wes Johnston
2ba46f571f
Backed out changeset f5d6cc2e4726
2012-04-09 10:44:32 -07:00
Wes Johnston
e196e635a6
Bug 740218 - Support transactions in sqlitebridge and use them. r=gcp,rnewman,lucasr
2012-04-09 10:08:37 -07:00
Chris Lord
dad1744a74
Bug 739604 - Split out dumping of paint buffers from paint lists. r=mattwoodrow
...
Split dumping of paint buffers into a separate environment variable, vs.
dumping of paint buffers to allow for dumping only of paint lists.
2012-03-28 19:10:28 +01:00
Jeff Gilbert
0c50aa229e
Bug 696569 - Allow for non-premultiplied data for canvases - r=bjacob,joedrew
2012-03-23 15:10:50 -07:00
Jonathan Watt
ce86671d1b
Bug 736890 - Speed up building of layout/svg/base/src by cleaning up #include directives in its header files. r=dholbert.
2012-03-20 12:15:55 +00:00
Wes Johnston
73b1812482
Bug 722965 - Remove MOZ_TOUCH ifdefs. r=smaug
2012-03-19 14:34:34 -07:00
Mounir Lamouri
573bc8fb91
Bug 720799 - Don't use mDocShell in nsScreen. r=jst,jlebar
2012-03-14 19:14:53 +01:00
Mark Finkle
c5c1e891ea
Backout 7e28d1a2c648, 330b210f503d, 2421d39e0ab3, aa978ffa44bc, 38a71ae7e06d, b94319584a7a, 7e8278f5e814, 0b4e3c7608ab, 329c07609ca8, 0d61a0d8dba4, Due to Ts regression on Android
2012-03-17 21:51:39 -04:00
Mounir Lamouri
52ab7f4c5b
Bug 720799 - Don't use mDocShell in nsScreen. r=jst,jlebar
2012-03-14 19:14:53 +01:00
Boris Zbarsky
cc7f7d488e
Bug 696301 part 1. Refactor CORS attribute handling a bit. r=sicking
2012-03-10 10:13:51 -06:00
Timothy Nikkel
ba1ac6d353
Bug 664707. Followup. Use the right point for touch events. r=matspal
2012-03-06 09:58:36 -06:00
Timothy Nikkel
ff961d36b5
Bug 664707. Special case converting event coordinates when the frame is the root frame in the widget. r=matspal
...
This has the side benefit of making events work in transformed select dropdown popups and is the real reason for making the change.
2012-03-03 15:24:13 -06:00
Scott Johnson
f5f3585ff0
Bug 705446: Disable font inflation for preformatted text. [r=dbaron]
2012-03-02 11:25:33 -06:00
Nathan Froyd
72e8d1d540
Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu
2012-02-29 10:57:47 -05:00
Matt Woodrow
bf3005c3f4
Bug 700240 - Print display lists to a file. r=roc,bjacob
2012-03-01 21:26:09 +13:00
Aryeh Gregor
fb8461f380
Bug 725426 - Incorrect getBoundingClientRect() for transform-style: flat. r=roc
2012-02-08 14:36:16 -05:00
Ed Morley
7307ed3da9
Backout 1ca8d5a931ac (bug 720799), e4781b684008 (bug 720795), 8a4e12d93a23 & 1fc8123a2ea4 (bug 720794) for bustage
2012-02-09 16:42:07 +00:00
Mounir Lamouri
62a283786d
Bug 720799 - Don't use mDocShell in nsScreen. r=jst
2012-02-06 16:31:16 +01:00
Ed Morley
08ace01a8b
Backout 79121553f728 (bug 720799), 4a763183482f (bug 720795), e965486f4b50 & 4a7c7c6b9b11 (bug 720794) for failing to build on any platform
2012-02-09 12:06:50 +00:00
Mounir Lamouri
c8c04772bd
Bug 720799 - Don't use mDocShell in nsScreen. r=jst
2012-02-06 16:31:16 +01:00
Scott Johnson
f1c74e3e8a
Bug 706198 - Disable font inflation on sites optimized for mobile to avoid strangely inflated text. [r=mbrubeck,dbaron]
...
--HG--
extra : rebase_source : 60d764b0a76ae87515a3e669ba76adc61926c862
2012-01-30 16:52:11 -06:00
Jon Buckley
53fcaffe40
Bug 682299 - Implement CORS support for the <video> tag. r=roc
2012-01-25 17:31:30 -05:00
L. David Baron
5eb8920348
Switch nsLayoutUtils inflation methods to the new setup with state on the pres context. (Bug 706609, patch 5) r=roc
...
This is the third of three patches to rework the way we handle getting
the font inflation container and width data during reflow, which are
needed so that we can sometimes honor inflation during intrinsic width
calculation (which we need to do to make some form controls inflate
correctly).
2012-01-24 17:21:29 -08:00
L. David Baron
185e4fa106
Set inflation container to null during parts of intrinsic sizing that should not have inflation applied. (Bug 706609, patch 4) r=roc
...
This is the first of two patches to honor inflation during intrinsic
width calculation (which we need to do to make some form controls
inflate correctly).
2012-01-24 17:21:29 -08:00
L. David Baron
06fe8e9788
Add a frame state bit for whether a frame is a container for font size inflation (Bug 706609, patch 1) r=roc
...
This moves the logic currently in
nsLayoutUtils::IsContainerForFontSizeInflation into frame initialization
so that we can (later, for bug 706193) make that logic more complicated.
2012-01-24 17:21:28 -08:00
Jonathan Watt
cb807222d1
Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron.
2012-01-24 13:09:55 +00:00
Matt Woodrow
8147ee2909
Bug 718809 - Use TransformBounds in TransformGfxRectToAncestor. r=roc
2012-01-23 14:07:37 +13:00
Jeff Muizelaar
9c9e2eed37
Bug 718440. Add more sampler labels to various places. r=bgirard
...
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
James Willcox
f2a22733cd
Bug 707439 - Fix Flash plugin positioning
...
--HG--
extra : rebase_source : aaa41297d293ffde1aabe5632ade6c416b4d541f
2012-01-18 10:41:35 -05:00
Wes Johnston
43680b21b4
Bug 603008 - Platform support for multitouch events. r=smaug
...
* * *
Bug 603008 - Platform support for multitouch events.
* * *
ifdefandroid
2011-12-16 16:24:11 -08:00
Mats Palmgren
9d52d983fd
Bug 524925 - Consolidate overflow clipping checks to nsFrame::ApplyOverflowClipping(); and fix some code style nits. part=5/6 r=roc
2012-01-18 21:04:51 +01:00
Benjamin Stover
0a52de4032
Bug 524925 - Recompute overflow without reflowing for transforms. part=1/6 r=dbaron
...
Add an extra change hint, UpdateOverflow, that can be used to specify that
a frame's overflow areas may have changed and that they need to be recalculated.
When a transform on a frame changes, instead of marking it for reflow, set this
hint instead.
There is an added virtual function on nsIFrame, UpdateOverflow, which is called
recursively on a frame when the corresponding hint is set, to allow it to
update its overflow areas.
2011-06-15 14:03:49 -07:00
Matt Brubeck
2e1e2ae3c5
Back out 88733ce1bef3 (bug 718440) because of Windows build failure
2012-01-17 15:15:47 -08:00
Jeff Muizelaar
581f54f157
Bug 718440. Add more sampler labels to various places. r=bgirard
...
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Mats Palmgren
cfe108300e
Bug 665597 - Do not include margins in scrollable overflow for popup frames. part=3/5 r=roc
2012-01-17 00:38:10 +01:00
Robert O'Callahan
df7702a586
Bug 591718. Make nsLayoutUtils::GetAllInFlowRectsUnion support taking transforms into account when converting coordinates. r=mats
2011-12-28 16:24:29 +13:00
Robert O'Callahan
0fb0f8bbd4
Bug 591718. Part 1: rename some poorly-named methods, rework global-transform methods to avoid computing bounding-boxes more than once when there are are multiple transformed ancestors, make sure nsIFrame::GetTransformMatrix can stop at any desired ancestor. r=mats
2011-12-28 16:24:18 +13:00
L. David Baron
35456e0260
Fix font size inflation assertion when XUL is in native-anonymous content by making XUL always be a container for font size inflation. (Bug 708036) r=bzbarsky
...
--HG--
extra : transplant_source : %D9X%D4%25%01p%09%97%15%B6%83%B1%3A%F2H%C0P4.%19
2011-12-27 10:02:44 -05:00
Phil Ringnalda
bd7a9e74d3
Back out dc7c7734ec7c, f793f9cfa72c, 10ea92a6a850 (bug 591718) for Android b-c orange in mobile/chrome/tests/browser_scrollbar.js
2011-12-27 20:34:08 -08:00
Robert O'Callahan
1e7399c035
Bug 591718. Make nsLayoutUtils::GetAllInFlowRectsUnion support taking transforms into account when converting coordinates. r=mats
2011-12-28 16:24:29 +13:00