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

Side by Side Diff: Source/core/layout/LayoutBlockFlow.h

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 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
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutBlockFlow.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 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are 10 * modification, are permitted provided that the following conditions are
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 LayoutUnit getClearDelta(LayoutBox* child, LayoutUnit yPos); 287 LayoutUnit getClearDelta(LayoutBox* child, LayoutUnit yPos);
288 288
289 bool hasOverhangingFloats() { return parent() && !hasColumns() && containsFl oats() && lowestFloatLogicalBottom() > logicalHeight(); } 289 bool hasOverhangingFloats() { return parent() && !hasColumns() && containsFl oats() && lowestFloatLogicalBottom() > logicalHeight(); }
290 bool hasOverhangingFloat(LayoutBox*); 290 bool hasOverhangingFloat(LayoutBox*);
291 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni t yoffset); 291 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni t yoffset);
292 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl oats); 292 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl oats);
293 293
294 LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::F loatLeftRight) const; 294 LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::F loatLeftRight) const;
295 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit, ShapeOutsideFloatOffsetMo de = ShapeOutsideFloatMarginBoxOffset) const; 295 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit, ShapeOutsideFloatOffsetMo de = ShapeOutsideFloatMarginBoxOffset) const;
296 296
297 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT estLocation& locationInContainer, const LayoutPoint& accumulatedOffset) override final; 297 virtual bool hitTestFloats(HitTestResult&, const HitTestLocation& locationIn Container, const LayoutPoint& accumulatedOffset) override final;
298 298
299 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants) o verride final; 299 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants) o verride final;
300 virtual void invalidatePaintForOverflow() override final; 300 virtual void invalidatePaintForOverflow() override final;
301 virtual void paintFloats(const PaintInfo&, const LayoutPoint&, bool preserve Phase = false) override final; 301 virtual void paintFloats(const PaintInfo&, const LayoutPoint&, bool preserve Phase = false) override final;
302 virtual void paintSelection(const PaintInfo&, const LayoutPoint&) override f inal; 302 virtual void paintSelection(const PaintInfo&, const LayoutPoint&) override f inal;
303 virtual void clipOutFloatingObjects(const LayoutBlock*, const PaintInfo*, co nst LayoutPoint&, const LayoutSize&) const override; 303 virtual void clipOutFloatingObjects(const LayoutBlock*, const PaintInfo*, co nst LayoutPoint&, const LayoutSize&) const override;
304 void clearFloats(EClear); 304 void clearFloats(EClear);
305 305
306 LayoutUnit logicalRightFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, LayoutUnit logicalHeight) const; 306 LayoutUnit logicalRightFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, LayoutUnit logicalHeight) const;
307 LayoutUnit logicalLeftFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit f ixedOffset, LayoutUnit logicalHeight) const; 307 LayoutUnit logicalLeftFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit f ixedOffset, LayoutUnit logicalHeight) const;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 536
537 // END METHODS DEFINED IN LayoutBlockFlowLine 537 // END METHODS DEFINED IN LayoutBlockFlowLine
538 538
539 }; 539 };
540 540
541 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 541 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
542 542
543 } // namespace blink 543 } // namespace blink
544 544
545 #endif // LayoutBlockFlow_h 545 #endif // LayoutBlockFlow_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698