Title: [88213] trunk/Source/WebCore
Revision
88213
Author
[email protected]
Date
2011-06-06 21:06:51 -0700 (Mon, 06 Jun 2011)

Log Message

2011-06-06  Sheriff Bot  <[email protected]>

        Unreviewed, rolling out r88202.
        http://trac.webkit.org/changeset/88202
        https://bugs.webkit.org/show_bug.cgi?id=62182

        This broke the mac clang bot (Requested by koz__ on #webkit).

        * dom/Node.cpp:
        (WebCore::Node::hasNonEmptyBoundingBox):
        * rendering/InlineBox.h:
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::absoluteRects):
        * rendering/RenderBlock.h:
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::absoluteRects):
        * rendering/RenderBox.h:
        * rendering/RenderInline.cpp:
        (WebCore::RenderInline::absoluteRects):
        * rendering/RenderInline.h:
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::absoluteBoundingBoxRect):
        * rendering/RenderObject.h:
        (WebCore::RenderObject::absoluteRects):
        * rendering/RenderText.cpp:
        (WebCore::RenderText::absoluteRects):
        * rendering/RenderText.h:
        * rendering/RenderView.cpp:
        (WebCore::RenderView::absoluteRects):
        * rendering/RenderView.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (88212 => 88213)


--- trunk/Source/WebCore/ChangeLog	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/ChangeLog	2011-06-07 04:06:51 UTC (rev 88213)
@@ -1,3 +1,34 @@
+2011-06-06  Sheriff Bot  <[email protected]>
+
+        Unreviewed, rolling out r88202.
+        http://trac.webkit.org/changeset/88202
+        https://bugs.webkit.org/show_bug.cgi?id=62182
+
+        This broke the mac clang bot (Requested by koz__ on #webkit).
+
+        * dom/Node.cpp:
+        (WebCore::Node::hasNonEmptyBoundingBox):
+        * rendering/InlineBox.h:
+        * rendering/RenderBlock.cpp:
+        (WebCore::RenderBlock::absoluteRects):
+        * rendering/RenderBlock.h:
+        * rendering/RenderBox.cpp:
+        (WebCore::RenderBox::absoluteRects):
+        * rendering/RenderBox.h:
+        * rendering/RenderInline.cpp:
+        (WebCore::RenderInline::absoluteRects):
+        * rendering/RenderInline.h:
+        * rendering/RenderObject.cpp:
+        (WebCore::RenderObject::absoluteBoundingBoxRect):
+        * rendering/RenderObject.h:
+        (WebCore::RenderObject::absoluteRects):
+        * rendering/RenderText.cpp:
+        (WebCore::RenderText::absoluteRects):
+        * rendering/RenderText.h:
+        * rendering/RenderView.cpp:
+        (WebCore::RenderView::absoluteRects):
+        * rendering/RenderView.h:
+
 2011-06-06  Noel Gordon  <[email protected]>
 
         Reviewed by Hajime Morita.

Modified: trunk/Source/WebCore/dom/Node.cpp (88212 => 88213)


--- trunk/Source/WebCore/dom/Node.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/dom/Node.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -839,7 +839,7 @@
 
     Vector<IntRect> rects;
     FloatPoint absPos = renderer()->localToAbsolute();
-    renderer()->absoluteRects(rects, flooredIntPoint(absPos));
+    renderer()->absoluteRects(rects, absPos.x(), absPos.y());
     size_t n = rects.size();
     for (size_t i = 0; i < n; ++i)
         if (!rects[i].isEmpty())

Modified: trunk/Source/WebCore/rendering/InlineBox.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/InlineBox.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/InlineBox.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -236,7 +236,6 @@
 
     float width() const { return isHorizontal() ? logicalWidth() : logicalHeight(); }
     float height() const { return isHorizontal() ? logicalHeight() : logicalWidth(); }
-    FloatSize size() const { return IntSize(width(), height()); }
     float right() const { return left() + width(); }
     float bottom() const { return top() + height(); }
 

Modified: trunk/Source/WebCore/rendering/RenderBlock.cpp (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderBlock.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderBlock.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -5664,7 +5664,7 @@
     m_rareData->m_pageLogicalOffset = logicalOffset;
 }
 
-void RenderBlock::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)
+void RenderBlock::absoluteRects(Vector<IntRect>& rects, int tx, int ty)
 {
     // For blocks inside inlines, we go ahead and include margins so that we run right up to the
     // inline boxes above and below us (thus getting merged with them to form a single irregular
@@ -5672,12 +5672,13 @@
     if (isAnonymousBlockContinuation()) {
         // FIXME: This is wrong for block-flows that are horizontal.
         // https://bugs.webkit.org/show_bug.cgi?id=46781
-        rects.append(IntRect(accumulatedOffset.x(), accumulatedOffset.y() - collapsedMarginBefore(),
+        rects.append(IntRect(tx, ty - collapsedMarginBefore(),
                              width(), height() + collapsedMarginBefore() + collapsedMarginAfter()));
-        continuation()->absoluteRects(rects, accumulatedOffset - toSize(location() +
-                inlineElementContinuation()->containingBlock()->location()));
+        continuation()->absoluteRects(rects,
+                                      tx - x() + inlineElementContinuation()->containingBlock()->x(),
+                                      ty - y() + inlineElementContinuation()->containingBlock()->y());
     } else
-        rects.append(IntRect(accumulatedOffset, size()));
+        rects.append(IntRect(tx, ty, width(), height()));
 }
 
 void RenderBlock::absoluteQuads(Vector<FloatQuad>& quads)

Modified: trunk/Source/WebCore/rendering/RenderBlock.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderBlock.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderBlock.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -625,7 +625,7 @@
     int logicalLeftSelectionOffset(RenderBlock* rootBlock, int position);
     int logicalRightSelectionOffset(RenderBlock* rootBlock, int position);
     
-    virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);
+    virtual void absoluteRects(Vector<IntRect>&, int tx, int ty);
     virtual void absoluteQuads(Vector<FloatQuad>&);
 
     int desiredColumnWidth() const;

Modified: trunk/Source/WebCore/rendering/RenderBox.cpp (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderBox.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderBox.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -455,9 +455,9 @@
         layer()->scrollToYOffset(newTop);
 }
 
-void RenderBox::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)
+void RenderBox::absoluteRects(Vector<IntRect>& rects, int tx, int ty)
 {
-    rects.append(IntRect(accumulatedOffset, size()));
+    rects.append(IntRect(tx, ty, width(), height()));
 }
 
 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads)

