| OLD | NEW |
| 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 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 return false; | 2240 return false; |
| 2241 } | 2241 } |
| 2242 | 2242 |
| 2243 return true; | 2243 return true; |
| 2244 } | 2244 } |
| 2245 | 2245 |
| 2246 LayoutRect LayoutBox::localVisualRect() const { | 2246 LayoutRect LayoutBox::localVisualRect() const { |
| 2247 if (style()->visibility() != EVisibility::Visible) | 2247 if (style()->visibility() != EVisibility::Visible) |
| 2248 return LayoutRect(); | 2248 return LayoutRect(); |
| 2249 | 2249 |
| 2250 if (hasMask() && !RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 2251 return LayoutRect(layer()->boxForFilterOrMask()); |
| 2250 return selfVisualOverflowRect(); | 2252 return selfVisualOverflowRect(); |
| 2251 } | 2253 } |
| 2252 | 2254 |
| 2253 void LayoutBox::inflateVisualRectForFilterUnderContainer( | 2255 void LayoutBox::inflateVisualRectForFilterUnderContainer( |
| 2254 LayoutRect& rect, | 2256 LayoutRect& rect, |
| 2255 const LayoutObject& container, | 2257 const LayoutObject& container, |
| 2256 const LayoutBoxModelObject* ancestorToStopAt) const { | 2258 const LayoutBoxModelObject* ancestorToStopAt) const { |
| 2257 // Apply visual overflow caused by reflections and filters defined on objects | 2259 // Apply visual overflow caused by reflections and filters defined on objects |
| 2258 // between this object and container (not included) or ancestorToStopAt | 2260 // between this object and container (not included) or ancestorToStopAt |
| 2259 // (included). | 2261 // (included). |
| (...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5616 LayoutRect rect = frameRect(); | 5618 LayoutRect rect = frameRect(); |
| 5617 | 5619 |
| 5618 LayoutBlock* block = containingBlock(); | 5620 LayoutBlock* block = containingBlock(); |
| 5619 if (block) | 5621 if (block) |
| 5620 block->adjustChildDebugRect(rect); | 5622 block->adjustChildDebugRect(rect); |
| 5621 | 5623 |
| 5622 return rect; | 5624 return rect; |
| 5623 } | 5625 } |
| 5624 | 5626 |
| 5625 } // namespace blink | 5627 } // namespace blink |
| OLD | NEW |