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

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

Issue 328533003: Fix RenderObject::repaintRectangle in situations when the render object is not a layer and is squas… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test result. Created 6 years, 6 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
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 1579
1580 LayoutRect dirtyRect(r); 1580 LayoutRect dirtyRect(r);
1581 1581
1582 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) { 1582 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) {
1583 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and 1583 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and
1584 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308 1584 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308
1585 dirtyRect.move(view()->layoutDelta()); 1585 dirtyRect.move(view()->layoutDelta());
1586 } 1586 }
1587 1587
1588 const RenderLayerModelObject* repaintContainer = containerForRepaint(); 1588 const RenderLayerModelObject* repaintContainer = containerForRepaint();
1589 if (hasLayer()) 1589 RenderLayer::mapRectToRepaintBacking(this, repaintContainer, dirtyRect);
1590 toRenderLayerModelObject(this)->layer()->mapRectToRepaintBacking(repaint Container, dirtyRect);
1591 else
1592 mapRectToRepaintBacking(repaintContainer, dirtyRect);
1593 repaintUsingContainer(repaintContainer, pixelSnappedIntRect(dirtyRect), Inva lidationRepaintRectangle); 1590 repaintUsingContainer(repaintContainer, pixelSnappedIntRect(dirtyRect), Inva lidationRepaintRectangle);
1594 } 1591 }
1595 1592
1596 IntRect RenderObject::pixelSnappedAbsoluteClippedOverflowRect() const 1593 IntRect RenderObject::pixelSnappedAbsoluteClippedOverflowRect() const
1597 { 1594 {
1598 return pixelSnappedIntRect(absoluteClippedOverflowRect()); 1595 return pixelSnappedIntRect(absoluteClippedOverflowRect());
1599 } 1596 }
1600 1597
1601 const char* RenderObject::invalidationReasonToString(InvalidationReason reason) const 1598 const char* RenderObject::invalidationReasonToString(InvalidationReason reason) const
1602 { 1599 {
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
3557 { 3554 {
3558 if (object1) { 3555 if (object1) {
3559 const WebCore::RenderObject* root = object1; 3556 const WebCore::RenderObject* root = object1;
3560 while (root->parent()) 3557 while (root->parent())
3561 root = root->parent(); 3558 root = root->parent();
3562 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3559 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3563 } 3560 }
3564 } 3561 }
3565 3562
3566 #endif 3563 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698