| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 const LayoutPoint&) const { | 435 const LayoutPoint&) const { |
| 436 // Record the entire size of the contents of the frame. Note that we don't | 436 // Record the entire size of the contents of the frame. Note that we don't |
| 437 // just use the viewport size (containing block) here because we want to | 437 // just use the viewport size (containing block) here because we want to |
| 438 // ensure this includes all children (so we can avoid walking them | 438 // ensure this includes all children (so we can avoid walking them |
| 439 // explicitly). | 439 // explicitly). |
| 440 rects.push_back(LayoutRect(LayoutPoint::Zero(), | 440 rects.push_back(LayoutRect(LayoutPoint::Zero(), |
| 441 LayoutSize(GetFrameView()->ContentsSize()))); | 441 LayoutSize(GetFrameView()->ContentsSize()))); |
| 442 } | 442 } |
| 443 | 443 |
| 444 PaintInvalidationReason LayoutView::InvalidatePaint( | 444 PaintInvalidationReason LayoutView::InvalidatePaint( |
| 445 const PaintInvalidationState& paint_invalidation_state) { | |
| 446 return LayoutBlockFlow::InvalidatePaint(paint_invalidation_state); | |
| 447 } | |
| 448 | |
| 449 PaintInvalidationReason LayoutView::InvalidatePaint( | |
| 450 const PaintInvalidatorContext& context) const { | 445 const PaintInvalidatorContext& context) const { |
| 451 return ViewPaintInvalidator(*this, context).InvalidatePaint(); | 446 return ViewPaintInvalidator(*this, context).InvalidatePaint(); |
| 452 } | 447 } |
| 453 | 448 |
| 454 void LayoutView::Paint(const PaintInfo& paint_info, | 449 void LayoutView::Paint(const PaintInfo& paint_info, |
| 455 const LayoutPoint& paint_offset) const { | 450 const LayoutPoint& paint_offset) const { |
| 456 ViewPainter(*this).Paint(paint_info, paint_offset); | 451 ViewPainter(*this).Paint(paint_info, paint_offset); |
| 457 } | 452 } |
| 458 | 453 |
| 459 void LayoutView::PaintBoxDecorationBackground(const PaintInfo& paint_info, | 454 void LayoutView::PaintBoxDecorationBackground(const PaintInfo& paint_info, |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 // Frame scroll corner is painted using LayoutView as the display item client. | 807 // Frame scroll corner is painted using LayoutView as the display item client. |
| 813 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && | 808 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && |
| 814 (GetFrameView()->HorizontalScrollbar() || | 809 (GetFrameView()->HorizontalScrollbar() || |
| 815 GetFrameView()->VerticalScrollbar())) | 810 GetFrameView()->VerticalScrollbar())) |
| 816 return false; | 811 return false; |
| 817 | 812 |
| 818 return LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); | 813 return LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
| 819 } | 814 } |
| 820 | 815 |
| 821 } // namespace blink | 816 } // namespace blink |
| OLD | NEW |