Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Backout bug 157681 in order to fix bug 775350 on Beta; a=lsblakk

  • Loading branch information...
commit d9198874e0b4884d09e8b9a066d4117383ebcd98 1 parent 589fce8
@ehsan ehsan authored
Showing with 61 additions and 2,756 deletions.
  1. +1 −152 layout/base/nsCSSFrameConstructor.cpp
  2. +0 −5 layout/base/nsCSSFrameConstructor.h
  3. +1 −31 layout/base/nsChangeHint.h
  4. +4 −1 layout/base/nsFrameManager.cpp
  5. +29 −36 layout/generic/nsHTMLReflowState.cpp
  6. +5 −7 layout/generic/nsHTMLReflowState.h
  7. +0 −10 layout/reftests/position-dynamic-changes/handleprop.js
  8. +0 −62 layout/reftests/position-dynamic-changes/horizontal/animate.js
  9. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftA-widthA-rightN.html
  10. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftA-widthN-rightA.html
  11. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftA-widthN-rightN.html
  12. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightA-2.html
  13. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightA.html
  14. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightN-2.html
  15. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightN.html
  16. +0 −19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthN-rightA.html
  17. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftA-widthA-rightN-ref.html
  18. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftA-widthA-rightN.html
  19. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightA-ref.html
  20. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightA.html
  21. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightN-ref.html
  22. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightN.html
  23. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA-2-ref.html
  24. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA-2.html
  25. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA-ref.html
  26. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA.html
  27. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN-2-ref.html
  28. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN-2.html
  29. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN-ref.html
  30. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN.html
  31. +0 −15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthN-rightA-ref.html
  32. +0 −19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthN-rightA.html
  33. +0 −18 layout/reftests/position-dynamic-changes/horizontal/reftest.list
  34. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_border_abspos.list
  35. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_border_parent.list
  36. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_margin_abspos.list
  37. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_margin_parent.list
  38. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_padding_abspos.list
  39. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_padding_parent.list
  40. +0 −26 layout/reftests/position-dynamic-changes/horizontal/reftest_plain.list
  41. +0 −20 layout/reftests/position-dynamic-changes/horizontal/style.css
  42. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthA-rightN-ref.html
  43. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthA-rightN.html
  44. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightA-ref.html
  45. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightA.html
  46. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightN-ref.html
  47. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightN.html
  48. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA-2-ref.html
  49. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA-2.html
  50. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA-ref.html
  51. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA.html
  52. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN-2-ref.html
  53. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN-2.html
  54. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN-ref.html
  55. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN.html
  56. +0 −15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthN-rightA-ref.html
  57. +0 −19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthN-rightA.html
  58. +0 −10 layout/reftests/position-dynamic-changes/max-width-ref.html
  59. +0 −17 layout/reftests/position-dynamic-changes/max-width.html
  60. +0 −13 layout/reftests/position-dynamic-changes/min-width-ref.html
  61. +0 −20 layout/reftests/position-dynamic-changes/min-width.html
  62. +0 −21 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA-ref.html
  63. +0 −38 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA.html
  64. +0 −21 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN-ref.html
  65. +0 −38 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN.html
  66. +0 −18 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest.list
  67. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_border_abspos.list
  68. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_border_parent.list
  69. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_margin_abspos.list
  70. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_margin_parent.list
  71. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_padding_abspos.list
  72. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_padding_parent.list
  73. +0 −4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_plain.list
  74. +0 −22 layout/reftests/position-dynamic-changes/mixed-abspos-root/style.css
  75. +0 −23 layout/reftests/position-dynamic-changes/mixed/mixed-dimentionA-ref.html
  76. +0 −40 layout/reftests/position-dynamic-changes/mixed/mixed-dimentionA.html
  77. +0 −23 layout/reftests/position-dynamic-changes/mixed/mixed-dimentionN-ref.html
  78. +0 −40 layout/reftests/position-dynamic-changes/mixed/mixed-dimentionN.html
  79. +0 −18 layout/reftests/position-dynamic-changes/mixed/reftest.list
  80. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_border_abspos.list
  81. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_border_parent.list
  82. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_margin_abspos.list
  83. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_margin_parent.list
  84. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_padding_abspos.list
  85. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_padding_parent.list
  86. +0 −4 layout/reftests/position-dynamic-changes/mixed/reftest_plain.list
  87. +0 −22 layout/reftests/position-dynamic-changes/mixed/style.css
  88. +0 −15 layout/reftests/position-dynamic-changes/multiple-changes-ref.html
  89. +0 −23 layout/reftests/position-dynamic-changes/multiple-changes.html
  90. +0 −10 layout/reftests/position-dynamic-changes/reftest.list
  91. +0 −32 layout/reftests/position-dynamic-changes/relative/animate.js
  92. +0 −12 layout/reftests/position-dynamic-changes/relative/move-right-bottom-ref.html
  93. +0 −13 layout/reftests/position-dynamic-changes/relative/move-right-bottom-table-ref.html
  94. +0 −17 layout/reftests/position-dynamic-changes/relative/move-right-bottom-table.html
  95. +0 −16 layout/reftests/position-dynamic-changes/relative/move-right-bottom.html
  96. +0 −12 layout/reftests/position-dynamic-changes/relative/move-top-left-ref.html
  97. +0 −13 layout/reftests/position-dynamic-changes/relative/move-top-left-table-ref.html
  98. +0 −17 layout/reftests/position-dynamic-changes/relative/move-top-left-table.html
  99. +0 −16 layout/reftests/position-dynamic-changes/relative/move-top-left.html
  100. +0 −2  layout/reftests/position-dynamic-changes/relative/reftest.list
  101. +0 −9 layout/reftests/position-dynamic-changes/relative/style.css
  102. +0 −24 layout/reftests/position-dynamic-changes/shrink-wrap-ref.html
  103. +0 −17 layout/reftests/position-dynamic-changes/shrink-wrap.html
  104. +0 −61 layout/reftests/position-dynamic-changes/vertical/animate.js
  105. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topA-heightA-bottomN.html
  106. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topA-heightN-bottomA.html
  107. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topA-heightN-bottomN.html
  108. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topN-heightA-bottomA-2.html
  109. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topN-heightA-bottomA.html
  110. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topN-heightA-bottomN-2.html
  111. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topN-heightA-bottomN.html
  112. +0 −19 layout/reftests/position-dynamic-changes/vertical/fromauto-topN-heightN-bottomA.html
  113. +0 −18 layout/reftests/position-dynamic-changes/vertical/reftest.list
  114. +0 −12 layout/reftests/position-dynamic-changes/vertical/reftest.listbackup
  115. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_border_abspos.list
  116. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_border_parent.list
  117. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_margin_abspos.list
  118. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_margin_parent.list
  119. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_padding_abspos.list
  120. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_padding_parent.list
  121. +0 −20 layout/reftests/position-dynamic-changes/vertical/reftest_plain.list
  122. +0 −19 layout/reftests/position-dynamic-changes/vertical/style.css
  123. +0 −15 layout/reftests/position-dynamic-changes/vertical/toauto-topA-heightA-bottomN-ref.html
  124. +0 −19 layout/reftests/position-dynamic-changes/vertical/toauto-topA-heightA-bottomN.html
  125. +0 −15 layout/reftests/position-dynamic-changes/vertical/toauto-topA-heightN-bottomA-ref.html
  126. +0 −19 layout/reftests/position-dynamic-changes/vertical/toauto-topA-heightN-bottomA.html
  127. +0 −15 layout/reftests/position-dynamic-changes/vertical/toauto-topA-heightN-bottomN-ref.html
  128. +0 −19 layout/reftests/position-dynamic-changes/vertical/toauto-topA-heightN-bottomN.html
  129. +0 −15 layout/reftests/position-dynamic-changes/vertical/toauto-topN-heightA-bottomA-ref.html
  130. +0 −19 layout/reftests/position-dynamic-changes/vertical/toauto-topN-heightA-bottomA.html
  131. +0 −15 layout/reftests/position-dynamic-changes/vertical/toauto-topN-heightA-bottomN-ref.html
  132. +0 −19 layout/reftests/position-dynamic-changes/vertical/toauto-topN-heightA-bottomN.html
  133. +0 −15 layout/reftests/position-dynamic-changes/vertical/toauto-topN-heightN-bottomA-ref.html
  134. +0 −19 layout/reftests/position-dynamic-changes/vertical/toauto-topN-heightN-bottomA.html
  135. +0 −15 layout/reftests/position-dynamic-changes/vertical/topA-heightA-bottomN-ref.html
  136. +0 −19 layout/reftests/position-dynamic-changes/vertical/topA-heightA-bottomN.html
  137. +0 −15 layout/reftests/position-dynamic-changes/vertical/topA-heightN-bottomA-ref.html
  138. +0 −19 layout/reftests/position-dynamic-changes/vertical/topA-heightN-bottomA.html
  139. +0 −15 layout/reftests/position-dynamic-changes/vertical/topA-heightN-bottomN-ref.html
  140. +0 −19 layout/reftests/position-dynamic-changes/vertical/topA-heightN-bottomN.html
  141. +0 −15 layout/reftests/position-dynamic-changes/vertical/topN-heightA-bottomA-ref.html
  142. +0 −19 layout/reftests/position-dynamic-changes/vertical/topN-heightA-bottomA.html
  143. +0 −15 layout/reftests/position-dynamic-changes/vertical/topN-heightA-bottomN-ref.html
  144. +0 −19 layout/reftests/position-dynamic-changes/vertical/topN-heightA-bottomN.html
  145. +0 −15 layout/reftests/position-dynamic-changes/vertical/topN-heightN-bottomA-ref.html
  146. +0 −19 layout/reftests/position-dynamic-changes/vertical/topN-heightN-bottomA.html
  147. +0 −4 layout/reftests/reftest.list
  148. +1 −9 layout/style/nsStyleContext.cpp
  149. +20 −25 layout/style/nsStyleStruct.cpp
