OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 LayoutBlock* block = containingBlock(); | 1019 LayoutBlock* block = containingBlock(); |
1020 if (block) | 1020 if (block) |
1021 block->adjustChildDebugRect(rect); | 1021 block->adjustChildDebugRect(rect); |
1022 | 1022 |
1023 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars))); | 1023 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars))); |
1024 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars))); | 1024 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars))); |
1025 | 1025 |
1026 return rect; | 1026 return rect; |
1027 } | 1027 } |
1028 | 1028 |
1029 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { | |
1030 // Frame scroll corner is painted using LayoutView as the display item client. | |
1031 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && | |
1032 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar())) | |
1033 return false; | |
1034 | |
1035 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); | |
1036 } | |
1037 | |
1038 } // namespace blink | 1029 } // namespace blink |
OLD | NEW |