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

Side by Side Diff: Source/core/rendering/RenderListMarker.cpp

Issue 23494007: Implement getter/setter in PaintInfo::rect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No signed off. Created 7 years, 3 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
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 return; 1129 return;
1130 1130
1131 if (style()->visibility() != VISIBLE) 1131 if (style()->visibility() != VISIBLE)
1132 return; 1132 return;
1133 1133
1134 LayoutPoint boxOrigin(paintOffset + location()); 1134 LayoutPoint boxOrigin(paintOffset + location());
1135 LayoutRect overflowRect(visualOverflowRect()); 1135 LayoutRect overflowRect(visualOverflowRect());
1136 overflowRect.moveBy(boxOrigin); 1136 overflowRect.moveBy(boxOrigin);
1137 overflowRect.inflate(maximalOutlineSize(paintInfo.phase)); 1137 overflowRect.inflate(maximalOutlineSize(paintInfo.phase));
1138 1138
1139 if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect))) 1139 if (!paintInfo.rect().intersects(pixelSnappedIntRect(overflowRect)))
1140 return; 1140 return;
1141 1141
1142 LayoutRect box(boxOrigin, size()); 1142 LayoutRect box(boxOrigin, size());
1143 1143
1144 IntRect marker = getRelativeMarkerRect(); 1144 IntRect marker = getRelativeMarkerRect();
1145 marker.moveBy(roundedIntPoint(boxOrigin)); 1145 marker.moveBy(roundedIntPoint(boxOrigin));
1146 1146
1147 GraphicsContext* context = paintInfo.context; 1147 GraphicsContext* context = paintInfo.context;
1148 1148
1149 if (isImage()) { 1149 if (isImage()) {
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
1841 1841
1842 if (clipToVisibleContent) 1842 if (clipToVisibleContent)
1843 computeRectForRepaint(repaintContainer, rect); 1843 computeRectForRepaint(repaintContainer, rect);
1844 else 1844 else
1845 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing BoundingBox(); 1845 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing BoundingBox();
1846 1846
1847 return rect; 1847 return rect;
1848 } 1848 }
1849 1849
1850 } // namespace WebCore 1850 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698