Modified: trunk/Source/WebCore/rendering/RenderBox.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderBox.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderBox.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -230,7 +230,7 @@
     virtual int collapsedMarginBefore() const { return marginBefore(); }
     virtual int collapsedMarginAfter() const { return marginAfter(); }
 
-    virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);
+    virtual void absoluteRects(Vector<IntRect>&, int tx, int ty);
     virtual void absoluteQuads(Vector<FloatQuad>&);
     
     IntRect reflectionBox() const;

Modified: trunk/Source/WebCore/rendering/RenderInline.cpp (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderInline.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderInline.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -465,22 +465,24 @@
     m_lineBoxes.paint(this, paintInfo, tx, ty);
 }
 
-void RenderInline::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)
+void RenderInline::absoluteRects(Vector<IntRect>& rects, int tx, int ty)
 {
     if (!alwaysCreateLineBoxes())
-        culledInlineAbsoluteRects(this, rects, toSize(accumulatedOffset));
+        culledInlineAbsoluteRects(this, rects, IntSize(tx, ty));
     else if (InlineFlowBox* curr = firstLineBox()) {
         for (; curr; curr = curr->nextLineBox())
-            rects.append(enclosingIntRect(FloatRect(accumulatedOffset + curr->topLeft(), curr->size())));
+            rects.append(enclosingIntRect(FloatRect(tx + curr->x(), ty + curr->y(), curr->width(), curr->height())));
     } else
-        rects.append(IntRect(accumulatedOffset, IntSize()));
+        rects.append(IntRect(tx, ty, 0, 0));
 
     if (continuation()) {
         if (continuation()->isBox()) {
             RenderBox* box = toRenderBox(continuation());
-            continuation()->absoluteRects(rects, toPoint(accumulatedOffset - containingBlock()->location() + box->size()));
+            continuation()->absoluteRects(rects, 
+                                          tx - containingBlock()->x() + box->x(),
+                                          ty - containingBlock()->y() + box->y());
         } else
-            continuation()->absoluteRects(rects, toPoint(accumulatedOffset - containingBlock()->location()));
+            continuation()->absoluteRects(rects, tx - containingBlock()->x(), ty - containingBlock()->y());
     }
 }
 

