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

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

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 // base class call. 921 // base class call.
922 LayoutBox::setSelectionState(state); 922 LayoutBox::setSelectionState(state);
923 923
924 if (!inlineBoxWrapper()) 924 if (!inlineBoxWrapper())
925 return; 925 return;
926 926
927 // We only include the space below the baseline in our layer's cached paint 927 // We only include the space below the baseline in our layer's cached paint
928 // invalidation rect if the image is selected. Since the selection state has 928 // invalidation rect if the image is selected. Since the selection state has
929 // changed update the rect. 929 // changed update the rect.
930 if (hasLayer()) { 930 if (hasLayer()) {
931 LayoutRect rect = localOverflowRectForPaintInvalidation(); 931 LayoutRect rect = localVisualRect();
932 PaintLayer::mapRectToPaintInvalidationBacking( 932 PaintLayer::mapRectToPaintInvalidationBacking(
933 *this, containerForPaintInvalidation(), rect); 933 *this, containerForPaintInvalidation(), rect);
934 setPreviousPaintInvalidationRect(rect); 934 setPreviousVisualRect(rect);
935 } 935 }
936 936
937 if (canUpdateSelectionOnRootLineBoxes()) 937 if (canUpdateSelectionOnRootLineBoxes())
938 inlineBoxWrapper()->root().setHasSelectedChildren(state != SelectionNone); 938 inlineBoxWrapper()->root().setHasSelectedChildren(state != SelectionNone);
939 } 939 }
940 940
941 void LayoutReplaced::IntrinsicSizingInfo::transpose() { 941 void LayoutReplaced::IntrinsicSizingInfo::transpose() {
942 size = size.transposedSize(); 942 size = size.transposedSize();
943 aspectRatio = aspectRatio.transposedSize(); 943 aspectRatio = aspectRatio.transposedSize();
944 std::swap(hasWidth, hasHeight); 944 std::swap(hasWidth, hasHeight);
945 } 945 }
946 946
947 } // namespace blink 947 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698