Changeset 88213 in webkit
- Timestamp:
- Jun 6, 2011, 9:06:51 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r88212 r88213 1 2011-06-06 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r88202. 4 http://trac.webkit.org/changeset/88202 5 https://bugs.webkit.org/show_bug.cgi?id=62182 6 7 This broke the mac clang bot (Requested by koz__ on #webkit). 8 9 * dom/Node.cpp: 10 (WebCore::Node::hasNonEmptyBoundingBox): 11 * rendering/InlineBox.h: 12 * rendering/RenderBlock.cpp: 13 (WebCore::RenderBlock::absoluteRects): 14 * rendering/RenderBlock.h: 15 * rendering/RenderBox.cpp: 16 (WebCore::RenderBox::absoluteRects): 17 * rendering/RenderBox.h: 18 * rendering/RenderInline.cpp: 19 (WebCore::RenderInline::absoluteRects): 20 * rendering/RenderInline.h: 21 * rendering/RenderObject.cpp: 22 (WebCore::RenderObject::absoluteBoundingBoxRect): 23 * rendering/RenderObject.h: 24 (WebCore::RenderObject::absoluteRects): 25 * rendering/RenderText.cpp: 26 (WebCore::RenderText::absoluteRects): 27 * rendering/RenderText.h: 28 * rendering/RenderView.cpp: 29 (WebCore::RenderView::absoluteRects): 30 * rendering/RenderView.h: 31 1 32 2011-06-06 Noel Gordon <noel.gordon@gmail.com> 2 33 -
trunk/Source/WebCore/dom/Node.cpp
r88202 r88213 840 840 Vector<IntRect> rects; 841 841 FloatPoint absPos = renderer()->localToAbsolute(); 842 renderer()->absoluteRects(rects, flooredIntPoint(absPos));842 renderer()->absoluteRects(rects, absPos.x(), absPos.y()); 843 843 size_t n = rects.size(); 844 844 for (size_t i = 0; i < n; ++i) -
trunk/Source/WebCore/rendering/InlineBox.h
r88202 r88213 237 237 float width() const { return isHorizontal() ? logicalWidth() : logicalHeight(); } 238 238 float height() const { return isHorizontal() ? logicalHeight() : logicalWidth(); } 239 FloatSize size() const { return IntSize(width(), height()); }240 239 float right() const { return left() + width(); } 241 240 float bottom() const { return top() + height(); } -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r88205 r88213 5665 5665 } 5666 5666 5667 void RenderBlock::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)5667 void RenderBlock::absoluteRects(Vector<IntRect>& rects, int tx, int ty) 5668 5668 { 5669 5669 // For blocks inside inlines, we go ahead and include margins so that we run right up to the … … 5673 5673 // FIXME: This is wrong for block-flows that are horizontal. 5674 5674 // https://bugs.webkit.org/show_bug.cgi?id=46781 5675 rects.append(IntRect( accumulatedOffset.x(), accumulatedOffset.y()- collapsedMarginBefore(),5675 rects.append(IntRect(tx, ty - collapsedMarginBefore(), 5676 5676 width(), height() + collapsedMarginBefore() + collapsedMarginAfter())); 5677 continuation()->absoluteRects(rects, accumulatedOffset - toSize(location() + 5678 inlineElementContinuation()->containingBlock()->location())); 5677 continuation()->absoluteRects(rects, 5678 tx - x() + inlineElementContinuation()->containingBlock()->x(), 5679 ty - y() + inlineElementContinuation()->containingBlock()->y()); 5679 5680 } else 5680 rects.append(IntRect( accumulatedOffset, size()));5681 rects.append(IntRect(tx, ty, width(), height())); 5681 5682 } 5682 5683 -
trunk/Source/WebCore/rendering/RenderBlock.h
r88202 r88213 626 626 int logicalRightSelectionOffset(RenderBlock* rootBlock, int position); 627 627 628 virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);628 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty); 629 629 virtual void absoluteQuads(Vector<FloatQuad>&); 630 630 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r88202 r88213 456 456 } 457 457 458 void RenderBox::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)459 { 460 rects.append(IntRect( accumulatedOffset, size()));458 void RenderBox::absoluteRects(Vector<IntRect>& rects, int tx, int ty) 459 { 460 rects.append(IntRect(tx, ty, width(), height())); 461 461 } 462 462 -
trunk/Source/WebCore/rendering/RenderBox.h
r88202 r88213 231 231 virtual int collapsedMarginAfter() const { return marginAfter(); } 232 232 233 virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);233 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty); 234 234 virtual void absoluteQuads(Vector<FloatQuad>&); 235 235 -
trunk/Source/WebCore/rendering/RenderInline.cpp
r88202 r88213 466 466 } 467 467 468 void RenderInline::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)468 void RenderInline::absoluteRects(Vector<IntRect>& rects, int tx, int ty) 469 469 { 470 470 if (!alwaysCreateLineBoxes()) 471 culledInlineAbsoluteRects(this, rects, toSize(accumulatedOffset));471 culledInlineAbsoluteRects(this, rects, IntSize(tx, ty)); 472 472 else if (InlineFlowBox* curr = firstLineBox()) { 473 473 for (; curr; curr = curr->nextLineBox()) 474 rects.append(enclosingIntRect(FloatRect( accumulatedOffset + curr->topLeft(), curr->size())));474 rects.append(enclosingIntRect(FloatRect(tx + curr->x(), ty + curr->y(), curr->width(), curr->height()))); 475 475 } else 476 rects.append(IntRect( accumulatedOffset, IntSize()));476 rects.append(IntRect(tx, ty, 0, 0)); 477 477 478 478 if (continuation()) { 479 479 if (continuation()->isBox()) { 480 480 RenderBox* box = toRenderBox(continuation()); 481 continuation()->absoluteRects(rects, toPoint(accumulatedOffset - containingBlock()->location() + box->size())); 481 continuation()->absoluteRects(rects, 482 tx - containingBlock()->x() + box->x(), 483 ty - containingBlock()->y() + box->y()); 482 484 } else 483 continuation()->absoluteRects(rects, t oPoint(accumulatedOffset - containingBlock()->location()));485 continuation()->absoluteRects(rects, tx - containingBlock()->x(), ty - containingBlock()->y()); 484 486 } 485 487 } -
trunk/Source/WebCore/rendering/RenderInline.h
r88202 r88213 49 49 virtual int marginEnd() const; 50 50 51 virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);51 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty); 52 52 virtual void absoluteQuads(Vector<FloatQuad>&); 53 53 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r88202 r88213 1100 1100 FloatPoint absPos = localToAbsolute(); 1101 1101 Vector<IntRect> rects; 1102 absoluteRects(rects, flooredIntPoint(absPos));1102 absoluteRects(rects, absPos.x(), absPos.y()); 1103 1103 1104 1104 size_t n = rects.size(); -
trunk/Source/WebCore/rendering/RenderObject.h
r88202 r88213 591 591 IntSize offsetFromAncestorContainer(RenderObject*) const; 592 592 593 virtual void absoluteRects(Vector<IntRect>&, const IntPoint&) { }593 virtual void absoluteRects(Vector<IntRect>&, int, int) { } 594 594 // FIXME: useTransforms should go away eventually 595 595 IntRect absoluteBoundingBoxRect(bool useTransforms = false); -
trunk/Source/WebCore/rendering/RenderText.cpp
r88202 r88213 270 270 } 271 271 272 void RenderText::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)272 void RenderText::absoluteRects(Vector<IntRect>& rects, int tx, int ty) 273 273 { 274 274 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) 275 rects.append(enclosingIntRect(FloatRect( accumulatedOffset + box->topLeft(), box->size())));275 rects.append(enclosingIntRect(FloatRect(tx + box->x(), ty + box->y(), box->width(), box->height()))); 276 276 } 277 277 -
trunk/Source/WebCore/rendering/RenderText.h
r88202 r88213 57 57 void dirtyLineBoxes(bool fullLayout); 58 58 59 virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);59 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty); 60 60 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsigned endOffset = UINT_MAX, bool useSelectionHeight = false); 61 61 -
trunk/Source/WebCore/rendering/RenderView.cpp
r88202 r88213 322 322 } 323 323 324 void RenderView::absoluteRects(Vector<IntRect>& rects, const IntPoint& accumulatedOffset)325 { 326 rects.append(IntRect( accumulatedOffset, m_layer->size()));324 void RenderView::absoluteRects(Vector<IntRect>& rects, int tx, int ty) 325 { 326 rects.append(IntRect(IntPoint(tx, ty), m_layer->size())); 327 327 } 328 328 -
trunk/Source/WebCore/rendering/RenderView.h
r88202 r88213 83 83 bool printing() const; 84 84 85 virtual void absoluteRects(Vector<IntRect>&, const IntPoint& accumulatedOffset);85 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty); 86 86 virtual void absoluteQuads(Vector<FloatQuad>&); 87 87
Note:
See TracChangeset
for help on using the changeset viewer.