Commit Graph

13831 Commits

Author SHA1 Message Date
Josh Matthews
d8f37388bd Bug 1135812 - Make picture element react to viewport changes. r=dbaron,johns 2015-05-11 18:07:49 -04:00
Eric Rahm
42c69a4135 Bug 1162673 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
Check that logging is enabled before performing potentially expensive
operations.
2015-05-11 13:53:21 -07:00
Eric Rahm
e1ce2b6323 Bug 1162673 - Part 1: Remove instances of #ifdef PR_LOGGING in layout. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-11 13:53:18 -07:00
Jonathan Kew
0b6c2066f3 Bug 1159305 - patch 2 - Clean up layout code by using the new accessors. r=smontagu 2015-05-11 11:37:46 +01:00
Jonathan Kew
2eb879c3ac Bug 1159729 - Use the adjusted |offset| value in GetTextDecorationRectInternal, instead of ignoring it. r=smontagu 2015-05-11 11:32:55 +01:00
Cameron McCormack
167b35116f Bug 1154150 - Only create a FontFaceSet if we find @font-face rules. r=jdaggett 2015-05-09 14:47:09 +10:00
Cameron McCormack
184c096a54 Bug 1154148 - Create a FontFaceSet's UserFontSet eagerly. r=jdaggett 2015-05-09 14:46:49 +10:00
Ehsan Akhgari
5c6c077a96 Bug 1162823 - Do not treat non-Latin words as misspelled; r=ekanan
--HG--
rename : layout/base/tests/bug646382-1.html => editor/reftests/spellcheck-non-latin-arabic-ref.html
2015-05-08 22:45:16 -04:00
Olli Pettay
bf115e16cf Backout Bug 1149555 because of tresize regression, a=backout
--HG--
extra : rebase_source : dba4dca78f80ac6971ef03d519abbd8fe6919ace
2015-05-08 20:12:41 +03:00
L. David Baron
050fe71475 Bug 1161049 patch 3 - Don't send animations to a layer if we're not using off-main-thread compositing. r=mstange
This refixes bug 947753 in a way that leads to fewer complications,
since we don't need to predict what kind of layer manager an element's
layer will have before the layer is actually created.  It has the
disadvantage that
AnimationPlayerCollection::CanPerformOnCompositorThread isn't really
telling the truth in cases where we won't have an layer that does
off-main-thread compositing.  This means that we will force the creation
of a layer to receive the animations (which might actually be good),
although it may have some disadvantages.

It also means that the additional (unlanded) patch in bug 947753 still
isn't needed, since we never set the animation generation on the layer,
so we will never try to throttle (suppress main thread execution) of
animations.
2015-05-08 15:56:37 +02:00
Kartikaya Gupta
e237a366e0 Bug 1160566 - Make FrameMetrics.mCompositionBounds private and add a getter/setter for it. r=botond 2015-05-07 14:44:03 -04:00
Kartikaya Gupta
1b70cf8a52 Bug 1160250 - Fix up the rect being used for the composition size calculation. r=tn 2015-05-07 14:44:03 -04:00
Kartikaya Gupta
905ed37047 Bug 1160250 - Put in a missing transfomToAncestor scaling factor. r=botond,tn 2015-05-07 14:44:02 -04:00
Kartikaya Gupta
d90090ea1b Bug 1160250 - Collapse the code from CalculateRootCompositionSize into UpdateCompositionBounds. r=botond,tn 2015-05-07 14:39:20 -04:00
Kartikaya Gupta
76561c0f08 Bug 1160250 - Extract a helper function from the triplicated composition-bounds-updating code. r=botond,tn 2015-05-07 14:39:20 -04:00
Kartikaya Gupta
aa18869ddf Bug 1160250 - Extract a helper method from the triplicated comp-bounds function to determine if we need to deflate the scrollbars. r=botond,tn 2015-05-07 14:39:19 -04:00
Seth Fowler
fdc5ab88b6 Bug 1162282 - When canvas.drawImage is called on a corrupt image that's not in the broken state, don't throw. r=gw280 2015-05-07 09:25:10 -07:00
Cameron McCormack
e567ca4a56 Bug 1162366 - Fix spelling of nsPresContext::mSupressResizeReflow and associated methods. r=dholbert
--HG--
extra : rebase_source : dac8dd0f388b5f14231572f57608052439f14951
2015-05-06 20:56:00 -04:00
L. David Baron
c8c50385b3 Bug 1153539 patch 2 - Compute scale for rasterizing off-main-thread transform animations based on ratio to display size in addition to maximum and minimum scale. r=roc
This fixes bug 1153539 with the Firefox download arrow being pixellated
(verified by testing locally).

