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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 void LayoutView::ComputeSelfHitTestRects(Vector<LayoutRect>& rects, | 434 void LayoutView::ComputeSelfHitTestRects(Vector<LayoutRect>& rects, |
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::InvalidatePaintIfNeeded( | 444 PaintInvalidationReason LayoutView::InvalidatePaint( |
445 const PaintInvalidationState& paint_invalidation_state) { | 445 const PaintInvalidationState& paint_invalidation_state) { |
446 return LayoutBlockFlow::InvalidatePaintIfNeeded(paint_invalidation_state); | 446 return LayoutBlockFlow::InvalidatePaint(paint_invalidation_state); |
447 } | 447 } |
448 | 448 |
449 PaintInvalidationReason LayoutView::InvalidatePaintIfNeeded( | 449 PaintInvalidationReason LayoutView::InvalidatePaint( |
450 const PaintInvalidatorContext& context) const { | 450 const PaintInvalidatorContext& context) const { |
451 return ViewPaintInvalidator(*this, context).InvalidatePaintIfNeeded(); | 451 return ViewPaintInvalidator(*this, context).InvalidatePaint(); |
452 } | 452 } |
453 | 453 |
454 void LayoutView::Paint(const PaintInfo& paint_info, | 454 void LayoutView::Paint(const PaintInfo& paint_info, |
455 const LayoutPoint& paint_offset) const { | 455 const LayoutPoint& paint_offset) const { |
456 ViewPainter(*this).Paint(paint_info, paint_offset); | 456 ViewPainter(*this).Paint(paint_info, paint_offset); |
457 } | 457 } |
458 | 458 |
459 void LayoutView::PaintBoxDecorationBackground(const PaintInfo& paint_info, | 459 void LayoutView::PaintBoxDecorationBackground(const PaintInfo& paint_info, |
460 const LayoutPoint&) const { | 460 const LayoutPoint&) const { |
461 ViewPainter(*this).PaintBoxDecorationBackground(paint_info); | 461 ViewPainter(*this).PaintBoxDecorationBackground(paint_info); |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 // Frame scroll corner is painted using LayoutView as the display item client. | 812 // Frame scroll corner is painted using LayoutView as the display item client. |
813 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && | 813 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && |
814 (GetFrameView()->HorizontalScrollbar() || | 814 (GetFrameView()->HorizontalScrollbar() || |
815 GetFrameView()->VerticalScrollbar())) | 815 GetFrameView()->VerticalScrollbar())) |
816 return false; | 816 return false; |
817 | 817 |
818 return LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); | 818 return LayoutBlockFlow::PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
819 } | 819 } |
820 | 820 |
821 } // namespace blink | 821 } // namespace blink |
OLD | NEW |