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

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

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 repainter.repaintAfterLayout(); 96 repainter.repaintAfterLayout();
97 clearNeedsLayout(); 97 clearNeedsLayout();
98 } 98 }
99 99
100 void RenderReplaced::intrinsicSizeChanged() 100 void RenderReplaced::intrinsicSizeChanged()
101 { 101 {
102 int scaledWidth = static_cast<int>(cDefaultWidth * style()->effectiveZoom()) ; 102 int scaledWidth = static_cast<int>(cDefaultWidth * style()->effectiveZoom()) ;
103 int scaledHeight = static_cast<int>(cDefaultHeight * style()->effectiveZoom( )); 103 int scaledHeight = static_cast<int>(cDefaultHeight * style()->effectiveZoom( ));
104 m_intrinsicSize = IntSize(scaledWidth, scaledHeight); 104 m_intrinsicSize = IntSize(scaledWidth, scaledHeight);
105 setNeedsLayoutAndPrefWidthsRecalc(); 105 setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint();
106 } 106 }
107 107
108 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 108 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
109 { 109 {
110 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 110 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this);
111 111
112 if (!shouldPaint(paintInfo, paintOffset)) 112 if (!shouldPaint(paintInfo, paintOffset))
113 return; 113 return;
114 114
115 LayoutPoint adjustedPaintOffset = paintOffset + location(); 115 LayoutPoint adjustedPaintOffset = paintOffset + location();
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and 623 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and
624 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308 624 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308
625 r.move(v->layoutDelta()); 625 r.move(v->layoutDelta());
626 } 626 }
627 627
628 computeRectForRepaint(repaintContainer, r); 628 computeRectForRepaint(repaintContainer, r);
629 return r; 629 return r;
630 } 630 }
631 631
632 } 632 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObjectChildList.cpp ('k') | Source/core/rendering/RenderRubyBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698