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

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

Issue 1741073002: Rename enums/functions that collide in chromium style in core/layout/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-6
Patch Set: get-names-7: rebase Created 4 years, 10 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) 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. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. 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 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1976 if (rect.isEmpty()) 1976 if (rect.isEmpty())
1977 return; 1977 return;
1978 } 1978 }
1979 1979
1980 if (containerSkipped) { 1980 if (containerSkipped) {
1981 // If the paintInvalidationContainer is below o, then we need to map the rect into paintInvalidationContainer's coordinates. 1981 // If the paintInvalidationContainer is below o, then we need to map the rect into paintInvalidationContainer's coordinates.
1982 LayoutSize containerOffset = ancestor->offsetFromAncestorContainer(conta iner); 1982 LayoutSize containerOffset = ancestor->offsetFromAncestorContainer(conta iner);
1983 rect.move(-containerOffset); 1983 rect.move(-containerOffset);
1984 // If the paintInvalidationContainer is fixed, then the rect is already in its coordinates so doesn't need viewport-adjusting. 1984 // If the paintInvalidationContainer is fixed, then the rect is already in its coordinates so doesn't need viewport-adjusting.
1985 if (ancestor->style()->position() != FixedPosition && container->isLayou tView()) 1985 if (ancestor->style()->position() != FixedPosition && container->isLayou tView())
1986 toLayoutView(container)->adjustViewportConstrainedOffset(rect, Layou tView::viewportConstrainedPosition(position)); 1986 toLayoutView(container)->adjustViewportConstrainedOffset(rect, Layou tView::toViewportConstrainedPosition(position));
1987 return; 1987 return;
1988 } 1988 }
1989 1989
1990 if (container->isLayoutView()) 1990 if (container->isLayoutView())
1991 toLayoutView(container)->mapToVisibleRectInAncestorSpace(ancestor, rect, LayoutView::viewportConstrainedPosition(position), paintInvalidationState); 1991 toLayoutView(container)->mapToVisibleRectInAncestorSpace(ancestor, rect, LayoutView::toViewportConstrainedPosition(position), paintInvalidationState);
1992 else 1992 else
1993 container->mapToVisibleRectInAncestorSpace(ancestor, rect, paintInvalida tionState); 1993 container->mapToVisibleRectInAncestorSpace(ancestor, rect, paintInvalida tionState);
1994 } 1994 }
1995 1995
1996 void LayoutBox::inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect& p aintInvalidationRect) const 1996 void LayoutBox::inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect& p aintInvalidationRect) const
1997 { 1997 {
1998 if (hasReflection()) 1998 if (hasReflection())
1999 paintInvalidationRect.unite(reflectedRect(paintInvalidationRect)); 1999 paintInvalidationRect.unite(reflectedRect(paintInvalidationRect));
2000 2000
2001 if (layer() && layer()->hasFilter()) 2001 if (layer() && layer()->hasFilter())
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after
4682 } 4682 }
4683 4683
4684 void LayoutBox::IntrinsicSizingInfo::transpose() 4684 void LayoutBox::IntrinsicSizingInfo::transpose()
4685 { 4685 {
4686 size = size.transposedSize(); 4686 size = size.transposedSize();
4687 aspectRatio = aspectRatio.transposedSize(); 4687 aspectRatio = aspectRatio.transposedSize();
4688 std::swap(hasWidth, hasHeight); 4688 std::swap(hasWidth, hasHeight);
4689 } 4689 }
4690 4690
4691 } // namespace blink 4691 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698