Modified: trunk/Source/WebCore/rendering/RenderInline.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderInline.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderInline.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -48,7 +48,7 @@
     virtual int marginStart() const;
     virtual int marginEnd() const;
 
-    virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);
+    virtual void absoluteRects(Vector<IntRect>&, int tx, int ty);
     virtual void absoluteQuads(Vector<FloatQuad>&);
 
     virtual IntSize offsetFromContainer(RenderObject*, const IntPoint&) const;

Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderObject.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -1099,7 +1099,7 @@
 
     FloatPoint absPos = localToAbsolute();
     Vector<IntRect> rects;
-    absoluteRects(rects, flooredIntPoint(absPos));
+    absoluteRects(rects, absPos.x(), absPos.y());
 
     size_t n = rects.size();
     if (!n)

Modified: trunk/Source/WebCore/rendering/RenderObject.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderObject.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderObject.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -590,7 +590,7 @@
     // Return the offset from an object up the container() chain. Asserts that none of the intermediate objects have transforms.
     IntSize offsetFromAncestorContainer(RenderObject*) const;
     
-    virtual void absoluteRects(Vector<IntRect>&, const IntPoint&) { }
+    virtual void absoluteRects(Vector<IntRect>&, int, int) { }
     // FIXME: useTransforms should go away eventually
     IntRect absoluteBoundingBoxRect(bool useTransforms = false);
 

Modified: trunk/Source/WebCore/rendering/RenderText.cpp (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderText.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderText.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -269,10 +269,10 @@
     return (e && e->isTextNode()) ? static_cast<Text*>(e)->dataImpl() : 0;
 }
 
-void RenderText::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)
+void RenderText::absoluteRects(Vector<IntRect>& rects, int tx, int ty)
 {
     for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
-        rects.append(enclosingIntRect(FloatRect(accumulatedOffset + box->topLeft(), box->size())));
+        rects.append(enclosingIntRect(FloatRect(tx + box->x(), ty + box->y(), box->width(), box->height())));
 }
 
 void RenderText::absoluteRectsForRange(Vector<IntRect>& rects, unsigned start, unsigned end, bool useSelectionHeight)

Modified: trunk/Source/WebCore/rendering/RenderText.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderText.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderText.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -56,7 +56,7 @@
     InlineTextBox* createInlineTextBox();
     void dirtyLineBoxes(bool fullLayout);
 
-    virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);
+    virtual void absoluteRects(Vector<IntRect>&, int tx, int ty);
     void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsigned endOffset = UINT_MAX, bool useSelectionHeight = false);
 
     virtual void absoluteQuads(Vector<FloatQuad>&);

Modified: trunk/Source/WebCore/rendering/RenderView.cpp (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderView.cpp	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderView.cpp	2011-06-07 04:06:51 UTC (rev 88213)
@@ -321,9 +321,9 @@
         rect = m_layer->transform()->mapRect(rect);
 }
 
-void RenderView::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)
+void RenderView::absoluteRects(Vector<IntRect>& rects, int tx, int ty)
 {
-    rects.append(IntRect(accumulatedOffset, m_layer->size()));
+    rects.append(IntRect(IntPoint(tx, ty), m_layer->size()));
 }
 
 void RenderView::absoluteQuads(Vector<FloatQuad>& quads)

Modified: trunk/Source/WebCore/rendering/RenderView.h (88212 => 88213)


--- trunk/Source/WebCore/rendering/RenderView.h	2011-06-07 04:04:25 UTC (rev 88212)
+++ trunk/Source/WebCore/rendering/RenderView.h	2011-06-07 04:06:51 UTC (rev 88213)
@@ -82,7 +82,7 @@
 
     bool printing() const;
 
-    virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);
+    virtual void absoluteRects(Vector<IntRect>&, int tx, int ty);
     virtual void absoluteQuads(Vector<FloatQuad>&);
 
 #if USE(ACCELERATED_COMPOSITING)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to