Commit Graph

44094 Commits

Author SHA1 Message Date
JerryShih
5d843b5eb7 Bug 1121331 - Part2: Vsync aligned refresh timer. r=roc r=mchang 2015-01-14 00:38:00 +01:00
JerryShih
09a6608110 Bug 1121331 - Part1: PVsync protocol for vsync event passing. r=bent 2015-01-14 00:37:00 +01:00
Xidorn Quan
cc884ba803 Bug 1120721 - Make ethiopic-numeric use space as suffix. r=jfkthame
--HG--
extra : rebase_source : 77d6225d94df9af4bb956820a92591cc42525948
extra : source : 8bd3e48603383feef0fb70acde8ded40dbacb4da
2015-01-15 21:05:20 +11:00
Xidorn Quan
eb634353fa Bug 1055667 part 7 - Reftests for box properties on ruby boxes. r=dbaron
--HG--
extra : source : 4f6b9fe27d00b364047c0834608eb4c643bc2167
2015-01-15 20:02:11 +11:00
Xidorn Quan
b6f10f748e Bug 1055667 part 6 - Fix border/padding of ruby frame. r=dbaron
--HG--
extra : source : 42391b99e060a7b3c4e281ce2a4fda77cb3e4efc
2015-01-15 20:02:11 +11:00
Xidorn Quan
e2198398db Bug 1055667 part 5 - Make nsRubyFrame inherit nsInlineFrame. r=dbaron
--HG--
extra : source : 2ebca66c36f692cf29cbeb1eb64c6760bb75847c
2015-01-15 20:02:11 +11:00
Xidorn Quan
f371f07432 Bug 1055667 part 4 - Compute border/padding to zero for rbc & rtc. r=dbaron
--HG--
extra : source : e863414c6ceef1cbfb2b47a3abc64b93500060f8
2015-01-15 20:02:11 +11:00
Xidorn Quan
801d76bf4e Bug 1055667 part 3 - Suppress border/padding space on rbc/rtc frames. r=dbaron
--HG--
extra : source : 5025e0967ab9f189bb07af307733fcddcf90eb35
2015-01-15 20:02:11 +11:00
Xidorn Quan
1bf1df7b1e Bug 1055667 part 2 - Remove unnecessary param of SetBSizeFromFontMetrics. r=dbaron
--HG--
extra : source : aa79c8cebf3e2ab0fd4335eaa3c630a43dbe81f2
2015-01-15 20:02:11 +11:00
Xidorn Quan
60d4f4ddf2 Bug 1055667 part 1 - Allow inline direction margin of ruby base/text boxes. r=dbaron
--HG--
extra : source : 55f6a4607daa265757528e7a94f5ba6c9b6d773a
2015-01-15 20:02:11 +11:00
Carsten "Tomcat" Book
e05b528ddb Backed out changeset d1864ee9f2b2 (bug 1110950) for R5 Test failures on a CLOSED TREE 2015-01-15 09:32:18 +01:00
Daniel Holbert
311e6e6684 Bug 1110950: Trigger a reflow (as well as a repaint) for changes to 'object-fit' and 'object-position', so subdocuments can be repositioned/resized. r=roc 2015-01-14 22:43:05 -08:00
Phil Ringnalda
e39f0adeca Backed out 2 changesets (bug 1121304) for consistent b2g hangs in webgl-color-test.html?frame=1&__&preserve&premult&_____
Backed out changeset 20651ac19549 (bug 1121304)
Backed out changeset 758afec77c95 (bug 1121304)
2015-01-14 22:02:23 -08:00
Xidorn Quan
5d81d66f89 (no bug) - Reorder reftest.list of css ruby. 2015-01-15 16:55:36 +11:00
Xidorn Quan
88bf1ccda8 Bug 1121684 - Move one-liners in nsLineLayout.cpp to the header. r=roc
--HG--
extra : source : 1d3128f4f31f9b4998dc09c130657d54e729bb20
extra : amend_source : 21d2320d6699aa6294a233cb515f226500f6879a
2015-01-15 15:52:27 +11:00
Nicholas Nethercote
e9735966fa Bug 1121304 (part 2) - Remove PLDHashTableOps::{alloc,free}Table. r=froydnj. 2015-01-14 14:35:56 -08:00
Nicholas Nethercote
47221bc7f9 Bug 1120476 (part 4) - Remove PLDHashTableOps::finalize. r=froydnj.
--HG--
extra : rebase_source : b14dda8cdd5cd896d1e32950e38b2a9f7da4d99e
2015-01-13 19:02:35 -08:00
Nicholas Nethercote
c7538c9776 Bug 1120476 (part 3) - Remove PLDHashTable::data. r=froydnj.
--HG--
extra : rebase_source : 24d10af3dbce3ada5252503bc80bb1a4e31bc1c9
2015-01-13 16:42:13 -08:00
Daniel Holbert
73ee83551b Bug 1058954 followup: reorder crashtest.list to preserve numerical order. (no review, test manifest only) 2015-01-14 15:53:07 -08:00
Mats Palmgren
3676a45518 Bug 1009282 - [css-grid] Add primitive support for implicit named areas. r=dholbert 2015-01-14 21:59:59 +00:00
Ryan VanderMeulen
85f72d42db Merge b2g-inbound to m-c. a=merge 2015-01-14 16:26:57 -05:00
Gregor Wagner
eddcc4cfca Backout bug 1110917 for Gij red. 2015-01-14 11:25:38 -08:00
Gregor Wagner
f22a627b9b Backout bug 1110917 for Gij red. 2015-01-14 11:25:15 -08:00
Ryan VanderMeulen
e6b8f3a849 Merge m-c to inbound. a=merge 2015-01-14 13:46:46 -05:00
Ryan VanderMeulen
82e3ce2e32 No bug - Adjust some Android reftest expectations now that they're passing again. r=gbrown, a=test-only
These tests were originally marked as failing on 2.3 so that Android 2.3 could be enabled in production. Something today made them start passing again, so remove the failing annotations.
2015-01-14 13:46:20 -05:00
David Anderson
02248cee29 Fix classic scrollbars getting occluded with containerless scrolling. (bug 1100756, r=roc)
--HG--
extra : rebase_source : fcf95ab0c435d9c29a6a3552fe05d7f1ad3bc0ec
2015-01-13 23:55:17 -08:00
L. David Baron
e5ab574deb Bug 1110277 patch 8 - Add test for passing lazy construction parameters through, using flexbox reframe case. r=bzbarsky
This tests a case that is fixed by patch 6.  In particular, I tested that:
 * with none of the patches in the bug applied, the two added tests
   fail, both reporting rgb(255, 255, 0)
 * with all patches 1-7 applied, the two added tests pass
 * with only patches 4-6 applied, the two added tests pass
 * with only patches 4-5 applied, the two added tests fail, both
   reporting rgb(255, 255, 0)

