Commit Graph

565 Commits

Author SHA1 Message Date
Robert O'Callahan
ac9319b5fc Bug 849996. Check the correct frame for transforms in PushAbsoluteContainingBlock --- it might not be the containing block itself. r=bzbarsky 2013-04-08 16:09:35 +12:00
Trevor Saunders
d660001c98 bug 856779 - remove nsFrameManager::Init() r=dholbert 2013-03-31 18:43:04 -04:00
Boris Zbarsky
9f9428ab37 Bug 852636. Remove unused argument of InitAndRestoreFrame. r=dholbert 2013-03-20 12:22:25 -04:00
Boris Zbarsky
8b6c4f9b85 Bug 852501 part 18. Make ConstructDocElementFrame return an nsIFrame*. r=dholbert 2013-03-19 21:47:53 -04:00
Boris Zbarsky
fd5af1f7c5 Bug 852501 part 17. Make ConstructRootFrame infallible. r=dholbert 2013-03-19 21:47:53 -04:00
Boris Zbarsky
4751859547 Bug 852501 part 16. Make ConstructFrame infallible. r=dholbert 2013-03-19 21:47:53 -04:00
Boris Zbarsky
e98a5ea109 Bug 852501 part 15. Make ConstructFramesFromItem infallible. r=dholbert 2013-03-19 21:47:52 -04:00
Boris Zbarsky
b348e777e7 Bug 852501 part 14. Make FrameFullConstructor implementations infallible. r=dholbert 2013-03-19 21:47:52 -04:00
Boris Zbarsky
432dba6d1e Bug 852501 part 12. Make ConstructBlock infallible. r=dholbert 2013-03-19 21:47:52 -04:00
Boris Zbarsky
1807a8bc67 Bug 852501 part 11. Make FlushAccumulatedBlock infallible. r=dholbert 2013-03-19 21:47:51 -04:00
Boris Zbarsky
ba384076ef Bug 852501 part 10. Make ProcessChildren infallible. r=dholbert 2013-03-19 21:47:51 -04:00
Boris Zbarsky
be3510a709 Bug 852501 part 9. Optimistically make ConstructFramesFromItemList infallible in the hope that this is the only thing that makes other things fallible. r=dholbert 2013-03-19 21:47:51 -04:00
Boris Zbarsky
64fe023b10 Bug 852501 part 8. Make WrapFramesInFirstLetterFrame infallible. r=dholbert 2013-03-19 21:47:50 -04:00
Boris Zbarsky
d8fcc43fbd Bug 852501 part 7. Make WrapFramesInFirstLineFrame and AppendFirstLineFrames infallible. r=dholbert 2013-03-19 21:47:50 -04:00
Boris Zbarsky
cebf482ab7 Bug 852501 part 6. Make ConstructTextFrame infallible. r=dholbert 2013-03-19 21:47:50 -04:00
Boris Zbarsky
6eb40ab2a7 Bug 852501 part 5. Make InitAndRestoreFrame infallible. r=dholbert 2013-03-19 21:47:50 -04:00
Boris Zbarsky
639eb6a8a4 Bug 852501 part 4. Make CreateContinuingFrame infallible. r=dholbert 2013-03-19 21:47:49 -04:00
Boris Zbarsky
7a826da52d Bug 852501 part 3. Make some callees of CreateContinuingFrame infallible. r=dholbert 2013-03-19 21:47:49 -04:00
Boris Zbarsky
3984eadd40 Bug 852501 part 1. Make CreatePlaceholderFrameFor infallible. r=dholbert 2013-03-19 21:47:48 -04:00
Matt Woodrow
077e43fa79 Bug 840480 r=roc 2013-02-20 13:13:01 +13:00
Cameron McCormack
f3895b919a Bug 655877 - Part 42: Construct new SVG text frames if the pref is set. r=bz 2013-02-11 17:22:18 +11:00
Matt Woodrow
ff3aaa9711 Bug 832611 - Use NotifyDestroyingFrame to remove frames from the OverflowChangedTracker. r=roc 2013-01-26 14:34:58 +13:00
Robert O'Callahan
d6703b400a Bug 830192. Integrate GetFixedContainingBlock into GetAbsoluteContainingBlock and ensure only elements which can be abs-pos containing blocks are turned into fixed-pos containing blocks when transformed. r=bzbarsky 2013-01-25 21:58:33 +13:00
Robert O'Callahan
769fb14d62 Backout 342c2b349402, bug 803192 2013-01-25 21:50:24 +13:00
Robert O'Callahan
b544816c1e Bug 830192. Integrate GetFixedContainingBlock into GetAbsoluteContainingBlock and ensure only elements which can be abs-pos containing blocks are turned into fixed-pos containing blocks when transformed. r=bzbarsky 2013-01-25 17:50:32 +13:00
Robert O'Callahan
76ba206ebb Backed out changeset e3ee71614172 (bug 830192) 2013-01-23 18:19:45 +13:00
Robert O'Callahan
2140da9c52 Bug 830192. Integrate GetFixedContainingBlock into GetAbsoluteContainingBlock and ensure only elements which can be abs-pos containing blocks are turned into fixed-pos containing blocks when transformed. r=bzbarsky 2013-01-23 17:06:12 +13:00
L. David Baron
94304bc9b0 Bug 588237, patch 4: Pull pushed floats back from the next-in-flow at the start of reflow. r=roc 2013-01-11 14:51:21 -08:00
Robert O'Callahan
41b2ea6955 Bug 827577. Be a lot more careful about saving and restoring frame constructor state for fixed-pos descendants of CSS-transformed elements. r=bzbarsky 2013-01-11 00:47:33 +13:00
L. David Baron
7096d1618d Back out bug 588237, patches 2 through 5. 2013-01-10 22:20:16 -08:00
L. David Baron
4aef4a7506 Bug 588237, patch 4: Pull pushed floats back from the next-in-flow at the start of reflow. r=roc 2013-01-10 21:14:51 -08:00
Nicholas Cameron
6edbdb7f5a Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz 2012-12-12 10:12:43 +13:00
Matt Woodrow
2f8ab51496 Bug 815666 - Use OverflowUpdateTracker to avoid calling UpdateOverflow on the same frame multiple times. r=roc 2012-12-10 15:33:04 +13:00
L. David Baron
6a9cc15e4f Bug 804970, patch 4: Refactor part of RebuildAllStyleData into a helper function (slightly reordering it), so that we can share that part. r=bzbarsky 2012-10-26 19:04:20 +02:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Cameron McCormack
c242bf70e1 Bug 655877 - Part 16: Treat all values of display other than 'none' as 'inline' in SVG text frames. r=roc 2012-08-02 21:38:51 +10:00
Cameron McCormack
28949e2f49 Bug 655877 - Part 4: Add FCDATA_ flag for SVG text. r=roc 2012-08-02 21:38:46 +10:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Jonathan Watt
ed61205e71 Bug 769742 - Account for nsSVGOuterSVGFrames' border/padding offset by giving nsSVGOuterSVGFrame an anonymous child to wrap its real children. r=roc. 2012-07-09 02:04:56 +01:00
Daniel Holbert
917cd2a0cb Bug 666041 patch 2: Add "-moz-flex" & "-moz-inline-flex" values for "display" property. r=bz 2012-06-26 15:11:38 -07:00
Ehsan Akhgari
7c4ccc5734 Bug 157681 - Part 2: Optimize positioned frame offset changes by moving the frame as opposed to reflowing it in case we know that the size of the frame will not change; r=dbaron
This patch adds a change hint to signal that one of the offsets on a
frame has been changed.  When processing the hint, we do one of the
following things based on the position property of the frame.

