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

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

Issue 2852573002: Rename InvalidatePaintIfNeeded to drop deprecated IfNeeded suffix. (Closed)
Patch Set: Created 3 years, 7 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) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 g_positioned_descendants_map->at(container); 989 g_positioned_descendants_map->at(container);
990 DCHECK(positioned_descendants); 990 DCHECK(positioned_descendants);
991 DCHECK(positioned_descendants->Contains(o)); 991 DCHECK(positioned_descendants->Contains(o));
992 positioned_descendants->erase(o); 992 positioned_descendants->erase(o);
993 if (positioned_descendants->IsEmpty()) { 993 if (positioned_descendants->IsEmpty()) {
994 g_positioned_descendants_map->erase(container); 994 g_positioned_descendants_map->erase(container);
995 container->has_positioned_objects_ = false; 995 container->has_positioned_objects_ = false;
996 } 996 }
997 } 997 }
998 998
999 PaintInvalidationReason LayoutBlock::InvalidatePaintIfNeeded( 999 PaintInvalidationReason LayoutBlock::InvalidatePaint(
1000 const PaintInvalidationState& paint_invalidation_state) { 1000 const PaintInvalidationState& paint_invalidation_state) {
1001 return LayoutBox::InvalidatePaintIfNeeded(paint_invalidation_state); 1001 return LayoutBox::InvalidatePaint(paint_invalidation_state);
1002 } 1002 }
1003 1003
1004 PaintInvalidationReason LayoutBlock::InvalidatePaintIfNeeded( 1004 PaintInvalidationReason LayoutBlock::InvalidatePaint(
1005 const PaintInvalidatorContext& context) const { 1005 const PaintInvalidatorContext& context) const {
1006 return BlockPaintInvalidator(*this).InvalidatePaintIfNeeded(context); 1006 return BlockPaintInvalidator(*this).InvalidatePaint(context);
1007 } 1007 }
1008 1008
1009 void LayoutBlock::ClearPreviousVisualRects() { 1009 void LayoutBlock::ClearPreviousVisualRects() {
1010 LayoutBox::ClearPreviousVisualRects(); 1010 LayoutBox::ClearPreviousVisualRects();
1011 BlockPaintInvalidator(*this).ClearPreviousVisualRects(); 1011 BlockPaintInvalidator(*this).ClearPreviousVisualRects();
1012 } 1012 }
1013 1013
1014 void LayoutBlock::RemovePositionedObjects( 1014 void LayoutBlock::RemovePositionedObjects(
1015 LayoutObject* o, 1015 LayoutObject* o,
1016 ContainingBlockState containing_block_state) { 1016 ContainingBlockState containing_block_state) {
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 bool LayoutBlock::HasDefiniteLogicalHeight() const { 2206 bool LayoutBlock::HasDefiniteLogicalHeight() const {
2207 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); 2207 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1);
2208 } 2208 }
2209 2209
2210 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const { 2210 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const {
2211 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) || 2211 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) ||
2212 LayoutBox::NeedsPreferredWidthsRecalculation(); 2212 LayoutBox::NeedsPreferredWidthsRecalculation();
2213 } 2213 }
2214 2214
2215 } // namespace blink 2215 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698