Note that this test is structured in a rather particular way (with two
separate restyles triggered by attributes on different elements, queued
in a particular order) to avoid triggering bug 1111451.  (Though I ended
up fixing that anyway in the revision of these patches, so it's probably
doesn't require as particular a structure anymore.  FIXME: In fact, I
should probably add some additional tests.)
2015-01-13 21:03:13 -08:00
L. David Baron
c90d6e2a33 Bug 1110277 patch 7 - Call CreateNeededFrames from ~ReframingStyleContexts. r=bzbarsky
I don't have any tests that exercise this code, and I can't even find a
codepath that demonstrates that it's needed, since the lazy
reconstruction that happens during style-triggered frame reconstruction
all appears to go through PostRestyleEvent rather than
MaybeConstructLazily.

But I think we should either do this or add an assertion that it's not
needed, and given that it's one line, it seems like we may as well just
do it.  (Note also that we're currently calling CreateNeededFrames at
the start of style reresolution, in
RestyleManager::ProcessPendingRestyles; this adds a call at the end.)
2015-01-13 21:03:13 -08:00
L. David Baron
f290869b5e Bug 1110277 patch 6 - Make the lifetime of the ReframingStyleContexts object longer. r=heycam
This makes the ReframingStyleContexts live across the lifetime of the
processing of a full queue of posted restyles.

This depends on bug 1115812 to behave sensibly (and not assert) when
rebuilding the rule tree (RebuildAllStyleData, etc.).

This handles the form of lazy frame construction that is done in
nsCSSFrameConstructor::RecreateFramesForContent, which posts a restyle.
Patch 7 handles any use of the lazy frame construction mechanism.

This patch (with patches 4 and 5 under it, but without patches 1-3)
fixes the original testcase in bug 1110277, except for some flashing of
the final position as the transition starts.

Also fixes bug 1111451.
2015-01-13 21:03:13 -08:00
L. David Baron
6a6e77a8d9 Bug 1110277 patch 5 - Move the AutoRestore into ReframingStyleContexts. r=heycam
This is just a little cleanup that follows from patch 4.
2015-01-13 21:03:13 -08:00
L. David Baron
c85cb4876e Bug 1110277 patch 4 - Add a RestyleManager member to ReframingStyleContexts. r=heycam
This is needed for patch 7.
2015-01-13 21:03:13 -08:00
L. David Baron
f1332e99f1 Bug 1115812 patch 20 - Add assertions that mDoRebuildAllStyleData and mInRebuildAllStyleData are false by the end of restyle processing. r=heycam
These assertions are as requested in comment 30 in the bug.

