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

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

Issue 1829353004: Rename PaintLayer::mapXXXToPaintBackingCoordinates() to mapXXXInPaintInvalidationContainerToBacking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 { 713 {
714 ASSERT(!needsLayout()); 714 ASSERT(!needsLayout());
715 715
716 LayoutRect rect = localSelectionRect(); 716 LayoutRect rect = localSelectionRect();
717 if (rect.isEmpty()) 717 if (rect.isEmpty())
718 return rect; 718 return rect;
719 719
720 mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0); 720 mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0);
721 // FIXME: groupedMapping() leaks the squashing abstraction. 721 // FIXME: groupedMapping() leaks the squashing abstraction.
722 if (paintInvalidationContainer->layer()->groupedMapping()) 722 if (paintInvalidationContainer->layer()->groupedMapping())
723 PaintLayer::mapRectToPaintBackingCoordinates(paintInvalidationContainer, rect); 723 PaintLayer::mapRectInPaintInvalidationContainerToBacking(paintInvalidati onContainer, rect);
724 return rect; 724 return rect;
725 } 725 }
726 726
727 LayoutRect LayoutReplaced::localSelectionRect() const 727 LayoutRect LayoutReplaced::localSelectionRect() const
728 { 728 {
729 if (getSelectionState() == SelectionNone) 729 if (getSelectionState() == SelectionNone)
730 return LayoutRect(); 730 return LayoutRect();
731 731
732 if (!inlineBoxWrapper()) { 732 if (!inlineBoxWrapper()) {
733 // We're a block-level replaced element. Just return our own dimensions . 733 // We're a block-level replaced element. Just return our own dimensions .
(...skipping 25 matching lines...) Expand all
759 } 759 }
760 760
761 void LayoutReplaced::IntrinsicSizingInfo::transpose() 761 void LayoutReplaced::IntrinsicSizingInfo::transpose()
762 { 762 {
763 size = size.transposedSize(); 763 size = size.transposedSize();
764 aspectRatio = aspectRatio.transposedSize(); 764 aspectRatio = aspectRatio.transposedSize();
765 std::swap(hasWidth, hasHeight); 765 std::swap(hasWidth, hasHeight);
766 } 766 }
767 767
768 } // namespace blink 768 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698