I also confirmed what happens on a flame device with the transform
unlocking the Firefox OS homescreen (bug 945082 / bug 972310).  For that
transform (which had a maximum scale of 2), I see four calls to
GetSuitableScale:
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000000
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000586
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000000
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000586
(Presumably the first and third are for width, and the second and fourth
are for height.)  I believe this shows that bug 972310 will remain fixed
with this patch.

I chose to use the pres context's visible area rather than the screen
size because it seemed more appropriate, and also because (if memory
serves correctly) it's much cheaper to get.
2015-05-06 08:52:20 +02:00
L. David Baron
1bc23d9acc Bug 1153539 patch 1 - Improve comments for nsLayoutUtils::ComputeSuitableScaleForAnimation. r=roc 2015-05-06 08:52:20 +02:00
Mats Palmgren
57c61bb7d9 Bug 1009214 part 1 - [css-grid] Don't wrap placeholders in an anonymous grid item. r=dholbert 2015-05-05 21:53:22 +00:00
Daniel Holbert
3899eae2cc Bug 1161731: Remove newline characters from the ends of NS_WARNING messages in /gfx and /layout. r=mstange 2015-05-05 13:57:47 -07:00
Olli Pettay
bb9c4f4afa Bug 1149555 - Update resize event firing to follow the specs, dispatch right before rAF callbacks, r=dbaron
--HG--
extra : rebase_source : 4828758667591a52ef8d15fa4812c65475ca484f
2015-05-05 17:56:01 +03:00
Kartikaya Gupta
ad505c6fa4 Bug 1161040 - Add some assertions to guard against infinite loops in the handoff chains. r=botond 2015-05-05 08:36:52 -04:00
Timothy Nikkel
a792ad70d0 Bug 1159772. Don't let nsContainerFrame::SyncWindowProperties make widget calls that can result in synchronous painting during reflow or frame construction. r=mats
Specifically on Windows nsIWidget::SetTransparencyMode can result in sync painting.

So we give nsContainerFrame::SyncWindowProperties a sync or async option and use the view manager post pending update infrastructure to flush SyncWindowProperties calls async.
2015-05-04 14:29:19 -05:00
Kartikaya Gupta
acd04b0bda Bug 1161040 - Don't set a scrollparent on the root content document in the child process that points to itself. r=tn 2015-05-04 14:37:22 -04:00
Anthony Tseng
6fe5a1137f Bug 1158425 - Rename _SYNTH event names. r=smaug
--HG--
extra : rebase_source : 533cc7e18cf7f92d95a146d61f7aa2da7c0b8e48
2015-05-01 22:06:00 -04:00
Kartikaya Gupta
4851563279 Bug 1157579 - Make sure the visual scroll port size includes the area of scrollbars when used in TryLayout. r=tn 2015-05-04 10:17:26 -04:00
Morris Tseng
42696f4b94 Bug 1156636 - Remove post scale multiplication for event regions. r=roc 2015-04-28 01:46:00 +02:00
Ehsan Akhgari
74990d15e8 Bug 1137544 - Make a couple of tests more robust 2015-05-03 23:08:08 -04:00
Xidorn Quan
21b619291a Bug 1149009 - Suppress line break inside text frame if it is directly contained by ruby content box. r=dbaron
--HG--
extra : source : 27743ccd4b9be84847c7eb6590adcf96fb424999
2015-05-04 09:52:53 +12:00
Xidorn Quan
ffec696346 Backout df7c88910f47 (bug 1149009) for new patch.
--HG--
extra : source : f1d1ec017c872676ca90738f31f41d8f4a77f9cb
2015-05-04 09:52:53 +12:00
Robert O'Callahan
25dceb01f1 Bug 923193 - Avoid calling GetDeltaToPerspectiveOrigin for elements that don't have perspective. r=heycam 2015-05-02 02:25:51 +01:00
Wes Kocher
b492021bca Merge m-c to inbound a=merge 2015-05-01 17:23:32 -07:00
Wes Kocher
5ef0b7b6a7 Merge inbound to m-c a=merge 2015-05-01 17:19:28 -07:00
Ryan VanderMeulen
d6155ddbf6 Merge m-c to fx-team. a=merge 2015-05-01 13:00:21 -04:00
Ryan VanderMeulen
9440cb5e32 Merge m-c to inbound. a=merge
CLOSED TREE