(If the first one doesn't fire, it's possible we could even get rid of
the handling of mDoRebuildAllStyleData that it's within.)
2015-01-13 21:03:13 -08:00
L. David Baron
7bc8463f0e Bug 1115812 patch 19 - Avoid bad kungFuDeathGrip pattern. r=heycam
If we need a strong reference to the pres shell, we may as well do it
the first time rather than bothering with an extra variable.
2015-01-13 21:03:12 -08:00
L. David Baron
0e8362d05a Bug 1115812 patch 18 - We only need to call ProcessPendingRestyles recursively, rather than RebuildAllStyleData. r=heycam
If we discover that we've set mDoRebuildAllStyleData in the middle of
ProcessPendingRestyles(), now that ProcessPendingRestyles() fully
handles mDoRebuildAllStyleData, we only need to make a recursive call to
ProcessPendingRestyles, rather than calling RebuildAllStyleData to call
ProcessPendingRestyles.
2015-01-13 21:03:12 -08:00
L. David Baron
a998c7bd03 Bug 1115812 patch 17 - Do animation-only update properly for a rebuild all. r=heycam
This fixes another pre-existing bug in the rebuild-all codepath; it
didn't handle the animation-only update correctly, which could have
caused bugs in transitions with OMT animations enabled.
2015-01-13 21:03:12 -08:00
L. David Baron
20ed69a9ae Bug 1115812 patch 16 - Remove the now-unused DoRebuildAllStyleData. r=heycam 2015-01-13 21:03:12 -08:00
L. David Baron
f9abbf6ae0 Bug 1115812 patch 15 - Change the rebuild-all that we do for 'rem' unit changes to use the new way. r=heycam
This means that instead of recurring into DoRebuildAllStyleData, we'll
call StartRebuildAllStyleData in the middle of processing the restyle
queue (which is fine).  StartRebuildAllStyleData will move the old rule
tree out of the way and immediately do a full-tree restyle, before
returning to any queue processing that might be left (the full-tree
restyle should have consumed all remaining restyle hints, but might have
posted some new ones for handling reframes that require reframing
ancestors).  And, more importantly, the EndReconstruct() call to get rid
of the old rule tree won't happen until after we're done processing the
containing RestyleTracker's queue of restyles, which reduces the risk of
having dangling old style contexts and makes it easier (in bug 1110277)
to have a ReframingStyleContexts with the right lifetime.
2015-01-13 21:03:12 -08:00
L. David Baron
eed121aaa9 Bug 1115812 patch 14 - For rem unit change handling, repost min hint to root just like change hint. r=heycam
This changes what was probably a silly design choice when I wrote the
code for 'rem'-basis handling; we shouldn't try continuing through the
rest of RestyleElement() here, but instead repost the hint to the
rebuild-all process.
2015-01-13 21:03:12 -08:00
L. David Baron
6dc93cb14d Bug 1115812 patch 13 - Make RebuildAllStyleData use the normal ProcessPendingRestyles() codepath. r=heycam
This switches RebuildAllStyleData() to the normal
ProcessPendingRestyles() manner of restyle processing.  This means a
rebuild-all going through this codepath (the main rebuild-all codepath)
only sets up for non-animation restyle processing once rather than doing
it twice (and potentially having reframes posted in
DoRebuildAllStyleData() that don't get processed until
ProcessPendingRestyles(), which causes a variant of bug 1110277 with
transitions on reframed elements failing to start because it doesn't
match the lifetime of the ReframingStyleContexts).
2015-01-13 21:03:12 -08:00
L. David Baron
504d9a46e0 Bug 1115812 patch 12 - Null-check the root frame in StartRebuildAllStyleData. r=heycam
In the new way of doing a rebuild-all, StartRebuildAllStyleData might be
called directly from ProcessPendingRestyles rather than from
RebuildAllStyleData (which null-checks the root frame) or from within
processing restyles (which can only happen when there's a root frame).
This means it needs its own null-check of the root frame.
2015-01-13 21:03:12 -08:00
L. David Baron
b8e6ffef57 Bug 1115812 patch 11 - Move the beginning part of the rebuild-all process to StartRebuildAllStyleData. r=heycam
Here we call StartRebuildAllStyleData from BeginProcessingRestyles (much
like patch 9 and EndProcessingRestyles).  But we will later also call it
from the code that handles a root element font size change when we have
'rem' units.  That's because it's fine to *start* the rebuild process in
the middle of processing the queue of pending restyles.  (We have to end
after the whole process is done, though, in order to avoid wanting to
destroy the old rule tree while we still have style contexts referencing
it.)

We only call StartRebuildAllStyleData in this case when we're processing
our primary restyle queue (mPendingRestyles), not the animation restyles
(to be removed in bug 960465) or the animation-only restyles, since a
rebuild-all should be processed (in terms of animation phases, or in
terms of having an animation-only update before it) like a normal
restyle.  (This isn't true for the 'rem' unit restyle, which could
happen during any sort of update.)
2015-01-13 21:03:12 -08:00
L. David Baron
9d5b480b41 Bug 1115812 patch 10 - Add RestyleTracker parameter to BeginProcessingRestyles. r=heycam
This is needed in patch 11.
2015-01-13 21:03:12 -08:00
L. David Baron
9815b54790 Bug 1115812 patch 9 - Move the end part of the rebuild-all process to RestyleManager::EndProcessingRestyles. r=heycam
This moves the code that finishes the rebuild-all process into
EndProcessingRestyles(), which is part of the main restyling codepath.

Patch 7 ensures that we'll always get to EndProcessingRestyles in this
case, when we're going through the normal ProcessPendingRestyles()
codepath rather than the special DoRebuildAllStyleData() codepath (which
will be removed later in this patch series).
2015-01-13 21:03:12 -08:00
L. David Baron
4991382cc8 Bug 1115812 patch 8 - Call BeginProcessingRestyles and EndProcessingRestyles from DoRebuildAllStyleData. r=heycam
This fixes one of the omissions in the rebuild-all codepaths (where it
incorrectly differs from the regular ProcessPendingRestyles codepath).
Note that the explicit FlushOverflowChangedTracker() is no longer needed
because that's part of EndProcessingRestyles.

(This will all get refactored more substantially in the following
patches.)
2015-01-13 21:03:12 -08:00
L. David Baron
2b264a41d7 Bug 1115812 patch 7 - Always call DoProcessRestyles if mInRebuildAllStyleData. r=heycam
This is needed for patch 9 (once patch 9 is used via the
ProcessPendingRestyles() codepath in patch 13); it ensures that when we
use the new way of rebuilding, we don't bail out early because we think
we have nothing to do.
2015-01-13 21:03:12 -08:00
L. David Baron
61bcb1749a Bug 1115812 patch 6 - Move ProcessRestyles from RestyleTracker to RestyleManager. r=heycam
This is needed for the following patch, so that it can access a member
variable of RestyleManager.
2015-01-13 21:03:12 -08:00
L. David Baron
e19772aa8e Bug 1115812 patch 5 - Store the state of whether we're currently rebuilding all style data in a member variable, to prepare for future merging of the rebuild into other code. r=heycam
This adds a member variable that is currently only used within a single
function, but that function will be split apart so that different parts
of it can be called from different places within ProcessPendingRestyles.
2015-01-13 21:03:12 -08:00
L. David Baron
1493ba39f8 Bug 1115812 patch 4 - Rename mRebuildAllStyleData to mDoRebuildAllStyleData. r=heycam
This is the variable that says we *need to* rebuild style data.  Since
the next patch will introduce a variable that says we're *currently*
rebuilding all style data, renaming this one makes things clearer.
2015-01-13 21:03:11 -08:00
L. David Baron
a6b18a766a Bug 1115812 patch 3 - Pass the hints to DoRebuildAllStyleData via the member variables, in preparation for future refactoring. r=heycam
Part of this refactoring involves the ability to start the rebuild-all
process within the processing of restyles.  This means we can't pass
parameters directly from RebuildAllStyleData into DoRebuildAllStyleData.
So this continues storing the hints as member variables a little bit
deeper into the process.

(I tried to move in a different direction in this patch queue, and store
these hints in mPendingRestyles, for the root element.  But that broke
layout/style/test/test_counter_style.html and
layout/style/test/test_font_loading_api.html, and I didn't want to
figure out why.  It would be somewhat better in the long run, since
currently these hints will get processed if we do a rebuild-all on a
RestyleTracker other than mPendingRestyles, which can happen if we have
'rem' units and have a root element font size change in the
animation-only update or in mPendingAnimationRestyles.)
2015-01-13 21:03:11 -08:00
L. David Baron
5d1c7926f6 Bug 1115812 patch 2 - Move the eRestyle_ChangeAnimationPhaseDescendants hint in DoRebuildAllStyleData so that the new rebuild-all codepaths will keep it. r=heycam
The patches in this series refactor the process of rebuilding all style
data (RestyleManager::RebuildAllStyleData and
RestyleManager::DoRebuildAllStyleData) so that the process of rebuilding
all style data uses the existing restyle processing loops in
ProcessPendingRestyles.  (Rebuilding all style data is what we do when
we need to throw away the rule tree because something has invalidated
the cached data in it.)  This removes (increasing, especially with bug
960465 coming) code duplicated between the two codepaths, fixes some
omissions from the separate rebuild-all codepath, and (more immediately)
allows fixing lifetime issues of ReframingStyleContexts objects in bug
1110277 so that we can have a single ReframingStyleContexts for all of
the restyle processing in each restyle processing operation.  In other
words, the goal is to change the rebuild-all process from a separate
codepath to a few variables that modify the way ProcessPendingRestyles
works (and make it do the extra work).

This is just a small first step in that process, which moves one piece
of code from a chunk of duplicated and to-be-removed code into a chunk
of code that will be preserved.
2015-01-13 21:03:11 -08:00
L. David Baron
c18ac3eff2 Bug 1115812 patch 1 - Remove obsolete comment that was fixed by bug 1047928. r=heycam 2015-01-13 21:03:11 -08:00
L. David Baron
58c2e564c7 Bug 908987 - Honor mIsActive more aggressively to avoid calling IsVisibleConsideringAncestors. r=roc
This means that we avoid an O(N^2) calling pattern of IsVisible when we
call IsVisible for all tabs of a tabbrowser, since in a tabbrowser
(which uses an nsDeckFrame), IsVisibleConsideringAncestors is O(N) in
number of earlier tabs.
2015-01-13 21:03:11 -08:00
Daniel Holbert
df61000207 Bug 1121256: Remove commented-out debugging printfs from 1998, in nsSubDocumentFrame::Reflow. (comment-only, no review, DONTBUILD) 2015-01-13 16:30:32 -08:00
Ethan Lin
991db41f23 Bug 1120294 - Modify the svg luminance calculating for reducing memcpy. r=longsonr 2015-01-12 21:51:00 -05:00
Ethan Lin
0bcd6939a3 Bug 1120294 - Use A8 format svg mask and refactor svg neon code. r=longsonr 2015-01-12 07:36:00 -05:00
Mats Palmgren
2acb3c8961 Bug 1120198 part 2 - Optimize RebuildImageVisibility[DisplayList]() using nsTHashtable::SwapElements. r=tn 2015-01-13 14:44:33 +00:00
Mats Palmgren
dd1166614c Bug 1116714 part 0 - Iterate forward instead, to avoid depending on undefined integer behavior. r=roc 2015-01-13 14:44:33 +00:00
Kartikaya Gupta
da9b127a6d Bug 1119355 - Add a dummy touch listener on nsRangeFrame so the APZ code knows it handles them. r=roc 2015-01-13 09:06:37 -05:00
Gabor Krizsanits
e9973161c9 Bug 1111633 - Unresolved pseudo class. r=bz 2015-01-13 19:58:06 +01:00
Shih-Chiang Chien
de67b6547d Bug 1080474 - Part 1 - device manager for Presentation API. r=fabrice. 2014-08-27 10:28:03 +08:00
Jeremy Chen
8481b4ddea Bug 1110917 - Part 2: Fix focus not changing while selecting text by long press v2. r=roc 2015-01-12 18:10:03 +08:00
Jeremy Chen
e7e24fd4d5 Bug 1110917 - Add test cases for selectioncaret changes. r=automatedtester 2014-12-31 14:40:39 +08:00
Andrea Marchesini
717717cd09 Bug 1018320 - RequestSync API - patch 2 - Wifi Only, r=ehsan 2015-01-13 09:53:16 +00:00
Xidorn Quan
a910edbc6b Bug 1115262 - Fix position of ruby annotation when writing mode is vertical-rl. r=jfkthame
--HG--
extra : source : ec2b2922a741fc5a62bc76c716529eda1b7fe5d0
extra : amend_source : 95bc6d9805f2c0cb9c4d76fcebb5defdd6c69660
2015-01-13 20:04:41 +11:00
Xidorn Quan
7969797ad3 Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 27e60ddbd077439dadd09641ab54fc7eef09c69f
2015-01-13 20:04:41 +11:00
Xidorn Quan
72aad2a249 Bug 1055658 part 3 - Add reftests for ruby annotation relative positioning. r=dbaron
--HG--
extra : source : 1be2cf7edc4219582496a9faba5b4f40fd73a33b
2015-01-13 20:04:41 +11:00
Xidorn Quan
58446e500f Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : e15efc6ea7d8fd27cbb334fbab2ba85b0f6868dd
2015-01-13 20:04:41 +11:00
Xidorn Quan
109db9aef5 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : 7ba6cbbf02828b4d6d55bd056e92243423eab6d0
2015-01-13 20:04:41 +11:00
Xidorn Quan
60705d6a24 Bug 1120313 - Fix nested ruby inside ruby annotation. r=dbaron
--HG--
extra : source : ea44dcc7bf0e008d6669a00d107529a97ab1c84d
2015-01-13 15:14:46 +11:00
Robert O'Callahan
94382f62b5 Bug 1099977. Part 3: Skip creating nsDisplayText when all glyphs are invisible. r=jfkthame
--HG--
extra : rebase_source : db9e1e149ea93be298c0515b792186168ccbb9f0
2014-11-18 23:23:46 +13:00
Robert O'Callahan
0c9928a13e Bug 1099977. Part 2: Make gfxFont::Measure return an empty bounding-box when all glyphs are invisible. r=jfkthame
--HG--
extra : rebase_source : 41a9f586ef2992d96b789d6bd55daae18f15ed2f
2014-11-18 23:23:45 +13:00
Jonathan Kew
f194052f6a Bug 1119770 - Remove the compile-time switch to enable/disable vertical writing mode support. r=smontagu 2015-01-12 20:55:52 +00:00
Ryan VanderMeulen
b4ff41d68e Bug 1119818 - Bump various UUIDs that were missed when IDL changes landed. r=jib, r=jdm, r=gavin, r=bz, a=me 2015-01-12 10:44:18 -05:00
Christoph Kerschbaumer
54b8e4e5e4 Bug 1110469 - Remove NS_OpenURI (r=sworkman) 2015-01-11 20:26:40 -08:00
Nigel Babu
053a7d3408 Backed out 4 changesets (bug 1055658) for M5 bustage on a CLOSED TREE
Backed out changeset 3cbd9323c896 (bug 1055658)
Backed out changeset 99e071295c42 (bug 1055658)
Backed out changeset 55119d19e4c5 (bug 1055658)
Backed out changeset e82f640cb53f (bug 1055658)
2015-01-12 10:43:11 +05:30
Xidorn Quan
6ba35e648b Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 27e60ddbd077439dadd09641ab54fc7eef09c69f
2015-01-12 14:31:55 +11:00
Xidorn Quan
570e1e21f8 Bug 1055658 part 3 - Add reftests for ruby annotation relative positioning. r=dbaron
--HG--
extra : source : 6cc51f0bfbb68999a5361339a09a455ac7723bc6
2015-01-12 14:31:55 +11:00
Xidorn Quan
c5346caa22 Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : 3b6cece1b466a724983927329c56dc1d9555b09a
2015-01-12 14:31:55 +11:00
Xidorn Quan
c7dcc6e79f Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : aa1e52e91dd5ae6fdcdc6ca17bd9ec2a0b946f2b
2015-01-12 14:31:55 +11:00
Xidorn Quan
8dd35a9adf Bug 1111463 part 3 - Fix ruby reftests for default styles. r=dbaron
--HG--
extra : source : 2a8645f9d275da445738b3aad99630fa6c0a3586
2015-01-12 12:52:19 +11:00
Xidorn Quan
fdcb33cf1c Bug 1111463 part 2 - Add styles in html.css and ua.css. r=dbaron
--HG--
extra : source : 36266a6c05c5d40c0ebdd97a3935041a8d8f1010
2015-01-12 12:52:19 +11:00
Xidorn Quan
0121de7dec Bug 1111463 part 1 - Invalidate html.css when ruby pref changes. r=dbaron
--HG--
extra : source : c33e79d1dc93b9827fff3fa4f0ac66db2e403423
2015-01-12 12:52:19 +11:00
Kartikaya Gupta
909fc304dd Bug 1120252 - Avoid trying to get the APZCTreeManager if APZ isn't enabled. r=mattwoodrow 2015-01-11 20:39:36 -05:00
Robert O'Callahan
0cdcaa1f30 Bug 1119117. Don't clip nsDisplayOpacity items, since some of its descendants maybe should not be clipped with the nsDisplayOpacity clip. r=mattwoodrow
--HG--
extra : rebase_source : 50ab1923ad5150197128a0862db2af96dfd41658
2015-01-11 00:12:33 +13:00
L. David Baron
ce6e3ca667 Revert one of the assertion additions in Bug 1110277 patch 3 since it fires, causing orange. r=orange
Example stack, from editor/libeditor/tests/browserscope/test_richtext2.html :

###!!! ASSERTION: should only call on first continuation/ib-sibling: 'nsLayoutUtils::IsFirstContinuationOrIBSplitSibling(this)', file /builds/slave/m-in-l64-d-0000000000000000000/build/src/layout/base/../generic/nsIFrame.h, line 875
#01: AdjustAppendParentForAfterContent [layout/base/nsCSSFrameConstructor.cpp:6059]
#02: nsCSSFrameConstructor::ContentAppended(nsIContent*, nsIContent*, bool) [layout/base/nsCSSFrameConstructor.cpp:7155]
#03: PresShell::ContentAppended(nsIDocument*, nsIContent*, nsIContent*, int) [layout/base/nsPresShell.cpp:4520]
#04: nsNodeUtils::ContentAppended(nsIContent*, nsIContent*, int) [dom/base/nsNodeUtils.cpp:132]
#05: nsINode::doInsertChildAt(nsIContent*, unsigned int, bool, nsAttrAndChildArray&) [dom/base/nsINode.cpp:1544]
#06: nsINode::ReplaceOrInsertBefore(bool, nsINode*, nsINode*, mozilla::ErrorResult&) [dom/base/nsINode.cpp:2209]
#07: mozilla::dom::NodeBinding::appendChild [obj-firefox/dom/bindings/NodeBinding.cpp:600]
2015-01-11 16:58:42 -08:00
L. David Baron
ffe839138c Bug 1110277 patch 3 - Look for the GenConPseudos() property on the first continuation/ib-split so that we can find it when looking for the ::after frame. r=bzbarsky
The change to GetAfterFrameForContent prevents the reframe that is part
of the chain of events leading to this bug, and thus fixes the bug on
its own.  The change to GetBeforeFrameForContent seems desirable for
symmetry.

Note that patch 6 also independently fixes the reported bug.

This probably needs somewhat careful review.  We should examine:

 (1) what the rules for calling nsLayoutUtils::GetBeforeFrame and
     nsLayoutUtils::GetAfterFrame are, and whether both (or neither)
     need to be patched.

 (2) What the rules are for which frame the GenConProperty() lives on,
     and whether we should adjust nsIFrame::GetGenConPseudos() to either
     do something more intelligent, or assert about callers.

(We should probably clean up some of these things in a followup bug.)

Since the symptom of this bug is (once patch 4 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).

This patch fixes the assertion on layout/generic/crashtests/600100.xhtml,
though I haven't investigated why.
2015-01-11 15:43:11 -08:00
L. David Baron
25c494ef46 Bug 1110277 patch 2 - Add nsLayoutUtils::LastContinuationOrIBSplitSibling(). r=bzbarsky
This is used in patch 3.
2015-01-11 15:43:10 -08:00
L. David Baron
590d7a434b Bug 1110277 patch 1 - Consider the ib-split chain when checking for ::before and ::after in order to reframe when they're missing. r=bzbarsky
This patch is not needed to fix the bug, but it seems like it's probably
desirable.  It's not needed for this bug because
MaybeReframeForBeforePseudo and MaybeReframeForAfterPseudo are already
called (by ElementRestyler::RestyleChildren) on only the first and last
continuation or ib-split sibling with the same style.  So this patch
should only actually change anything for cases like a block-in-inline
split whose initial inline part is inside of a ::first-line (where
different parts of the block-in-inline split chain have different style).

Since the symptom of this bug is (once patch 6 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).
2015-01-11 15:43:10 -08:00
L. David Baron
5f231b4278 Bug 1110277 patch 0 - Add mochitest for patch 1 and patch 3. r=heycam
Patch 1 and patch 3 will change the todo status of the first and second
tests, respectively, since they are what fix the tests.
2015-01-11 15:43:10 -08:00
L. David Baron
2c4447faf5 Bug 1115691 patch 1 - Store counts of frames constructed and reflowed on the pres context. r=roc
(I've tested the frame construction counts in my test for bug 1110277; I
haven't actually tested the reflow counts.)
2015-01-11 15:43:10 -08:00
Tom Schuster
967d0d250a Backout changeset b4ebefd0f7e3:a8044fd506db Bug 1117607, Bug 1118087, Bug 1118092, Bug 1118105, Bug 1030372, Bug 1079627 on CLOSED TREE 2015-01-11 20:43:32 +01:00
Seth Fowler
08df7af950 Bug 1079627 (Part 3) - Support multiple decoders for a single RasterImage. r=tn 2015-01-11 05:34:20 -08:00
Masatoshi Kimura
bf312ad056 Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Robert Longson
5f570eddfa Bug 1117514 - lines with zero length dashes are not rendered. r=jwatt 2015-01-10 22:17:57 +00:00
Ms2ger
03307562df Backed out changeset f5a5f7463224 (bug 1119117) 2015-01-10 20:23:06 +01:00
Robert O'Callahan
fe1567ad0c Bug 1119117. Don't clip nsDisplayOpacity items, since some of its descendants maybe should not be clipped with the nsDisplayOpacity clip. r=mattwoodrow
--HG--
extra : rebase_source : d8fbb70e8745a185142430dc341a5fa0146f5532
2015-01-11 00:12:33 +13:00
Geoff Lankow
125624cd03 Bug 1114297 - Improve performance of nsTreeBodyFrame::AdjustForCellText for very long strings; r=smontagu 2015-01-11 00:07:58 +13:00
Wes Kocher
09febf6c77 Merge m-c to inbound a=merge 2015-01-09 21:00:13 -08:00
Chris Peterson
9e23388ca8 Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo 2015-01-06 21:39:46 -08:00
Neil Deakin
f6a2d05cfe Bug 1089005, add a third consume option that never consumes even over the anchor. This allows clicks on the location field to adjust the caret position, r=dao 2015-01-09 21:12:10 -05:00
William Chen
35698aefb1 Bug 1118764 - Don't distribute anonymous root content in shadow DOM. r=bz 2015-01-08 13:49:51 -08:00
Gregor Wagner
c6fda1b9b8 Bug 1103106 - Make assertion failure: !mWillChangeBudgetCalculated non fatal. r=benwa 2015-01-09 13:29:43 -08:00
Ryan VanderMeulen
9a378a0290 Merge inbound to m-c. a=merge 2015-01-09 14:45:50 -05:00
Carsten "Tomcat" Book
3fcd5e68f5 Merge mozilla-central to b2g-inbound 2015-01-09 15:54:18 +01:00
Fernando Jimenez Moreno
c4551483eb Bug 1101029 - Overlay iframe on top of front-most app. r=roc, sicking 2015-01-09 09:55:18 +01:00
Kartikaya Gupta
2f7d3e0456 Bug 1117828 - When building event regions for a pseudo-stacking context, use the child frame instead of the parent. r=roc 2015-01-09 10:12:35 -05:00
Makoto Kato
0d551ec8d9 Bug 966157 - Part 3. Ignore assertion of test_bug558663.html for Linux e10s. r=masayuki 2015-01-09 16:40:25 +09:00
Boris Zbarsky
ae8c53e49b Bug 1103000. Update the unitless length quick whitelist to match spec changes. r=dbaron 2015-01-08 11:57:09 -05:00
Carsten "Tomcat" Book
4b471b2953 Backed out changeset 68d2b24c9351 (bug 1055658) for Reftest Failures 2015-01-08 16:08:58 +01:00
Carsten "Tomcat" Book
a2b93bb8fa Backed out changeset f4e02295ff1f (bug 1055658) 2015-01-08 16:08:37 +01:00
Carsten "Tomcat" Book
e541bdd186 Backed out changeset 9371c6f11873 (bug 1055658) 2015-01-08 16:08:35 +01:00
Carsten "Tomcat" Book
9b09e9d3fb Backed out changeset 2ee5068037f2 (bug 1055658) 2015-01-08 16:08:33 +01:00
Kartikaya Gupta
1eb610400a Bug 1109873 - Implement the expanded HitTestingTree. r=botond 2015-01-08 09:40:01 -05:00
pchang
72bbdd11fc Bug 1111433 - Dispatch the SelectionStateChanged event for blur. r=ehsan 2015-01-07 01:01:00 -05:00
Ehsan Akhgari
4354953b4f Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Jonathan Kew
8da00ce66d Bug 1062108 - Adjust existing tests that are affected by the fix to synthetic-bold glyph advance. r=jdaggett 2015-01-08 12:52:10 +00:00
Jonathan Kew
f29017166b Bug 1062108 - Test that <space> and <x> have the same width in bold monospace font. r=jdaggett 2015-01-08 12:52:03 +00:00
Xidorn Quan
cd8f0da1f4 Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 4ee892ec7dde8957aa733401bfd7746a97ebcf7e
2015-01-08 23:20:16 +11:00
Xidorn Quan
a36d378995 Bug 1055658 part 3 - Add reftests for ruby annotation relative positioning. r=dbaron
--HG--
extra : source : c352bc5450a3a939dc79ff55bd94e2cc78614ea0
2015-01-08 23:20:16 +11:00
Xidorn Quan
d5ce9a9dff Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : 19d8bb736510b1f162aba3df5d2a6b851ea705de
2015-01-08 23:20:16 +11:00
Xidorn Quan
e3f325b307 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : 30aa25e2233135e3c4792f406af6d2cdc055758c
2015-01-08 23:20:16 +11:00
Simon Montagu
32d27c84d2 Bug 1063471: finish off converting nsBlockReflowContext to logical coordinates (comment-only change), r=jfkthame 2015-01-08 02:10:24 -08:00
Michael Pruett
411a94b05a Bug 1118024 - Use new PL_DHashTable{Add,Lookup,Remove} functions. r=nfroyd 2015-01-05 20:27:28 -06:00
Xidorn Quan
e3953dff5f Bug 1099807 part 5 - Reftests for ruby intra-level whitespaces. r=dholbert
--HG--
extra : source : 0bbef725cf7f1abee96b98c7fe507f35115ecea9
2015-01-08 18:28:09 +11:00
Xidorn Quan
8beb2f4821 Bug 1099807 part 4 - Fix line breaking around ruby intra-level whitespaces. r=dholbert
--HG--
extra : source : f6ebe9d9c7c863b18497e3c326f4486c5837a163
2015-01-08 18:28:09 +11:00
Xidorn Quan
a7ba233d21 Bug 1099807 part 3 - Use specific frame type in RubyColumn. r=dholbert
--HG--
extra : source : 0d78d1c0d10d9b5e32c0843a258d29e12f1369c4
2015-01-08 18:28:09 +11:00
Xidorn Quan
5f3951012f Bug 1099807 part 2 - Implement intra-level whitespace pairing. r=dholbert
Line breaking is not handled properly in this patch.
It would be fixed in the part 4.

--HG--
extra : source : 49c457bbcd3a55f7ee65b007d50dd2884c7158af
2015-01-08 18:28:09 +11:00
Xidorn Quan
e20ab8cabf Bug 1099807 part 1 - Add common superclass for ruby base and ruby text. r=dholbert
--HG--
extra : source : 9dd5b0a847a1d698589c14e9dde5ced195eed646
2015-01-08 18:28:09 +11:00
Xidorn Quan
364fe61104 Bug 1069519 part 3 - Add reftests for ruby line height calculation. r=dholbert
--HG--
extra : source : 728da9f1603aea283356de9f69f678667514cc70
2015-01-08 16:02:41 +11:00
Xidorn Quan
bfb0d2cc6e Bug 1069519 part 2 - Make line height calculation be aware of ruby annotations. r=dholbert
--HG--
extra : source : e8c8f94afde330276b5d907520d93da10e8f998c
2015-01-08 16:02:41 +11:00
Xidorn Quan
d75476f8b0 Bug 1069519 part 1 - Use common.css in previous ruby reftests. r=dholbert
--HG--
extra : source : 044fe5c95847a6324cdc66e0b2f5855c38d05f0e
2015-01-08 16:02:41 +11:00
Neil Deakin
a744e9625f Bug 1102039, Ensure that the popup's widget visibility is updated after rollup, allows popups to disappear at the start of the minimize animation rather than after, r=tn 2015-01-07 20:52:20 -05:00
Ethan Lin
4138e739cb Bug 1116070 - Use neon to speed up the mask creation. r=longsonr 2015-01-06 02:44:00 -05:00
Botond Ballo
9f93609fd6 Bug 1076241 - Add an API for setting a resolution on a document and scaling it by that amount. r=kats,tn 2015-01-02 20:06:14 -05:00
Ehsan Akhgari
81bc9cdcd9 Bug 1118427 - Mark virtual overridden functions as MOZ_OVERRIDE in layout; r=roc 2015-01-07 10:07:36 -05:00
Morris Tseng
a2c88868d4 Bug 1117643 - Always send blur event to selection carets but cancel long tap detector when leaving document. r=roc 2015-01-05 01:15:00 +01:00
pchang
0b5289330f Bug 1098161 - Notify shortcut mode to system app when long tap on content with empty text. r=roc 2014-12-19 14:04:45 +08:00
Simon Montagu
15214fdece Tests for bug 1102175, r=jfkthame 2015-01-06 23:50:05 -08:00
Simon Montagu
8ef1ab91de Bug 1079154 patch 7: remove obsoleted nsPoint::GetPhysicalPosition, r=jfkthame 2015-01-06 23:10:43 -08:00
Simon Montagu
9480e827ab Bug 1079154 patch 6: convert ApplyRelativePosition, ReflowChild and FinishReflowChild in nsFlexContainerFrame to the logical versions, r=dholbert 2015-01-06 23:10:07 -08:00
Simon Montagu
1eacdee679 Bug 1079154 patch 5: convert callers of ApplyRelativePosition, ReflowChild and FinishReflowChild in layout/generic to the logical versions, r=jfkthame 2015-01-06 23:10:07 -08:00
Simon Montagu
f632d7bf9b Bug 1079154 patch 4: Logical versions of ReflowChild and FinishReflowChild, r=jfkthame 2015-01-06 23:10:07 -08:00
Simon Montagu
3a8d6ee30c Bug 1079154 patch 3: logical versions of ApplyRelativePositioning, r=jfkthame 2015-01-06 23:10:07 -08:00
Simon Montagu
4aff46b627 Bug 1079154 patch 2: add SetPosition with a LogicalPoint to nsIFrame, r=jfkthame 2015-01-06 23:10:07 -08:00
Simon Montagu
999a094a1f Bug 1079154 patch 1: add a != operator to LogicalPoint and sprinkle some const dust in WritingModes.h, r=jfkthame 2015-01-06 23:10:07 -08:00
Jonathan Kew
c3656996fc Bug 1079154 - Reftest for column child-frame positioning in vertical-rl mode, r=smontagu 2014-12-19 13:46:42 +00:00
Xidorn Quan
f90f5d5d73 No bug, add a little more fuzz. 2015-01-07 17:20:11 +11:00
Ehsan Akhgari
8a04f8a90c Bug 1118426 - Mark virtual overridden functions as MOZ_OVERRIDE in layout/style; r=dbaron 2015-01-06 23:33:51 -05:00
Xidorn Quan
fed49743f0 Bug 1116688 - Always try to push children after reflowing an incomplete ruby segment. r=dbaron
--HG--
extra : rebase_source : eddbedeaf484513da0789ec73d82801d55234d69
extra : source : afabc75550c1c5b3e8ce4b375cd0b5bb6a30fb21
2015-01-07 12:47:09 +11:00
Xidorn Quan
b29ae7bea0 Bug 1117597 - Sync bounds of ruby annotation containers. r=roc
--HG--
extra : rebase_source : 336b023e6d44031a3a2adfde42a510b6729d83a3
extra : source : a2e4eb7e9c71f299685e8e4c9175bfb31a27a70b
2015-01-07 12:47:09 +11:00