Commit Graph

570 Commits

Author SHA1 Message Date
Nicholas Nethercote
0a8532758b Bug 1113010 (part 2) - Shrink FrameConstructionItem by using bitfields. r=dholbert.
This reduces its size from 168 bytes to 160 bytes on 64-bit platforms.
2014-12-18 14:15:18 -08:00
Nicholas Nethercote
17b6b42428 Bug 1113010 (part 1) - Shrink FrameConstructionItem by reordering some fields. r=dholbert.
This reduces its size from 176 bytes to 168 bytes on 64-bit platforms.
2014-12-18 14:14:58 -08:00
Nicholas Nethercote
a2ab398e5e Bug 1113010 (part 0) - Remove impossible path in AddFrameConstruct(). r=dholbert.
Infallible new ensures that |item| is always non-null. And even if it didn't,
AppendItem() dereferences |item| before this code is reached.
2014-12-18 14:14:31 -08:00
Xidorn Quan
fad0cb2389 Bug 1088489 - Implement ruby pseudo box generation. r=bz 2014-12-08 21:45:56 +11:00
Xidorn Quan
f15922819e Bug 1088489 - Add const overload of item() & add assertion in them. r=bz 2014-12-14 09:19:46 +11:00
Xidorn Quan
0255532617 Bug 1088489 - Separate wrapping frame construction items into a method. r=bz 2014-12-08 21:45:56 +11:00
Mats Palmgren
a0051e8d3e Bug 1108104 part 1 - Remove mFixedContainingBlock. Make GetAbsoluteContainingBlock() check for an ancestor with the right frame type instead. r=roc 2014-12-14 17:22:06 +00:00
Xidorn Quan
52c4635778 Bug 1083004 - Create anonymous ruby base container when necessary. r=bz 2014-11-26 15:52:07 +11:00
Mats Palmgren
bfc9b6f5d9 Bug 907396 - Frame constructor changes for display:contents. r=bzbarsky 2014-11-20 18:24:09 +00:00
Carsten "Tomcat" Book
96fb57d49e Backed out changeset 61fa2ff606b8 (bug 1083004) 2014-11-12 11:25:51 +01:00
Xidorn Quan
11ef5e952f Bug 1083004 - Create anonymous ruby base container when necessary. r=bz 2014-11-12 17:31:37 +11:00
Mats Palmgren
77b1598415 Bug 1083855 - part 6, Make RecreateFramesForContent params non-optional. r=bz 2014-10-23 13:19:26 +00:00
Mats Palmgren
680bb65642 Bug 1083855 - part 3, Implement nsIPresShell::DestroyFramesFor/CreateFramesFor. r=bz 2014-10-23 13:19:25 +00:00
Mats Palmgren
50ee9b1c84 Bug 1083855 - part 2, Add a REMOVE_DESTROY_FRAMES value to RemoveFlags. Make RecreateFramesForContent skip recreating the frames when aFlags has that value. r=bz 2014-10-23 13:19:25 +00:00
Mats Palmgren
5e8b0f96c4 Bug 1083855 - part 1, Add an aDestroyedFramesFor out param to ContentRemoved and propagate it (and aFlags) to RecreateFramesForContent etc. (idempotent change) r=bz 2014-10-23 13:19:25 +00:00
Kearwood (Kip) Gilbert
912497df59 Bug 1010538 - Part 2 - Add scroll-behavior to ScrollbarStyles. r=mstange
- ScrollbarStyles extended to support the scroll-behavior CSS property
- Corrected naming of parameters to ScrollbarStyles CTOR
2014-09-15 12:30:00 -07:00
Ehsan Akhgari
8bb87f8a27 Bug 1060985 - Fix more bad implicit constructors in layout; r=roc 2014-08-31 23:36:37 -04:00
Daniel Holbert
d4ecd16223 Bug 1054563: Remove unnecessary nsresult return value from BuildScrollFrame, and de-indent it. r=tn 2014-08-15 20:22:09 -07:00
Susanna Bowen
f728e0d83a Bug 1021952 - Generate anonymous boxes to preserve proper ruby structure r=bz 2014-07-22 19:08:08 -07:00
Mats Palmgren
32ce53a846 Bug 767593 - Don't call SetUndisplayedContent() when aState.mCreatingExtraFrames is true because we should have already done that. r=bz 2014-07-16 14:10:48 +00:00
Xidorn Quan
b214cee292 Bug 966166 - Part 3: Link to other parts. r=dbaron 2014-06-11 21:12:00 -04:00
Jonathan Watt
2cba1bd1c2 Bug 1016680, part 3 - DeCOMify nsGenConNode::mText. r=dholbert 2014-06-11 23:11:15 +01:00
Phoebe Chang
b9fcaae0c1 Bug 924692 - Part 1: Add touch caret rendering support; r=roc 2014-06-03 15:08:25 +08:00
Mats Palmgren
a26b4d368e Bug 508665 - part 4, Make nsCSSFrameConstructor use nsContainerFrame* for frames used as parent frames. r=roc 2014-05-24 22:20:40 +00:00
Mats Palmgren
93a6cff703 Bug 508665 - part 3, Change GetContentInsertionFrame() to return a nsContainerFrame*, and return null for leaf frames. Deal with GetContentInsertionFrame() returning null in a couple of places. r=roc 2014-05-24 22:20:39 +00:00
Mats Palmgren
616b800741 Bug 508665 - part 2, Move nsCSSFrameConstructor::GetFrameFor to a static function in nsCSSFrameConstructor.cpp. r=roc 2014-05-24 22:20:39 +00:00
Mats Palmgren
a73e99dbc1 Bug 508665 - part 1, Change the signature of SetParent/GetParent from nsIFrame* to nsContainerFrame*. r=roc 2014-05-24 22:20:39 +00:00
Mats Palmgren
aba02256fd Bug 1000376 - part 2, Implement frame construction part for anonymous grid items (reusing the anon flex item code). r=dholbert 2014-05-03 13:42:33 +00:00
Robert O'Callahan
6a905fd99d Bug 983465. Disable collapsing-text frame construction optimization on a per-document basis. r=bz 2014-04-03 03:48:51 -04:00
Daniel Holbert
54efc55ac0 (no bug) Remove whitespace at end of line in nsCSSFrameConstructor. (whitespace-only, DONTBUILD) 2014-03-20 14:49:26 +08:00
Kyle Huey
18bbe187f5 Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg 2014-03-15 12:00:17 -07:00
Seth Fowler
9900999767 Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron 2014-03-10 15:41:17 -07:00
Seth Fowler
f695beb3ae Backed out 3 changesets (bug 63895)
Backed out changeset ceafe92c7716 (bug 63895)
Backed out changeset 0199299ac111 (bug 63895)
Backed out changeset d78110a5cffa (bug 63895)
2014-03-06 16:59:56 -08:00
Seth Fowler
ed73167466 Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron 2014-03-03 19:40:29 -08:00
Mats Palmgren
95f7768d7c Bug 976411 - Use ConstructFramesFromItemList in more places, and some minor cleanup. r=bz 2014-02-27 09:15:16 +00:00
Wes Kocher
993afa9efb Backed out 3 changesets (bug 63895) for debug crashtest failures on a CLOSED TREE
Backed out changeset 02e057fea56c (bug 63895)
Backed out changeset 80bd36a3d4f1 (bug 63895)
Backed out changeset 6609365ee797 (bug 63895)
2014-02-19 17:35:03 -08:00
Seth Fowler
46a9efa068 Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron 2014-02-19 16:03:30 -08:00
L. David Baron
2e0070401d Bug 91419 patch 9: Fix comments and debugging output referring to "special" frames. r=mats 2014-02-06 17:45:33 -08:00
L. David Baron
afbd9ffdb9 Bug 91419 patch 8: Miscellaneous function and variable name changes. r=mats 2014-02-06 17:45:32 -08:00
Jonathan Watt
52ac9ba40c Bug 946184 - Make sure that we reframe the nsIAnonymousContentCreator if any nsIAnonymousContentCreator::ContentInfo created content needs reframing. r=bz 2013-12-11 11:41:51 +00:00
Ehsan Akhgari
efc3e90cac Bug 922933 - Don't #include nsIDocument.h in nsIContent.h; r=jst 2013-10-02 07:40:07 -04:00
Jonathan Watt
9910708fc7 Bug 917386 - Make frame construction handle trees of nsIAnonymousContentCreator::ContentInfo objects, including support for associating CSS pseudo-elements with deeply nested anonymous elements. r=bz 2013-10-01 22:51:29 +01:00
Jonathan Watt
6390351f3f Bug 920154 - Rename nsIContent's SetNativeAnonymous method to SetIsNativeAnonymousRoot to be clear that it should only be called for the root native anonymous element. r=bz 2013-09-24 21:29:27 +01:00
Robert O'Callahan
d81ffcf627 Bug 918185. When Range.getBoundingClientRect/getClientRects needs a textframe for a node, create one if the textframe was optimized away. r=bz 2013-09-19 16:23:48 +12:00
Cameron McCormack
3dd9d16ec9 Bug 874507 - Make clip-path, filter, mask and opacity work on <marker> elements. r=longsonr 2013-09-16 15:06:29 +10:00
Ehsan Akhgari
45b9b9b617 Bug 906790 - Minimize layout/base #includes; r=roc 2013-08-19 18:55:18 -04:00
L. David Baron
bb2688431e Bug 896138 patch 4: Move restyle management code from nsCSSFrameConstructor to RestyleManager. r=heycam
This moves restyling management out of nsCSSFrameConstructor (thus
reducing its size), and keeps the restyling code closer together.

