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

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

Issue 2080593002: Revert of Let FrameView track object paint invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TrackInvalidation
Patch Set: Created 4 years, 6 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 * (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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 bool hasOverhangingFloats() { return parent() && containsFloats() && lowestF loatLogicalBottom() > logicalHeight(); } 372 bool hasOverhangingFloats() { return parent() && containsFloats() && lowestF loatLogicalBottom() > logicalHeight(); }
373 bool hasOverhangingFloat(LayoutBox*); 373 bool hasOverhangingFloat(LayoutBox*);
374 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni t yoffset); 374 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni t yoffset);
375 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl oats); 375 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl oats);
376 bool isOverhangingFloat(const FloatingObject& floatObject) const { return lo gicalBottomForFloat(floatObject) > logicalHeight(); } 376 bool isOverhangingFloat(const FloatingObject& floatObject) const { return lo gicalBottomForFloat(floatObject) > logicalHeight(); }
377 377
378 bool hitTestFloats(HitTestResult&, const HitTestLocation& locationInContaine r, const LayoutPoint& accumulatedOffset); 378 bool hitTestFloats(HitTestResult&, const HitTestLocation& locationInContaine r, const LayoutPoint& accumulatedOffset);
379 379
380 void invalidatePaintForOverhangingFloats(bool paintAllDescendants) final; 380 void invalidatePaintForOverhangingFloats(bool paintAllDescendants) final;
381 void invalidatePaintForOverflow() final; 381 void invalidatePaintForOverflow() final;
382 void invalidateDisplayItemClients(PaintInvalidationReason) const override; 382 void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidat ionContainer, PaintInvalidationReason) const override;
383 383
384 void clearFloats(EClear); 384 void clearFloats(EClear);
385 385
386 LayoutUnit logicalRightFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, LayoutUnit logicalHeight) const; 386 LayoutUnit logicalRightFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, LayoutUnit logicalHeight) const;
387 LayoutUnit logicalLeftFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit f ixedOffset, LayoutUnit logicalHeight) const; 387 LayoutUnit logicalLeftFloatOffsetForLine(LayoutUnit logicalTop, LayoutUnit f ixedOffset, LayoutUnit logicalHeight) const;
388 388
389 LayoutUnit logicalRightOffsetForPositioningFloat(LayoutUnit logicalTop, Layo utUnit fixedOffset, LayoutUnit* heightRemaining) const; 389 LayoutUnit logicalRightOffsetForPositioningFloat(LayoutUnit logicalTop, Layo utUnit fixedOffset, LayoutUnit* heightRemaining) const;
390 LayoutUnit logicalLeftOffsetForPositioningFloat(LayoutUnit logicalTop, Layou tUnit fixedOffset, LayoutUnit* heightRemaining) const; 390 LayoutUnit logicalLeftOffsetForPositioningFloat(LayoutUnit logicalTop, Layou tUnit fixedOffset, LayoutUnit* heightRemaining) const;
391 391
392 LayoutUnit adjustLogicalRightOffsetForLine(LayoutUnit offsetFromFloats, Inde ntTextOrNot applyTextIndent) const; 392 LayoutUnit adjustLogicalRightOffsetForLine(LayoutUnit offsetFromFloats, Inde ntTextOrNot applyTextIndent) const;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 662
663 // END METHODS DEFINED IN LayoutBlockFlowLine 663 // END METHODS DEFINED IN LayoutBlockFlowLine
664 664
665 }; 665 };
666 666
667 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 667 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
668 668
669 } // namespace blink 669 } // namespace blink
670 670
671 #endif // LayoutBlockFlow_h 671 #endif // LayoutBlockFlow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698