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

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

Issue 1817693002: Support edge-inclusive intersections in mapToVisibleRectInAncestorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer-idle-callback
Patch Set: compiler warning fix Created 4 years, 9 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 } 710 }
711 711
712 LayoutRect LayoutReplaced::selectionRectForPaintInvalidation(const LayoutBoxMode lObject* paintInvalidationContainer) const 712 LayoutRect LayoutReplaced::selectionRectForPaintInvalidation(const LayoutBoxMode lObject* paintInvalidationContainer) const
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, false);
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::mapRectToPaintBackingCoordinates(paintInvalidationContainer, 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();
(...skipping 28 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

Powered by Google App Engine
This is Rietveld 408576698