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

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

Issue 204843002: Reduce invalidation on children-needs-layout containers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated patch after Levi's comment + the bots failures Created 6 years, 9 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 4142 matching lines...) Expand 10 before | Expand all | Expand 10 after
4153 { 4153 {
4154 ASSERT(!needsLayout()); 4154 ASSERT(!needsLayout());
4155 // If fragmentation height has changed, we need to lay out. No need to enter the renderer if it 4155 // If fragmentation height has changed, we need to lay out. No need to enter the renderer if it
4156 // is childless, though. 4156 // is childless, though.
4157 if (view()->layoutState()->pageLogicalHeightChanged() && firstChild()) 4157 if (view()->layoutState()->pageLogicalHeightChanged() && firstChild())
4158 layoutScope.setChildNeedsLayout(this); 4158 layoutScope.setChildNeedsLayout(this);
4159 } 4159 }
4160 4160
4161 void RenderBox::addVisualEffectOverflow() 4161 void RenderBox::addVisualEffectOverflow()
4162 { 4162 {
4163 if (!style()->boxShadow() && !style()->hasBorderImageOutsets()) 4163 if (!style()->hasVisualOverflowingEffect())
4164 return; 4164 return;
4165 4165
4166 bool isFlipped = style()->isFlippedBlocksWritingMode(); 4166 bool isFlipped = style()->isFlippedBlocksWritingMode();
4167 bool isHorizontal = isHorizontalWritingMode(); 4167 bool isHorizontal = isHorizontalWritingMode();
4168 4168
4169 LayoutRect borderBox = borderBoxRect(); 4169 LayoutRect borderBox = borderBoxRect();
4170 LayoutUnit overflowMinX = borderBox.x(); 4170 LayoutUnit overflowMinX = borderBox.x();
4171 LayoutUnit overflowMaxX = borderBox.maxX(); 4171 LayoutUnit overflowMaxX = borderBox.maxX();
4172 LayoutUnit overflowMinY = borderBox.y(); 4172 LayoutUnit overflowMinY = borderBox.y();
4173 LayoutUnit overflowMaxY = borderBox.maxY(); 4173 LayoutUnit overflowMaxY = borderBox.maxY();
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
4705 return 0; 4705 return 0;
4706 4706
4707 if (!layoutState && !flowThreadContainingBlock()) 4707 if (!layoutState && !flowThreadContainingBlock())
4708 return 0; 4708 return 0;
4709 4709
4710 RenderBlock* containerBlock = containingBlock(); 4710 RenderBlock* containerBlock = containingBlock();
4711 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); 4711 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop();
4712 } 4712 }
4713 4713
4714 } // namespace WebCore 4714 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698