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

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

Issue 264963004: Mark when we may have been invalidated to early out on repaintTreeAfterLayout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (style() && style()->effectiveZoom() != oldZoom) 76 if (style() && style()->effectiveZoom() != oldZoom)
77 intrinsicSizeChanged(); 77 intrinsicSizeChanged();
78 } 78 }
79 79
80 void RenderReplaced::layout() 80 void RenderReplaced::layout()
81 { 81 {
82 ASSERT(needsLayout()); 82 ASSERT(needsLayout());
83 83
84 LayoutRepainter repainter(*this, checkForRepaintDuringLayout()); 84 LayoutRepainter repainter(*this, checkForRepaintDuringLayout());
85 85
86 setMayNeedInvalidation(true);
86 setHeight(minimumReplacedHeight()); 87 setHeight(minimumReplacedHeight());
87 88
88 updateLogicalWidth(); 89 updateLogicalWidth();
89 updateLogicalHeight(); 90 updateLogicalHeight();
90 91
91 m_overflow.clear(); 92 m_overflow.clear();
92 addVisualEffectOverflow(); 93 addVisualEffectOverflow();
93 updateLayerTransform(); 94 updateLayerTransform();
94 invalidateBackgroundObscurationStatus(); 95 invalidateBackgroundObscurationStatus();
95 96
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and 617 // FIXME: layoutDelta needs to be applied in parts before/after transfor ms and
617 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308 618 // repaint containers. https://bugs.webkit.org/show_bug.cgi?id=23308
618 r.move(v->layoutDelta()); 619 r.move(v->layoutDelta());
619 } 620 }
620 621
621 computeRectForRepaint(repaintContainer, r); 622 computeRectForRepaint(repaintContainer, r);
622 return r; 623 return r;
623 } 624 }
624 625
625 } 626 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698