--HG--
extra : amend_source : f158ed522808c8be66f918e7cd2d674a93e9e8b8
2015-05-01 10:50:07 -04:00
Danilo Cesar Lemes de Paula
a24ed2c0a4 Bug 1159405 - Fix "Found a non-root APZ with no handoff parent". r=botond 2015-04-30 06:06:00 -04:00
Danilo Cesar Lemes de Paula
8b923d9267 Bug 1156401 - Fix ContextMenu handling when building Fennec with C++ APZ. r=kats, r=botond
This commit deals with the situation where there's no scrollable element
on a fennec's page. It uses the Top Most root element (Xul viewport)
instead.

So this fixes the situation when the tap/click was not being send to the
correct dom element.
2015-04-30 06:09:00 -04:00
Jonathan Watt
b9b0d2b3c3 Bug 923193, part 1 - Avoid calculation of the reference box for transforms unless they're actually needed. r=roc
--HG--
extra : rebase_source : 8ffca8102a9648642f9166c213ce9e964c34b2af
2015-04-28 19:55:42 +01:00
Mike Hommey
924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Ted Clancy
1cde58afc9 Bug 1157726: Updated algorithm to match ICU implementation of support for bidi isolates. r=smontagu 2015-04-28 22:41:44 -04:00
Brian Birtles
a606228cd8 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly. r=smaug 2015-04-30 09:06:43 -04:00
Carsten "Tomcat" Book
b05d97c166 Backed out changeset 1b5fc672f0d4 (bug 1159082) for B2G ICS Emulator opt R6 test failures on a CLOSED TREE
--HG--
rename : dom/animation/AnimationEffectReadOnly.cpp => dom/animation/AnimationEffectReadonly.cpp
rename : dom/animation/AnimationEffectReadOnly.h => dom/animation/AnimationEffectReadonly.h
rename : dom/webidl/AnimationEffectReadOnly.webidl => dom/webidl/AnimationEffectReadonly.webidl
2015-04-30 13:15:04 +02:00
Xidorn Quan
0c5653824d Bug 1159101 part 5 - Initialize writing mode of desired mode of table cell frame from its table frame on a CLOSED TREE. r=roc
--HG--
extra : source : ad2134d545e36298124b6ec5aea600d3689022ad
extra : amend_source : 8bf117c8a17a8a9d0144a00709a8963f8b7efd14
2015-04-30 18:27:54 +12:00
Brian Birtles
4fb166f6b2 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly; r=smaug
--HG--
rename : dom/animation/AnimationEffectReadonly.cpp => dom/animation/AnimationEffectReadOnly.cpp
rename : dom/animation/AnimationEffectReadonly.h => dom/animation/AnimationEffectReadOnly.h
rename : dom/webidl/AnimationEffectReadonly.webidl => dom/webidl/AnimationEffectReadOnly.webidl
extra : rebase_source : 5fb31684bf494a57e208d0cfbbc76f65b502fc0e
2015-04-28 10:16:45 +09:00
Ryan VanderMeulen
e7e6f40c2f Merge m-c to fx-team. a=merge 2015-04-30 14:05:10 -04:00
Mark Finkle
ea1ba80c9b Bug 1159263 - Add support to nsCaret to stop blinking after a set of cycles r=roc r=snorp 2015-04-29 10:23:19 -04:00
Markus Stange
e72a2b1b6a Bug 1147194 - Do scroll info layer hoisting when building the display list. r=tn
--HG--
extra : amend_source : 35ca22eae3b3088eaae5143af8c47177bf601800
2015-04-30 14:54:48 -04:00
Botond Ballo
1b108ac0db Bug 1154478 - Rename gfxPrefs::LayoutEventRegionsEnabled to LayoutEventRegionsEnabledDoNotUseDirectly. r=kats
--HG--
extra : source : a993f4ed89d7aa36f1c48b85810319374f7bf671
2015-04-23 01:25:00 -04:00