Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: Source/core/rendering/RenderBox.cpp

Issue 260963012: Override repaintTreeAfterLayout for RenderSVGModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 } 1581 }
1582 1582
1583 const LayoutRect& newRepaintRect = previousRepaintRect(); 1583 const LayoutRect& newRepaintRect = previousRepaintRect();
1584 const LayoutPoint& newPositionFromRepaintContainer = previousPositionFromRep aintContainer(); 1584 const LayoutPoint& newPositionFromRepaintContainer = previousPositionFromRep aintContainer();
1585 bool didFullRepaint = repaintAfterLayoutIfNeeded(containerForRepaint(), 1585 bool didFullRepaint = repaintAfterLayoutIfNeeded(containerForRepaint(),
1586 shouldDoFullRepaintAfterLayout(), oldRepaintRect, oldPositionFromRepaint Container, &newRepaintRect, &newPositionFromRepaintContainer); 1586 shouldDoFullRepaintAfterLayout(), oldRepaintRect, oldPositionFromRepaint Container, &newRepaintRect, &newPositionFromRepaintContainer);
1587 1587
1588 if (!didFullRepaint) 1588 if (!didFullRepaint)
1589 repaintOverflowIfNeeded(); 1589 repaintOverflowIfNeeded();
1590 1590
1591 // Repaint any scrollbars if there is a scrollable area for this renderer. 1591 repaintScrollbarsIfNeeded();
1592 if (enclosingLayer()) {
1593 if (RenderLayerScrollableArea* area = enclosingLayer()->scrollableArea() ) {
1594 if (area->hasVerticalBarDamage())
1595 repaintRectangle(area->verticalBarDamage());
1596 if (area->hasHorizontalBarDamage())
1597 repaintRectangle(area->horizontalBarDamage());
1598 area->resetScrollbarDamage();
1599 }
1600 }
1601 1592
1602 // FIXME: This concept of a tree walking state for fast lookups should be ge neralized away from 1593 // FIXME: This concept of a tree walking state for fast lookups should be ge neralized away from
1603 // just layout. 1594 // just layout.
1604 // FIXME: Table rows shouldn't be special-cased. 1595 // FIXME: Table rows shouldn't be special-cased.
1605 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : locat ionOffset()); 1596 LayoutStateMaintainer statePusher(*this, isTableRow() ? LayoutSize() : locat ionOffset());
1606 RenderObject::repaintTreeAfterLayout(); 1597 RenderObject::repaintTreeAfterLayout();
1607 } 1598 }
1608 1599
1609 bool RenderBox::pushContentsClip(PaintInfo& paintInfo, const LayoutPoint& accumu latedOffset, ContentsClipBehavior contentsClipBehavior) 1600 bool RenderBox::pushContentsClip(PaintInfo& paintInfo, const LayoutPoint& accumu latedOffset, ContentsClipBehavior contentsClipBehavior)
1610 { 1601 {
(...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after
4666 return 0; 4657 return 0;
4667 4658
4668 if (!layoutState && !flowThreadContainingBlock()) 4659 if (!layoutState && !flowThreadContainingBlock())
4669 return 0; 4660 return 0;
4670 4661
4671 RenderBlock* containerBlock = containingBlock(); 4662 RenderBlock* containerBlock = containingBlock();
4672 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); 4663 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop();
4673 } 4664 }
4674 4665
4675 } // namespace WebCore 4666 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698