View
153 layout/base/nsCSSFrameConstructor.cpp
@@ -85,8 +85,6 @@
#include "mozilla/dom/Element.h"
#include "FrameLayerBuilder.h"
#include "nsAutoLayoutPhase.h"
-#include "nsCSSRenderingBorders.h"
-#include "nsRenderingContext.h"
#include "nsStyleStructInlines.h"
#ifdef MOZ_XUL
@@ -8045,7 +8043,6 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
while (0 <= --index) {
nsIFrame* frame;
nsIContent* content;
- bool didReflowThisFrame = false;
nsChangeHint hint;
aChangeList.ChangeAt(index, frame, content, hint);
@@ -8098,7 +8095,6 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
if (hint & nsChangeHint_NeedReflow) {
StyleChangeReflow(frame, hint);
didReflow = true;
- didReflowThisFrame = true;
}
if (hint & (nsChangeHint_RepaintFrame | nsChangeHint_SyncFrameView |
nsChangeHint_UpdateOpacityLayer | nsChangeHint_UpdateTransformLayer |
@@ -8106,17 +8102,10 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
ApplyRenderingChangeToTree(presContext, frame, hint);
didInvalidate = true;
}
- if ((hint & nsChangeHint_RecomputePosition) && !didReflowThisFrame) {
- // It is possible for this to fall back to a reflow
- if (!RecomputePosition(frame)) {
- didReflow = true;
- didReflowThisFrame = true;
- }
- }
NS_ASSERTION(!(hint & nsChangeHint_ChildrenOnlyTransform) ||
(hint & nsChangeHint_UpdateOverflow),
"nsChangeHint_UpdateOverflow should be passed too");
- if ((hint & nsChangeHint_UpdateOverflow) && !didReflowThisFrame) {
+ if ((hint & nsChangeHint_UpdateOverflow) && !didReflow) {
if (hint & nsChangeHint_ChildrenOnlyTransform) {
// When we process restyle events starting from the root of the frame
// tree, we start at a ViewportFrame and traverse down the tree from
@@ -12420,143 +12409,3 @@ Iterator::DeleteItemsTo(const Iterator& aEnd)
delete item;
} while (*this != aEnd);
}
-
-bool
-nsCSSFrameConstructor::RecomputePosition(nsIFrame* aFrame)
-{
- // Don't process position changes on table frames, since we already handle
- // the dynamic position change on the outer table frame, and the reflow-based
- // fallback code path also ignores positions on inner table frames.
- if (aFrame->GetType() == nsGkAtoms::tableFrame) {
- return true;
- }
-
- // Don't process position changes on frames which have views or the ones which
- // have a view somewhere in their descendants, because the corresponding view
- // needs to be repositioned properly as well.
- if (aFrame->HasView() ||
- (aFrame->GetStateBits() & NS_FRAME_HAS_CHILD_WITH_VIEW)) {
- StyleChangeReflow(aFrame, nsChangeHint_NeedReflow);
- return false;
- }
-
- const nsStyleDisplay* display = aFrame->GetStyleDisplay();
- // Changes to the offsets of a non-positioned element can safely be ignored.
- if (display->mPosition == NS_STYLE_POSITION_STATIC) {
- return true;
- }
-
- // For relative positioning, we can simply update the frame rect
- if (display->mPosition == NS_STYLE_POSITION_RELATIVE) {
- nsIFrame* cb = aFrame->GetContainingBlock();
- const nsSize size = cb->GetSize();
- const nsPoint oldOffsets = aFrame->GetRelativeOffset();
- nsMargin newOffsets;
-
- // Invalidate the old rect
- aFrame->InvalidateOverflowRect();
-
- // Move the frame
- nsHTMLReflowState::ComputeRelativeOffsets(
- cb->GetStyleVisibility()->mDirection,
- aFrame, size.width, size.height, newOffsets);
- NS_ASSERTION(newOffsets.left == -newOffsets.right &&
- newOffsets.top == -newOffsets.bottom,
- "ComputeRelativeOffsets should return valid results");
- aFrame->SetPosition(aFrame->GetPosition() - oldOffsets +
- nsPoint(newOffsets.left, newOffsets.top));
-
- // Invalidate the new rect
- aFrame->InvalidateFrameSubtree();
-
- return true;
- }
-
- // For absolute positioning, the width can potentially change if width is
- // auto and either of left or right are not. The height can also potentially
- // change if height is auto and either of top or bottom are not. In these
- // cases we fall back to a reflow, and in all other cases, we attempt to
- // move the frame here.
- // Note that it is possible for the dimensions to not change in the above
- // cases, so we should be a little smarter here and only fall back to reflow
- // when the dimensions will really change (bug 745485).
- const nsStylePosition* position = aFrame->GetStylePosition();
- if (position->mWidth.GetUnit() != eStyleUnit_Auto &&
- position->mHeight.GetUnit() != eStyleUnit_Auto) {
- // For the absolute positioning case, set up a fake HTML reflow state for
- // the frame, and then get the offsets from it.
- nsRefPtr<nsRenderingContext> rc = aFrame->PresContext()->GetPresShell()->
- GetReferenceRenderingContext();
-
- // Construct a bogus parent reflow state so that there's a usable
- // containing block reflow state.
- nsIFrame *parentFrame = aFrame->GetParent();
- nsSize parentSize = parentFrame->GetSize();
-
- nsFrameState savedState = parentFrame->GetStateBits();
- nsHTMLReflowState parentReflowState(aFrame->PresContext(), parentFrame,
- rc, parentSize);
- parentFrame->RemoveStateBits(~nsFrameState(0));
- parentFrame->AddStateBits(savedState);
-
- NS_WARN_IF_FALSE(parentSize.width != NS_INTRINSICSIZE &&
- parentSize.height != NS_INTRINSICSIZE,
- "parentSize should be valid");
- parentReflowState.SetComputedWidth(NS_MAX(parentSize.width, 0));
- parentReflowState.SetComputedHeight(NS_MAX(parentSize.height, 0));
- parentReflowState.mComputedMargin.SizeTo(0, 0, 0, 0);
- parentSize.height = NS_AUTOHEIGHT;
-
- parentReflowState.mComputedPadding = parentFrame->GetUsedPadding();
- parentReflowState.mComputedBorderPadding =
- parentFrame->GetUsedBorderAndPadding();
-
- nsSize availSize(parentSize.width, NS_INTRINSICSIZE);
-
- nsSize size = aFrame->GetSize();
- nsSize cbSize = aFrame->GetContainingBlock()->GetSize();
- const nsMargin& parentBorder =
- parentReflowState.mStyleBorder->GetComputedBorder();
- cbSize -= nsSize(parentBorder.LeftRight(), parentBorder.TopBottom());
- nsHTMLReflowState reflowState(aFrame->PresContext(), parentReflowState,
- aFrame, availSize, cbSize.width,
- cbSize.height);
-
- // If we're solving for 'left' or 'top', then compute it here, in order to
- // match the reflow code path.
- if (NS_AUTOOFFSET == reflowState.mComputedOffsets.left) {
- reflowState.mComputedOffsets.left = cbSize.width -
- reflowState.mComputedOffsets.right -
- reflowState.mComputedMargin.right -
- size.width -
- reflowState.mComputedMargin.left;
- }
-
- if (NS_AUTOOFFSET == reflowState.mComputedOffsets.top) {
- reflowState.mComputedOffsets.top = cbSize.height -
- reflowState.mComputedOffsets.bottom -
- reflowState.mComputedMargin.bottom -
- size.height -
- reflowState.mComputedMargin.top;
- }
-
- // Invalidate the old rect
- aFrame->InvalidateFrameSubtree();
-
- // Move the frame
- nsPoint pos(parentBorder.left + reflowState.mComputedOffsets.left +
- reflowState.mComputedMargin.left,
- parentBorder.top + reflowState.mComputedOffsets.top +
- reflowState.mComputedMargin.top);
- aFrame->SetPosition(pos);
-
- // Invalidate the new rect
- aFrame->InvalidateFrameSubtree();
-
- return true;
- }
-
- // Fall back to a reflow
- StyleChangeReflow(aFrame, nsChangeHint_NeedReflow);
- return false;
-}
View
5 layout/base/nsCSSFrameConstructor.h
@@ -1642,11 +1642,6 @@ class nsCSSFrameConstructor : public nsFrameManager
nsresult StyleChangeReflow(nsIFrame* aFrame, nsChangeHint aHint);
- // Returns true if this function managed to successfully move a frame, and
- // false if it could not process the position change, and a reflow should
- // be performed instead.
- bool RecomputePosition(nsIFrame* aFrame);
-
//----------------------------------------
// Methods support :first-letter style
View
32 layout/base/nsChangeHint.h
@@ -90,42 +90,12 @@ enum nsChangeHint {
nsChangeHint_ChildrenOnlyTransform = 0x1000,
/**
- * The frame's offsets have changed, while its dimensions might have
- * changed as well. This hint is used for positioned frames if their
- * offset changes. If we decide that the dimensions are likely to
- * change, this will trigger a reflow.
- *
- * Note that this should probably be used in combination with
- * nsChangeHint_UpdateOverflow in order to get the overflow areas of
- * the ancestors updated as well.
- */
- nsChangeHint_RecomputePosition = 0x2000,
-
- /**
* Behaves like ReconstructFrame, but only if the frame has descendants
* that are absolutely or fixed position. Use this hint when a style change
* has changed whether the frame is a container for fixed-pos or abs-pos
* elements, but reframing is otherwise not needed.
*/
- nsChangeHint_AddOrRemoveTransform = 0x4000,
-
- /**
- * We have an optimization when processing change hints which prevents
- * us from visiting the descendants of a node when a hint on that node
- * is being processed. This optimization does not apply in some of the
- * cases where applying a hint to an element does not necessarily result
- * in the same hint being handled on the descendants.
- *
- * If you're adding such a hint, you should add your hint to this list.
- */
- nsChangeHint_NonInherited_Hints =
- nsChangeHint_UpdateTransformLayer |
- nsChangeHint_UpdateEffects |
- nsChangeHint_UpdateOpacityLayer |
- nsChangeHint_UpdateOverflow |
- nsChangeHint_ChildrenOnlyTransform |
- nsChangeHint_RecomputePosition |
- nsChangeHint_AddOrRemoveTransform
+ nsChangeHint_AddOrRemoveTransform = 0x2000
};
// Redefine these operators to return nothing. This will catch any use
View
5 layout/base/nsFrameManager.cpp
@@ -1040,7 +1040,10 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext,
// We need to generate a new change list entry for every frame whose style
// comparision returns one of these hints. These hints don't automatically
// update all their descendant frames.
- aMinChange = NS_SubtractHint(aMinChange, nsChangeHint_NonInherited_Hints);
+ aMinChange = NS_SubtractHint(aMinChange, nsChangeHint_UpdateTransformLayer);
+ aMinChange = NS_SubtractHint(aMinChange, nsChangeHint_UpdateOpacityLayer);
+ aMinChange = NS_SubtractHint(aMinChange, nsChangeHint_UpdateOverflow);
+ aMinChange = NS_SubtractHint(aMinChange, nsChangeHint_UpdateEffects);
// It would be nice if we could make stronger assertions here; they
// would let us simplify the ?: expressions below setting |content|
View
65 layout/generic/nsHTMLReflowState.cpp
@@ -725,25 +725,23 @@ nsHTMLReflowState::InitFrameType(nsIAtom* aFrameType)
mFrameType = frameType;
}
-/* static */ void
-nsHTMLReflowState::ComputeRelativeOffsets(uint8_t aCBDirection,
- nsIFrame* aFrame,
+void
+nsHTMLReflowState::ComputeRelativeOffsets(const nsHTMLReflowState* cbrs,
nscoord aContainingBlockWidth,
nscoord aContainingBlockHeight,
- nsMargin& aComputedOffsets)
+ nsPresContext* aPresContext)
{
- const nsStylePosition* position = aFrame->GetStylePosition();
-
// Compute the 'left' and 'right' values. 'Left' moves the boxes to the right,
// and 'right' moves the boxes to the left. The computed values are always:
// left=-right
- bool leftIsAuto = eStyleUnit_Auto == position->mOffset.GetLeftUnit();
- bool rightIsAuto = eStyleUnit_Auto == position->mOffset.GetRightUnit();
+ bool leftIsAuto = eStyleUnit_Auto == mStylePosition->mOffset.GetLeftUnit();
+ bool rightIsAuto = eStyleUnit_Auto == mStylePosition->mOffset.GetRightUnit();
// If neither 'left' not 'right' are auto, then we're over-constrained and
// we ignore one of them
if (!leftIsAuto && !rightIsAuto) {
- if (aCBDirection == NS_STYLE_DIRECTION_RTL) {
+ if (mCBReflowState &&
+ NS_STYLE_DIRECTION_RTL == mCBReflowState->mStyleVisibility->mDirection) {
leftIsAuto = true;
} else {
rightIsAuto = true;
@@ -753,42 +751,42 @@ nsHTMLReflowState::ComputeRelativeOffsets(uint8_t aCBDirection,
if (leftIsAuto) {
if (rightIsAuto) {
// If both are 'auto' (their initial values), the computed values are 0
- aComputedOffsets.left = aComputedOffsets.right = 0;
+ mComputedOffsets.left = mComputedOffsets.right = 0;
} else {
// 'Right' isn't 'auto' so compute its value
- aComputedOffsets.right = nsLayoutUtils::
+ mComputedOffsets.right = nsLayoutUtils::
ComputeWidthDependentValue(aContainingBlockWidth,
- position->mOffset.GetRight());
+ mStylePosition->mOffset.GetRight());
// Computed value for 'left' is minus the value of 'right'
- aComputedOffsets.left = -aComputedOffsets.right;
+ mComputedOffsets.left = -mComputedOffsets.right;
}
} else {
NS_ASSERTION(rightIsAuto, "unexpected specified constraint");
// 'Left' isn't 'auto' so compute its value
- aComputedOffsets.left = nsLayoutUtils::
+ mComputedOffsets.left = nsLayoutUtils::
ComputeWidthDependentValue(aContainingBlockWidth,
- position->mOffset.GetLeft());
+ mStylePosition->mOffset.GetLeft());
// Computed value for 'right' is minus the value of 'left'
- aComputedOffsets.right = -aComputedOffsets.left;
+ mComputedOffsets.right = -mComputedOffsets.left;
}
// Compute the 'top' and 'bottom' values. The 'top' and 'bottom' properties
// move relatively positioned elements up and down. They also must be each
// other's negative
- bool topIsAuto = eStyleUnit_Auto == position->mOffset.GetTopUnit();
- bool bottomIsAuto = eStyleUnit_Auto == position->mOffset.GetBottomUnit();
+ bool topIsAuto = eStyleUnit_Auto == mStylePosition->mOffset.GetTopUnit();
+ bool bottomIsAuto = eStyleUnit_Auto == mStylePosition->mOffset.GetBottomUnit();
// Check for percentage based values and a containing block height that
// depends on the content height. Treat them like 'auto'
if (NS_AUTOHEIGHT == aContainingBlockHeight) {
- if (position->OffsetHasPercent(NS_SIDE_TOP)) {
+ if (mStylePosition->OffsetHasPercent(NS_SIDE_TOP)) {
topIsAuto = true;
}
- if (position->OffsetHasPercent(NS_SIDE_BOTTOM)) {
+ if (mStylePosition->OffsetHasPercent(NS_SIDE_BOTTOM)) {
bottomIsAuto = true;
}
}
@@ -801,38 +799,38 @@ nsHTMLReflowState::ComputeRelativeOffsets(uint8_t aCBDirection,
if (topIsAuto) {
if (bottomIsAuto) {
// If both are 'auto' (their initial values), the computed values are 0
- aComputedOffsets.top = aComputedOffsets.bottom = 0;
+ mComputedOffsets.top = mComputedOffsets.bottom = 0;
} else {
// 'Bottom' isn't 'auto' so compute its value
- aComputedOffsets.bottom = nsLayoutUtils::
+ mComputedOffsets.bottom = nsLayoutUtils::
ComputeHeightDependentValue(aContainingBlockHeight,
- position->mOffset.GetBottom());
+ mStylePosition->mOffset.GetBottom());
// Computed value for 'top' is minus the value of 'bottom'
- aComputedOffsets.top = -aComputedOffsets.bottom;
+ mComputedOffsets.top = -mComputedOffsets.bottom;
}
} else {
NS_ASSERTION(bottomIsAuto, "unexpected specified constraint");
// 'Top' isn't 'auto' so compute its value
- aComputedOffsets.top = nsLayoutUtils::
+ mComputedOffsets.top = nsLayoutUtils::
ComputeHeightDependentValue(aContainingBlockHeight,
- position->mOffset.GetTop());
+ mStylePosition->mOffset.GetTop());
// Computed value for 'bottom' is minus the value of 'top'
- aComputedOffsets.bottom = -aComputedOffsets.top;
+ mComputedOffsets.bottom = -mComputedOffsets.top;
}
// Store the offset
- FrameProperties props = aFrame->Properties();
+ FrameProperties props(aPresContext->PropertyTable(), frame);
nsPoint* offsets = static_cast<nsPoint*>
(props.Get(nsIFrame::ComputedOffsetProperty()));
if (offsets) {
- offsets->MoveTo(aComputedOffsets.left, aComputedOffsets.top);
+ offsets->MoveTo(mComputedOffsets.left, mComputedOffsets.top);
} else {
props.Set(nsIFrame::ComputedOffsetProperty(),
- new nsPoint(aComputedOffsets.left, aComputedOffsets.top));
+ new nsPoint(mComputedOffsets.left, mComputedOffsets.top));
}
}
@@ -1916,12 +1914,7 @@ nsHTMLReflowState::InitConstraints(nsPresContext* aPresContext,
// the correct containing block width and height here, which is why we need
// to do it after all the quirks-n-such above.
if (mStyleDisplay->IsRelativelyPositioned(frame)) {
- uint8_t direction = NS_STYLE_DIRECTION_LTR;
- if (cbrs && NS_STYLE_DIRECTION_RTL == cbrs->mStyleVisibility->mDirection) {
- direction = NS_STYLE_DIRECTION_RTL;
- }
- ComputeRelativeOffsets(direction, frame, aContainingBlockWidth,
- aContainingBlockHeight, mComputedOffsets);
+ ComputeRelativeOffsets(cbrs, aContainingBlockWidth, aContainingBlockHeight, aPresContext);
} else {
// Initialize offsets to 0
mComputedOffsets.SizeTo(0, 0, 0, 0);
View
12 layout/generic/nsHTMLReflowState.h
@@ -481,13 +481,6 @@ struct nsHTMLReflowState : public nsCSSOffsetState {
return mDiscoveredClearance && *mDiscoveredClearance;
}
- // Compute the offsets for a relative position element
- static void ComputeRelativeOffsets(uint8_t aCBDirection,
- nsIFrame* aFrame,
- nscoord aContainingBlockWidth,
- nscoord aContainingBlockHeight,
- nsMargin& aComputedOffsets);
-
#ifdef DEBUG
// Reflow trace methods. Defined in nsFrame.cpp so they have access
// to the display-reflow infrastructure.
@@ -542,6 +535,11 @@ struct nsHTMLReflowState : public nsCSSOffsetState {
nscoord aContainingBlockHeight,
nsIAtom* aFrameType);
+ void ComputeRelativeOffsets(const nsHTMLReflowState* cbrs,
+ nscoord aContainingBlockWidth,
+ nscoord aContainingBlockHeight,
+ nsPresContext* aPresContext);
+
// Calculates the computed values for the 'min-Width', 'max-Width',
// 'min-Height', and 'max-Height' properties, and stores them in the assorted
// data members
View
10 layout/reftests/position-dynamic-changes/handleprop.js
@@ -1,10 +0,0 @@
-// Add the correct border/margin/padding style
-if (window.location.search.length > 0) {
- var params = window.location.search.substr(1).split("_");
- if (params[0] == "border") {
- params[0] = "border-width";
- }
- document.write("<style>");
- document.write((params[1] == "parent") ? "#parent" : "#child");
- document.write("{ " + params[0] + ": 1px 2px 3px 4px; }</style>");
-}
View
62 layout/reftests/position-dynamic-changes/horizontal/animate.js
@@ -1,62 +0,0 @@
-var currentOffset = null;
-var maxOffset = null;
-var property = "left";
-
-var rfa = null;
-if (window.requestAnimationFrame) {
- rfa = requestAnimationFrame;
-} else if (window.mozRequestAnimationFrame) {
- rfa = mozRequestAnimationFrame;
-} else if (window.webkitRequestAnimationFrame) {
- rfa = webkitRequestAnimationFrame;
-} else if (window.msRequestAnimationFrame) {
- rfa = msRequestAnimationFrame;
-} else if (window.oRequestAnimationFrame) {
- rfa = oRequestAnimationFrame;
-}
-
-function animate(from, to, prop) {
- currentOffset = from;
- maxOffset = to;
- if (prop) {
- property = prop;
- }
- rfa(animateStep);
-}
-
-function animateStep() {
- if (currentOffset <= maxOffset) {
- document.getElementById("child").style[property] = currentOffset + "px";
- currentOffset += 10;
- rfa(animateStep);
- } else {
- document.documentElement.removeAttribute("class");
- }
-}
-
-function toAuto(prop) {
- if (prop) {
- property = prop;
- }
- rfa(setToAuto);
-}
-
-function setToAuto() {
- document.getElementById("child").style[property] = "auto";
- document.documentElement.removeAttribute("class");
-}
-
-function fromAuto(to, prop) {
- maxOffset = to;
- if (prop) {
- property = prop;
- }
- rfa(setFromAuto);
-}
-
-function setFromAuto() {
- document.getElementById("child").style[property] = maxOffset + "px";
- document.documentElement.removeAttribute("class");
-}
-
-
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftA-widthA-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(200, "right");
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftA-widthN-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(200, "width");
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftA-widthN-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(200, "right");
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightA-2.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(360);
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(200);
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightN-2.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(340);
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthA-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(200);
- </script>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/fromauto-leftN-widthN-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- fromAuto(200);
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftA-widthA-rightN-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftA-widthA-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 200, "right");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightA-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 200, "width");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightN-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px; right: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftA-widthN-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px; right: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 200, "right");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA-2-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 360px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA-2.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(200, 360);
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 200);
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN-2-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 340px; right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN-2.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 100px; right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 340);
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 200px; right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthA-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 100px; right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 200);
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/leftN-widthN-rightA-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px; left: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/leftN-widthN-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px; left: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- animate(100, 200);
- </script>
- </body>
-</html>
View
18 layout/reftests/position-dynamic-changes/horizontal/reftest.list
@@ -1,18 +0,0 @@
-# This directory includes 7 different permutations of the same tests.
-# reftest_plain.list is the manifest file for tests without any border, margin
-# or padding applied to either the abs-pos element or the parent.
-# reftest_{prop}_{element}.list files are the manifest files for tests with the
-# CSS property {prop} applied to {element}. These files use the query string
-# on the test file and the reference file to ask the code in ../handleprop.js add
-# the corresponding CSS style.
-
-# Any changes to the contents of the following files needs to be reflected on
-# all of them.
-
-include reftest_plain.list
-include reftest_border_abspos.list
-include reftest_border_parent.list
-include reftest_margin_abspos.list
-include reftest_margin_parent.list
-include reftest_padding_abspos.list
-include reftest_padding_parent.list
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_border_abspos.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html?border_abspos leftN-widthA-rightA-ref.html?border_abspos
-== leftN-widthA-rightA-2.html?border_abspos leftN-widthA-rightA-2-ref.html?border_abspos
-== leftN-widthA-rightN.html?border_abspos leftN-widthA-rightN-ref.html?border_abspos
-== leftN-widthA-rightN-2.html?border_abspos leftN-widthA-rightN-2-ref.html?border_abspos
-== leftA-widthN-rightA.html?border_abspos leftA-widthN-rightA-ref.html?border_abspos
-== leftN-widthN-rightA.html?border_abspos leftN-widthN-rightA-ref.html?border_abspos
-== leftA-widthN-rightN.html?border_abspos leftA-widthN-rightN-ref.html?border_abspos
-== leftA-widthA-rightN.html?border_abspos leftA-widthA-rightN-ref.html?border_abspos
-== toauto-leftN-widthA-rightA.html?border_abspos toauto-leftN-widthA-rightA-ref.html?border_abspos
-== toauto-leftN-widthA-rightA-2.html?border_abspos toauto-leftN-widthA-rightA-2-ref.html?border_abspos
-== toauto-leftN-widthA-rightN.html?border_abspos toauto-leftN-widthA-rightN-ref.html?border_abspos
-== toauto-leftN-widthA-rightN-2.html?border_abspos toauto-leftN-widthA-rightN-2-ref.html?border_abspos
-== toauto-leftA-widthN-rightA.html?border_abspos toauto-leftA-widthN-rightA-ref.html?border_abspos
-== toauto-leftN-widthN-rightA.html?border_abspos toauto-leftN-widthN-rightA-ref.html?border_abspos
-== toauto-leftA-widthN-rightN.html?border_abspos toauto-leftA-widthN-rightN-ref.html?border_abspos
-== toauto-leftA-widthA-rightN.html?border_abspos toauto-leftA-widthA-rightN-ref.html?border_abspos
-== fromauto-leftN-widthA-rightA.html?border_abspos leftN-widthA-rightA-ref.html?border_abspos
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html?border_abspos leftN-widthA-rightA-2-ref.html?border_abspos # Bug 688545
-== fromauto-leftN-widthA-rightN.html?border_abspos leftN-widthA-rightN-ref.html?border_abspos
-== fromauto-leftN-widthA-rightN-2.html?border_abspos leftN-widthA-rightN-2-ref.html?border_abspos
-== fromauto-leftA-widthN-rightA.html?border_abspos leftA-widthN-rightA-ref.html?border_abspos
-== fromauto-leftN-widthN-rightA.html?border_abspos leftN-widthN-rightA-ref.html?border_abspos
-== fromauto-leftA-widthN-rightN.html?border_abspos leftA-widthN-rightN-ref.html?border_abspos
-== fromauto-leftA-widthA-rightN.html?border_abspos leftA-widthA-rightN-ref.html?border_abspos
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_border_parent.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html?border_parent leftN-widthA-rightA-ref.html?border_parent
-== leftN-widthA-rightA-2.html?border_parent leftN-widthA-rightA-2-ref.html?border_parent
-== leftN-widthA-rightN.html?border_parent leftN-widthA-rightN-ref.html?border_parent
-== leftN-widthA-rightN-2.html?border_parent leftN-widthA-rightN-2-ref.html?border_parent
-== leftA-widthN-rightA.html?border_parent leftA-widthN-rightA-ref.html?border_parent
-== leftN-widthN-rightA.html?border_parent leftN-widthN-rightA-ref.html?border_parent
-== leftA-widthN-rightN.html?border_parent leftA-widthN-rightN-ref.html?border_parent
-== leftA-widthA-rightN.html?border_parent leftA-widthA-rightN-ref.html?border_parent
-== toauto-leftN-widthA-rightA.html?border_parent toauto-leftN-widthA-rightA-ref.html?border_parent
-== toauto-leftN-widthA-rightA-2.html?border_parent toauto-leftN-widthA-rightA-2-ref.html?border_parent
-== toauto-leftN-widthA-rightN.html?border_parent toauto-leftN-widthA-rightN-ref.html?border_parent
-== toauto-leftN-widthA-rightN-2.html?border_parent toauto-leftN-widthA-rightN-2-ref.html?border_parent
-== toauto-leftA-widthN-rightA.html?border_parent toauto-leftA-widthN-rightA-ref.html?border_parent
-== toauto-leftN-widthN-rightA.html?border_parent toauto-leftN-widthN-rightA-ref.html?border_parent
-== toauto-leftA-widthN-rightN.html?border_parent toauto-leftA-widthN-rightN-ref.html?border_parent
-== toauto-leftA-widthA-rightN.html?border_parent toauto-leftA-widthA-rightN-ref.html?border_parent
-== fromauto-leftN-widthA-rightA.html?border_parent leftN-widthA-rightA-ref.html?border_parent
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html?border_parent leftN-widthA-rightA-2-ref.html?border_parent # Bug 688545
-== fromauto-leftN-widthA-rightN.html?border_parent leftN-widthA-rightN-ref.html?border_parent
-== fromauto-leftN-widthA-rightN-2.html?border_parent leftN-widthA-rightN-2-ref.html?border_parent
-== fromauto-leftA-widthN-rightA.html?border_parent leftA-widthN-rightA-ref.html?border_parent
-== fromauto-leftN-widthN-rightA.html?border_parent leftN-widthN-rightA-ref.html?border_parent
-== fromauto-leftA-widthN-rightN.html?border_parent leftA-widthN-rightN-ref.html?border_parent
-== fromauto-leftA-widthA-rightN.html?border_parent leftA-widthA-rightN-ref.html?border_parent
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_margin_abspos.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html?margin_abspos leftN-widthA-rightA-ref.html?margin_abspos
-== leftN-widthA-rightA-2.html?margin_abspos leftN-widthA-rightA-2-ref.html?margin_abspos
-== leftN-widthA-rightN.html?margin_abspos leftN-widthA-rightN-ref.html?margin_abspos
-== leftN-widthA-rightN-2.html?margin_abspos leftN-widthA-rightN-2-ref.html?margin_abspos
-== leftA-widthN-rightA.html?margin_abspos leftA-widthN-rightA-ref.html?margin_abspos
-== leftN-widthN-rightA.html?margin_abspos leftN-widthN-rightA-ref.html?margin_abspos
-== leftA-widthN-rightN.html?margin_abspos leftA-widthN-rightN-ref.html?margin_abspos
-== leftA-widthA-rightN.html?margin_abspos leftA-widthA-rightN-ref.html?margin_abspos
-== toauto-leftN-widthA-rightA.html?margin_abspos toauto-leftN-widthA-rightA-ref.html?margin_abspos
-== toauto-leftN-widthA-rightA-2.html?margin_abspos toauto-leftN-widthA-rightA-2-ref.html?margin_abspos
-== toauto-leftN-widthA-rightN.html?margin_abspos toauto-leftN-widthA-rightN-ref.html?margin_abspos
-== toauto-leftN-widthA-rightN-2.html?margin_abspos toauto-leftN-widthA-rightN-2-ref.html?margin_abspos
-== toauto-leftA-widthN-rightA.html?margin_abspos toauto-leftA-widthN-rightA-ref.html?margin_abspos
-== toauto-leftN-widthN-rightA.html?margin_abspos toauto-leftN-widthN-rightA-ref.html?margin_abspos
-== toauto-leftA-widthN-rightN.html?margin_abspos toauto-leftA-widthN-rightN-ref.html?margin_abspos
-== toauto-leftA-widthA-rightN.html?margin_abspos toauto-leftA-widthA-rightN-ref.html?margin_abspos
-== fromauto-leftN-widthA-rightA.html?margin_abspos leftN-widthA-rightA-ref.html?margin_abspos
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html?margin_abspos leftN-widthA-rightA-2-ref.html?margin_abspos # Bug 688545
-== fromauto-leftN-widthA-rightN.html?margin_abspos leftN-widthA-rightN-ref.html?margin_abspos
-== fromauto-leftN-widthA-rightN-2.html?margin_abspos leftN-widthA-rightN-2-ref.html?margin_abspos
-== fromauto-leftA-widthN-rightA.html?margin_abspos leftA-widthN-rightA-ref.html?margin_abspos
-== fromauto-leftN-widthN-rightA.html?margin_abspos leftN-widthN-rightA-ref.html?margin_abspos
-== fromauto-leftA-widthN-rightN.html?margin_abspos leftA-widthN-rightN-ref.html?margin_abspos
-== fromauto-leftA-widthA-rightN.html?margin_abspos leftA-widthA-rightN-ref.html?margin_abspos
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_margin_parent.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html?margin_parent leftN-widthA-rightA-ref.html?margin_parent
-== leftN-widthA-rightA-2.html?margin_parent leftN-widthA-rightA-2-ref.html?margin_parent
-== leftN-widthA-rightN.html?margin_parent leftN-widthA-rightN-ref.html?margin_parent
-== leftN-widthA-rightN-2.html?margin_parent leftN-widthA-rightN-2-ref.html?margin_parent
-== leftA-widthN-rightA.html?margin_parent leftA-widthN-rightA-ref.html?margin_parent
-== leftN-widthN-rightA.html?margin_parent leftN-widthN-rightA-ref.html?margin_parent
-== leftA-widthN-rightN.html?margin_parent leftA-widthN-rightN-ref.html?margin_parent
-== leftA-widthA-rightN.html?margin_parent leftA-widthA-rightN-ref.html?margin_parent
-== toauto-leftN-widthA-rightA.html?margin_parent toauto-leftN-widthA-rightA-ref.html?margin_parent
-== toauto-leftN-widthA-rightA-2.html?margin_parent toauto-leftN-widthA-rightA-2-ref.html?margin_parent
-== toauto-leftN-widthA-rightN.html?margin_parent toauto-leftN-widthA-rightN-ref.html?margin_parent
-== toauto-leftN-widthA-rightN-2.html?margin_parent toauto-leftN-widthA-rightN-2-ref.html?margin_parent
-== toauto-leftA-widthN-rightA.html?margin_parent toauto-leftA-widthN-rightA-ref.html?margin_parent
-== toauto-leftN-widthN-rightA.html?margin_parent toauto-leftN-widthN-rightA-ref.html?margin_parent
-== toauto-leftA-widthN-rightN.html?margin_parent toauto-leftA-widthN-rightN-ref.html?margin_parent
-== toauto-leftA-widthA-rightN.html?margin_parent toauto-leftA-widthA-rightN-ref.html?margin_parent
-== fromauto-leftN-widthA-rightA.html?margin_parent leftN-widthA-rightA-ref.html?margin_parent
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html?margin_parent leftN-widthA-rightA-2-ref.html?margin_parent # Bug 688545
-== fromauto-leftN-widthA-rightN.html?margin_parent leftN-widthA-rightN-ref.html?margin_parent
-== fromauto-leftN-widthA-rightN-2.html?margin_parent leftN-widthA-rightN-2-ref.html?margin_parent
-== fromauto-leftA-widthN-rightA.html?margin_parent leftA-widthN-rightA-ref.html?margin_parent
-== fromauto-leftN-widthN-rightA.html?margin_parent leftN-widthN-rightA-ref.html?margin_parent
-== fromauto-leftA-widthN-rightN.html?margin_parent leftA-widthN-rightN-ref.html?margin_parent
-== fromauto-leftA-widthA-rightN.html?margin_parent leftA-widthA-rightN-ref.html?margin_parent
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_padding_abspos.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html?padding_abspos leftN-widthA-rightA-ref.html?padding_abspos
-== leftN-widthA-rightA-2.html?padding_abspos leftN-widthA-rightA-2-ref.html?padding_abspos
-== leftN-widthA-rightN.html?padding_abspos leftN-widthA-rightN-ref.html?padding_abspos
-== leftN-widthA-rightN-2.html?padding_abspos leftN-widthA-rightN-2-ref.html?padding_abspos
-== leftA-widthN-rightA.html?padding_abspos leftA-widthN-rightA-ref.html?padding_abspos
-== leftN-widthN-rightA.html?padding_abspos leftN-widthN-rightA-ref.html?padding_abspos
-== leftA-widthN-rightN.html?padding_abspos leftA-widthN-rightN-ref.html?padding_abspos
-== leftA-widthA-rightN.html?padding_abspos leftA-widthA-rightN-ref.html?padding_abspos
-== toauto-leftN-widthA-rightA.html?padding_abspos toauto-leftN-widthA-rightA-ref.html?padding_abspos
-== toauto-leftN-widthA-rightA-2.html?padding_abspos toauto-leftN-widthA-rightA-2-ref.html?padding_abspos
-== toauto-leftN-widthA-rightN.html?padding_abspos toauto-leftN-widthA-rightN-ref.html?padding_abspos
-== toauto-leftN-widthA-rightN-2.html?padding_abspos toauto-leftN-widthA-rightN-2-ref.html?padding_abspos
-== toauto-leftA-widthN-rightA.html?padding_abspos toauto-leftA-widthN-rightA-ref.html?padding_abspos
-== toauto-leftN-widthN-rightA.html?padding_abspos toauto-leftN-widthN-rightA-ref.html?padding_abspos
-== toauto-leftA-widthN-rightN.html?padding_abspos toauto-leftA-widthN-rightN-ref.html?padding_abspos
-== toauto-leftA-widthA-rightN.html?padding_abspos toauto-leftA-widthA-rightN-ref.html?padding_abspos
-== fromauto-leftN-widthA-rightA.html?padding_abspos leftN-widthA-rightA-ref.html?padding_abspos
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html?padding_abspos leftN-widthA-rightA-2-ref.html?padding_abspos # Bug 688545
-== fromauto-leftN-widthA-rightN.html?padding_abspos leftN-widthA-rightN-ref.html?padding_abspos
-== fromauto-leftN-widthA-rightN-2.html?padding_abspos leftN-widthA-rightN-2-ref.html?padding_abspos
-== fromauto-leftA-widthN-rightA.html?padding_abspos leftA-widthN-rightA-ref.html?padding_abspos
-== fromauto-leftN-widthN-rightA.html?padding_abspos leftN-widthN-rightA-ref.html?padding_abspos
-== fromauto-leftA-widthN-rightN.html?padding_abspos leftA-widthN-rightN-ref.html?padding_abspos
-== fromauto-leftA-widthA-rightN.html?padding_abspos leftA-widthA-rightN-ref.html?padding_abspos
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_padding_parent.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html?padding_parent leftN-widthA-rightA-ref.html?padding_parent
-== leftN-widthA-rightA-2.html?padding_parent leftN-widthA-rightA-2-ref.html?padding_parent
-== leftN-widthA-rightN.html?padding_parent leftN-widthA-rightN-ref.html?padding_parent
-== leftN-widthA-rightN-2.html?padding_parent leftN-widthA-rightN-2-ref.html?padding_parent
-== leftA-widthN-rightA.html?padding_parent leftA-widthN-rightA-ref.html?padding_parent
-== leftN-widthN-rightA.html?padding_parent leftN-widthN-rightA-ref.html?padding_parent
-== leftA-widthN-rightN.html?padding_parent leftA-widthN-rightN-ref.html?padding_parent
-== leftA-widthA-rightN.html?padding_parent leftA-widthA-rightN-ref.html?padding_parent
-== toauto-leftN-widthA-rightA.html?padding_parent toauto-leftN-widthA-rightA-ref.html?padding_parent
-== toauto-leftN-widthA-rightA-2.html?padding_parent toauto-leftN-widthA-rightA-2-ref.html?padding_parent
-== toauto-leftN-widthA-rightN.html?padding_parent toauto-leftN-widthA-rightN-ref.html?padding_parent
-== toauto-leftN-widthA-rightN-2.html?padding_parent toauto-leftN-widthA-rightN-2-ref.html?padding_parent
-== toauto-leftA-widthN-rightA.html?padding_parent toauto-leftA-widthN-rightA-ref.html?padding_parent
-== toauto-leftN-widthN-rightA.html?padding_parent toauto-leftN-widthN-rightA-ref.html?padding_parent
-== toauto-leftA-widthN-rightN.html?padding_parent toauto-leftA-widthN-rightN-ref.html?padding_parent
-== toauto-leftA-widthA-rightN.html?padding_parent toauto-leftA-widthA-rightN-ref.html?padding_parent
-== fromauto-leftN-widthA-rightA.html?padding_parent leftN-widthA-rightA-ref.html?padding_parent
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html?padding_parent leftN-widthA-rightA-2-ref.html?padding_parent # Bug 688545
-== fromauto-leftN-widthA-rightN.html?padding_parent leftN-widthA-rightN-ref.html?padding_parent
-== fromauto-leftN-widthA-rightN-2.html?padding_parent leftN-widthA-rightN-2-ref.html?padding_parent
-== fromauto-leftA-widthN-rightA.html?padding_parent leftA-widthN-rightA-ref.html?padding_parent
-== fromauto-leftN-widthN-rightA.html?padding_parent leftN-widthN-rightA-ref.html?padding_parent
-== fromauto-leftA-widthN-rightN.html?padding_parent leftA-widthN-rightN-ref.html?padding_parent
-== fromauto-leftA-widthA-rightN.html?padding_parent leftA-widthA-rightN-ref.html?padding_parent
View
26 layout/reftests/position-dynamic-changes/horizontal/reftest_plain.list
@@ -1,26 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== leftN-widthA-rightA.html leftN-widthA-rightA-ref.html
-== leftN-widthA-rightA-2.html leftN-widthA-rightA-2-ref.html
-== leftN-widthA-rightN.html leftN-widthA-rightN-ref.html
-== leftN-widthA-rightN-2.html leftN-widthA-rightN-2-ref.html
-== leftA-widthN-rightA.html leftA-widthN-rightA-ref.html
-== leftN-widthN-rightA.html leftN-widthN-rightA-ref.html
-== leftA-widthN-rightN.html leftA-widthN-rightN-ref.html
-== leftA-widthA-rightN.html leftA-widthA-rightN-ref.html
-== toauto-leftN-widthA-rightA.html toauto-leftN-widthA-rightA-ref.html
-== toauto-leftN-widthA-rightA-2.html toauto-leftN-widthA-rightA-2-ref.html
-== toauto-leftN-widthA-rightN.html toauto-leftN-widthA-rightN-ref.html
-== toauto-leftN-widthA-rightN-2.html toauto-leftN-widthA-rightN-2-ref.html
-== toauto-leftA-widthN-rightA.html toauto-leftA-widthN-rightA-ref.html
-== toauto-leftN-widthN-rightA.html toauto-leftN-widthN-rightA-ref.html
-== toauto-leftA-widthN-rightN.html toauto-leftA-widthN-rightN-ref.html
-== toauto-leftA-widthA-rightN.html toauto-leftA-widthA-rightN-ref.html
-== fromauto-leftN-widthA-rightA.html leftN-widthA-rightA-ref.html
-random-if(cocoaWidget) == fromauto-leftN-widthA-rightA-2.html leftN-widthA-rightA-2-ref.html # Bug 688545
-== fromauto-leftN-widthA-rightN.html leftN-widthA-rightN-ref.html
-== fromauto-leftN-widthA-rightN-2.html leftN-widthA-rightN-2-ref.html
-== fromauto-leftA-widthN-rightA.html leftA-widthN-rightA-ref.html
-== fromauto-leftN-widthN-rightA.html leftN-widthN-rightA-ref.html
-== fromauto-leftA-widthN-rightN.html leftA-widthN-rightN-ref.html
-== fromauto-leftA-widthA-rightN.html leftA-widthA-rightN-ref.html
View
20 layout/reftests/position-dynamic-changes/horizontal/style.css
@@ -1,20 +0,0 @@
-#parent {
- position: relative;
- width: 400px;
- height: 400px;
- background: red;
- border: 0 solid black;
-}
-#child {
- position: absolute;
- height: 100px;
- top: 100px;
- background: blue;
- border: 0 solid black;
-}
-.floatLeft {
- width: 50px;
- height: 10px;
- background: green;
- float: left;
-}
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthA-rightN-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthA-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("right");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightA-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("width");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightN-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftA-widthN-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px; right: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("right");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA-2-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA-2.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 200px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("left");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("left");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN-2-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN-2.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 100px; right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("left");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthA-rightN.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="left: 100px; right: 20px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("left");
- </script>
- </body>
-</html>
View
15 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthN-rightA-ref.html
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>
-</html>
View
19 layout/reftests/position-dynamic-changes/horizontal/toauto-leftN-widthN-rightA.html
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="animate.js" type="text/javascript"></script>
- <script src="../handleprop.js" type="text/javascript"></script>
- </head>
- <body>
- <div id="parent">
- <div id="child" style="width: 100px; left: 100px;">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- <script>
- toAuto("left");
- </script>
- </body>
-</html>
View
10 layout/reftests/position-dynamic-changes/max-width-ref.html
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
- <body>
- <style>
- #a { border: 1px solid black; max-width: 200px; height: 100px; }
- </style>
- <div id="a">
- </div>
- </body>
-</html>
View
17 layout/reftests/position-dynamic-changes/max-width.html
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <body>
- <style>
- #a { border: 1px solid black; max-width: 100px; height: 100px; }
- </style>
- <script>
- document.addEventListener("MozReftestInvalidate", function() {
- var a = document.querySelector("#a");
- a.style.maxWidth = "200px";
- document.documentElement.removeAttribute("class");
- }, false);
- </script>
- <div id="a">
- </div>
- </body>
-</html>
View
13 layout/reftests/position-dynamic-changes/min-width-ref.html
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html>
- <body>
- <style>
- #a { border: 1px solid green; width: 150px; height: 200px; }
- #b { border: 1px solid black; min-width: 200px; height: 100px; }
- </style>
- <div id="a">
- <div id="b">
- </div>
- </div>
- </body>
-</html>
View
20 layout/reftests/position-dynamic-changes/min-width.html
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
- <body>
- <style>
- #a { border: 1px solid green; width: 150px; height: 200px; }
- #b { border: 1px solid black; min-width: 100px; height: 100px; }
- </style>
- <script>
- document.addEventListener("MozReftestInvalidate", function() {
- var b = document.querySelector("#b");
- b.style.minWidth = "200px";
- document.documentElement.removeAttribute("class");
- }, false);
- </script>
- <div id="a">
- <div id="b">
- </div>
- </div>
- </body>
-</html>
View
21 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA-ref.html
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html id="parent">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- <style>
- #child {
- left: 300px;
- top: 200px;
- right: 20px;
- bottom: 20px;
- }
- </style>
- </head>
- <body>
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </body>
-</html>
View
38 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA.html
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html id="parent" class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- <style>
- #child {
- left: 100px;
- top: 100px;
- right: 20px;
- bottom: 20px;
- }
- </style>
- <script src="../horizontal/animate.js" type="text/javascript"></script>
- <script type="text/javascript">
- var counter = 0;
- function play() {
- if (counter < 100) {
- var child = document.getElementById("child");
- child.style.left = (parseInt(getComputedStyle(child, null).left.replace("px", "")) + 20) + "px";
- child.style.top = (parseInt(getComputedStyle(child, null).top.replace("px", "")) + 10) + "px";
- rfa(play);
- counter += 10;
- } else {
- document.documentElement.removeAttribute("class");
- }
- }
-
- window.onload = function() { rfa(play) };
- </script>
- </head>
- <body>
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </body>
-</html>
View
21 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN-ref.html
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html id="parent">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- <style>
- #child {
- width: 100px;
- height: 100px;
- left: 300px;
- top: 200px;
- }
- </style>
- </head>
- <body>
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </body>
-</html>
View
38 layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN.html
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html id="parent" class="reftest-wait">
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- <style>
- #child {
- width: 100px;
- height: 100px;
- left: 100px;
- top: 100px;
- }
- </style>
- <script src="../horizontal/animate.js" type="text/javascript"></script>
- <script type="text/javascript">
- var counter = 0;
- function play() {
- if (counter < 100) {
- var child = document.getElementById("child");
- child.style.left = (parseInt(getComputedStyle(child, null).left.replace("px", "")) + 20) + "px";
- child.style.top = (parseInt(getComputedStyle(child, null).top.replace("px", "")) + 10) + "px";
- rfa(play);
- counter += 10;
- } else {
- document.documentElement.removeAttribute("class");
- }
- }
-
- window.onload = function() { rfa(play) };
- </script>
- </head>
- <body>
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </body>
-</html>
View
18 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest.list
@@ -1,18 +0,0 @@
-# This directory includes 7 different permutations of the same tests.
-# reftest_plain.list is the manifest file for tests without any border, margin
-# or padding applied to either the abs-pos element or the parent.
-# reftest_{prop}_{element}.list files are the manifest files for tests with the
-# CSS property {prop} applied to {element}. These files use the query string
-# on the test file and the reference file to ask the code in ../handleprop.js add
-# the corresponding CSS style.
-
-# Any changes to the contents of the following files needs to be reflected on
-# all of them.
-
-include reftest_plain.list
-include reftest_border_abspos.list
-include reftest_border_parent.list
-include reftest_margin_abspos.list
-include reftest_margin_parent.list
-include reftest_padding_abspos.list
-include reftest_padding_parent.list
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_border_abspos.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html?border_abspos mixed-dimentionN-ref.html?border_abspos
-== mixed-dimentionA.html?border_abspos mixed-dimentionA-ref.html?border_abspos
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_border_parent.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html?border_parent mixed-dimentionN-ref.html?border_parent
-== mixed-dimentionA.html?border_parent mixed-dimentionA-ref.html?border_parent
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_margin_abspos.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html?margin_abspos mixed-dimentionN-ref.html?margin_abspos
-== mixed-dimentionA.html?margin_abspos mixed-dimentionA-ref.html?margin_abspos
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_margin_parent.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html?margin_parent mixed-dimentionN-ref.html?margin_parent
-== mixed-dimentionA.html?margin_parent mixed-dimentionA-ref.html?margin_parent
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_padding_abspos.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html?padding_abspos mixed-dimentionN-ref.html?padding_abspos
-== mixed-dimentionA.html?padding_abspos mixed-dimentionA-ref.html?padding_abspos
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_padding_parent.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html?padding_parent mixed-dimentionN-ref.html?padding_parent
-== mixed-dimentionA.html?padding_parent mixed-dimentionA-ref.html?padding_parent
View
4 layout/reftests/position-dynamic-changes/mixed-abspos-root/reftest_plain.list
@@ -1,4 +0,0 @@
-# Please see the comment at the beginning of reftest.list
-
-== mixed-dimentionN.html mixed-dimentionN-ref.html
-== mixed-dimentionA.html mixed-dimentionA-ref.html
View
22 layout/reftests/position-dynamic-changes/mixed-abspos-root/style.css
@@ -1,22 +0,0 @@
-#parent {
- position: relative;
- width: 400px;
- height: 400px;
- background: red;
- border: 0 solid black;
-}
-#child {
- position: absolute;
- left: 300px;
- top: 200px;
- right: 20px;
- bottom: 20px;
- background: blue;
- border: 0 solid black;
-}
-.floatLeft {
- width: 50px;
- height: 10px;
- background: green;
- float: left;
-}
View
23 layout/reftests/position-dynamic-changes/mixed/mixed-dimentionA-ref.html
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script src="../handleprop.js" type="text/javascript"></script>
- <style>
- #child {
- left: 300px;
- top: 200px;
- right: 20px;
- bottom: 20px;
- }
- </style>
- </head>
- <body>
- <div id="parent">
- <div id="child">
- <div class="floatLeft"></div>
- <div class="floatLeft"></div>
- </div>
- </div>
- </body>