* For static frames, we ignore the offset changes completely, as they
  will not change the layout.
* For relative positioned frames, this patch refactors the
  nsHTMLReflowState::ComputeRelativeOffsets function so that it can be
  used from other callers, and it uses that to compute the new relative
  offsets, and uses the offsets computed previously to compute the new
  position of the frame.
* For absolute positioned frames, we set up a fake parent reflow state
  object, and then we create a new reflow state object for the frame in
  question.  This setup is similar to what nsFrame::BoxReflow does.
  Once we have the new reflow state object, we use it to compute the
  absolute offsets, and then we use the computed offsets to set the new
  position of the frame.  The offset computation is similar to what
  nsAbsoluteContainingBlock::ReflowAbsoluteFrame does.  In some cases
  where it is possible for the dimensions of the frame to change based
  on the offset changes, we fall back to a full reflow.
2012-06-06 00:53:48 -04:00
Neil Deakin
73742603fa Bug 757485, remove nsIXBLService and use nsXBLService directly, r=bz 2012-05-23 14:46:04 -04:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Boris Zbarsky
2e235601df Bug 751012. When saving frame state, make sure to walk through placeholders so we save the state of out-of-flow descendants properly. Also make sure to walk the continuations and special siblings of the root frame that we're saving state for. r=roc 2012-05-09 21:27:47 -04:00
Daniel Holbert
4059fbb586 Bug 740067: Make nsCSSFrameConstructor::CreateNeededTablePseudos return void. r=bz 2012-03-28 12:43:15 -07:00
Daniel Holbert
d332953b4e Bug 738007: Minor code cleanup in nsCSSFrameConstructor::FlushAccumulatedBlock. r=bz 2012-03-22 10:31:19 -07:00
Boris Zbarsky
b0930fe26c Bug 537624. Don't set up undisplayed entries until we're sure we're creating frames from the relevant FrameConstructionItemList. r=roc 2012-03-19 18:22:02 -04:00
Boris Zbarsky
47aee00f28 Bug 728516. Refactor frame construction for things that want to wrap kids in a block. r=roc 2012-02-21 18:01:40 -05:00
Jonathan Watt
abde690b9d Bug 714839 - Make nsCSSFrameConstructor inherit nsFrameManager. r=bz. 2012-02-02 10:06:46 +00:00
Jeff Walden
edbb60f3de Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron 2011-12-16 14:42:07 -05:00