This is the first of two big chunks of code moved in this patch series.
A later patch in this series will move related code from nsFrameManager
into the same destination file.
2013-07-20 12:14:25 -07:00
L. David Baron
946fd9ba27 Bug 896138 patch 3: Remove forward declaration of struct that hasn't been in this class since changeset e0df6dfdaaca (Bug 479655 part 3). r=heycam 2013-07-20 12:14:24 -07:00
L. David Baron
b9eb754656 Bug 896138 patch 1: Move RestyleTracker and OverflowChangedTracker out of nested namespace mozilla::css (which shouldn't exist) into namespace mozilla. r=heycam 2013-07-20 12:14:24 -07:00
Blake Kaplan
d8846cdcec Bug 653881 - Rework XBL insertion points and clean up related code to more closely follow the Web Components model. Instead of maintaining a hashtable of insertion points in bindings (and removing insertions points from the tree) leave the insertion points in the tree as explicit placeholders and teach all other relevant code how to walk the explicit children of elements via two iterators (ExplicitChildIterator and FlattenedChildIterator). Note that this patch does not maintain 100% compatibility with the previous code: there are bug fixes and behavior changes included. For example, by having explicit insertion points in the bindings, it is now easier to handle dynamic changes to the bound element correctly (as well as, eventually, handling dynamic changes to the binding correctly). Patch originally by sicking. r=bzbarsky 2013-05-01 15:50:08 -07:00