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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestLocation.cpp

Issue 2391893004: Reformat comments in core/layout up until LayoutBox (Closed)
Patch Set: Rebase w/HEAD (again) Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/HitTestLocation.cpp
diff --git a/third_party/WebKit/Source/core/layout/HitTestLocation.cpp b/third_party/WebKit/Source/core/layout/HitTestLocation.cpp
index 65f99c1af3bc2e109830004cb365145800b5835d..9b3fe59871066fa927b5bfc9547290985977f100 100644
--- a/third_party/WebKit/Source/core/layout/HitTestLocation.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestLocation.cpp
@@ -110,18 +110,21 @@ void HitTestLocation::move(const LayoutSize& offset) {
template <typename RectType>
bool HitTestLocation::intersectsRect(const RectType& rect,
const RectType& boundingBox) const {
- // FIXME: When the hit test is not rect based we should use rect.contains(m_point).
+ // FIXME: When the hit test is not rect based we should use
+ // rect.contains(m_point).
// That does change some corner case tests though.
// First check if rect even intersects our bounding box.
if (!rect.intersects(boundingBox))
return false;
- // If the transformed rect is rectilinear the bounding box intersection was accurate.
+ // If the transformed rect is rectilinear the bounding box intersection was
+ // accurate.
if (m_isRectilinear)
return true;
- // If rect fully contains our bounding box, we are also sure of an intersection.
+ // If rect fully contains our bounding box, we are also sure of an
+ // intersection.
if (rect.contains(boundingBox))
return true;
@@ -154,8 +157,10 @@ IntRect HitTestLocation::rectForPoint(const LayoutPoint& point,
actualPoint -= IntSize(leftPadding, topPadding);
IntSize actualPadding(leftPadding + rightPadding, topPadding + bottomPadding);
- // As IntRect is left inclusive and right exclusive (seeing IntRect::contains(x, y)), adding "1".
- // FIXME: Remove this once non-rect based hit-detection stops using IntRect:intersects.
+ // As IntRect is left inclusive and right exclusive (seeing
+ // IntRect::contains(x, y)), adding "1".
+ // FIXME: Remove this once non-rect based hit-detection stops using
+ // IntRect:intersects.
actualPadding += IntSize(1, 1);
return IntRect(actualPoint, actualPadding);
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestCache.h ('k') | third_party/WebKit/Source/core/layout/HitTestRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698