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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2194273002: Fix border radius on composited children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years 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
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. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
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 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 return false; 2250 return false;
2251 2251
2252 // If the box has clip or mask, we need issue paint invalidation to cover 2252 // If the box has clip or mask, we need issue paint invalidation to cover
2253 // the changed part of children when the box got resized. In SPv2 this is 2253 // the changed part of children when the box got resized. In SPv2 this is
2254 // handled by detecting paint property changes. 2254 // handled by detecting paint property changes.
2255 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 2255 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
2256 if (hasClipRelatedProperty() || hasControlClip() || hasMask()) 2256 if (hasClipRelatedProperty() || hasControlClip() || hasMask())
2257 return false; 2257 return false;
2258 } 2258 }
2259 2259
2260 // If the box paints into its own backing, we can assume that it's painting
2261 // must have some effect.
chrishtr 2016/12/12 19:41:46 s/can/must/. Also mention one such case, which is
Stephen Chennney 2016/12/12 19:49:47 Done.
2262 if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking)
2263 return false;
2264
2260 return true; 2265 return true;
2261 } 2266 }
2262 2267
2263 LayoutRect LayoutBox::localVisualRect() const { 2268 LayoutRect LayoutBox::localVisualRect() const {
2264 if (style()->visibility() != EVisibility::Visible) 2269 if (style()->visibility() != EVisibility::Visible)
2265 return LayoutRect(); 2270 return LayoutRect();
2266 2271
2267 if (hasMask() && !RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 2272 if (hasMask() && !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
2268 return LayoutRect(layer()->boxForFilterOrMask()); 2273 return LayoutRect(layer()->boxForFilterOrMask());
2269 return selfVisualOverflowRect(); 2274 return selfVisualOverflowRect();
(...skipping 3382 matching lines...) Expand 10 before | Expand all | Expand 10 after
5652 LayoutRect rect = frameRect(); 5657 LayoutRect rect = frameRect();
5653 5658
5654 LayoutBlock* block = containingBlock(); 5659 LayoutBlock* block = containingBlock();
5655 if (block) 5660 if (block)
5656 block->adjustChildDebugRect(rect); 5661 block->adjustChildDebugRect(rect);
5657 5662
5658 return rect; 5663 return rect;
5659 } 5664 }
5660 5665
5661 } // namespace blink 5666 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698