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

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

Issue 2770943003: Include control clip in list of clip-related properties. (Closed)
Patch Set: Merge branch 'master' into squash Created 3 years, 8 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
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 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 2289
2290 // Both mask and clip-path generates drawing display items that depends on 2290 // Both mask and clip-path generates drawing display items that depends on
2291 // the size of the box. 2291 // the size of the box.
2292 if (hasMask() || hasClipPath()) 2292 if (hasMask() || hasClipPath())
2293 return false; 2293 return false;
2294 2294
2295 // If the box has any kind of clip, we need issue paint invalidation to cover 2295 // If the box has any kind of clip, we need issue paint invalidation to cover
2296 // the changed part of children when the box got resized. In SPv2 this is 2296 // the changed part of children when the box got resized. In SPv2 this is
2297 // handled by detecting paint property changes. 2297 // handled by detecting paint property changes.
2298 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 2298 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
2299 if (hasClipRelatedProperty() || hasControlClip()) 2299 if (hasClipRelatedProperty())
2300 return false; 2300 return false;
2301 } 2301 }
2302 2302
2303 // If the box paints into its own backing, we can assume that it's painting 2303 // If the box paints into its own backing, we can assume that it's painting
2304 // may have some effect. For example, honoring the border-radius clip on 2304 // may have some effect. For example, honoring the border-radius clip on
2305 // a composited child paints into a mask for an otherwise non-painting 2305 // a composited child paints into a mask for an otherwise non-painting
2306 // element, because children of that element will require the mask. 2306 // element, because children of that element will require the mask.
2307 if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking) 2307 if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking)
2308 return false; 2308 return false;
2309 2309
(...skipping 3443 matching lines...) Expand 10 before | Expand all | Expand 10 after
5753 5753
5754 void LayoutBox::MutableForPainting:: 5754 void LayoutBox::MutableForPainting::
5755 savePreviousContentBoxSizeAndLayoutOverflowRect() { 5755 savePreviousContentBoxSizeAndLayoutOverflowRect() {
5756 auto& rareData = layoutBox().ensureRareData(); 5756 auto& rareData = layoutBox().ensureRareData();
5757 rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true; 5757 rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true;
5758 rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size(); 5758 rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size();
5759 rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect(); 5759 rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect();
5760 } 5760 }
5761 5761
5762 } // namespace blink 5762 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698