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

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

Issue 1661523002: Update should paint flag when a float's composited scrolling status changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build Created 4 years, 10 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 void removeFloatingObject(LayoutBox*); 326 void removeFloatingObject(LayoutBox*);
327 void removeFloatingObjectsBelow(FloatingObject*, int logicalOffset); 327 void removeFloatingObjectsBelow(FloatingObject*, int logicalOffset);
328 328
329 LayoutUnit getClearDelta(LayoutBox* child, LayoutUnit yPos); 329 LayoutUnit getClearDelta(LayoutBox* child, LayoutUnit yPos);
330 330
331 bool hasOverhangingFloats() { return parent() && containsFloats() && lowestF loatLogicalBottom() > logicalHeight(); } 331 bool hasOverhangingFloats() { return parent() && containsFloats() && lowestF loatLogicalBottom() > logicalHeight(); }
332 bool hasOverhangingFloat(LayoutBox*); 332 bool hasOverhangingFloat(LayoutBox*);
333 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni t yoffset); 333 void addIntrudingFloats(LayoutBlockFlow* prev, LayoutUnit xoffset, LayoutUni t yoffset);
334 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl oats); 334 void addOverhangingFloats(LayoutBlockFlow* child, bool makeChildPaintOtherFl oats);
335 bool isOverhangingFloat(const FloatingObject& floatObject) const { return lo gicalBottomForFloat(floatObject) > logicalHeight(); }
335 336
336 LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::F loatLeftRight) const; 337 LayoutUnit lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::F loatLeftRight) const;
337 338
338 bool hitTestFloats(HitTestResult&, const HitTestLocation& locationInContaine r, const LayoutPoint& accumulatedOffset) final; 339 bool hitTestFloats(HitTestResult&, const HitTestLocation& locationInContaine r, const LayoutPoint& accumulatedOffset) final;
339 340
340 void invalidatePaintForOverhangingFloats(bool paintAllDescendants) final; 341 void invalidatePaintForOverhangingFloats(bool paintAllDescendants) final;
341 void invalidatePaintForOverflow() final; 342 void invalidatePaintForOverflow() final;
342 void paintFloats(const PaintInfo&, const LayoutPoint&) const final; 343 void paintFloats(const PaintInfo&, const LayoutPoint&) const final;
343 virtual void clipOutFloatingObjects(const LayoutBlock*, ClipScope&, const La youtPoint&, const LayoutSize&) const; 344 virtual void clipOutFloatingObjects(const LayoutBlock*, ClipScope&, const La youtPoint&, const LayoutSize&) const;
344 void clearFloats(EClear); 345 void clearFloats(EClear);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 LayoutMultiColumnFlowThread* m_multiColumnFlowThread; 470 LayoutMultiColumnFlowThread* m_multiColumnFlowThread;
470 471
471 int m_lineBreakToAvoidWidow; 472 int m_lineBreakToAvoidWidow;
472 bool m_didBreakAtLineToAvoidWidow : 1; 473 bool m_didBreakAtLineToAvoidWidow : 1;
473 bool m_discardMarginBefore : 1; 474 bool m_discardMarginBefore : 1;
474 bool m_discardMarginAfter : 1; 475 bool m_discardMarginAfter : 1;
475 }; 476 };
476 477
477 const FloatingObjects* floatingObjects() const { return m_floatingObjects.ge t(); } 478 const FloatingObjects* floatingObjects() const { return m_floatingObjects.ge t(); }
478 479
480 static void setAncestorShouldPaintFloatingObject(const LayoutBox& floatBox, bool shouldPaint);
479 481
480 protected: 482 protected:
481 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData- >m_margins.positiveMarginBefore() : LayoutBlockFlowRareData::positiveMarginBefor eDefault(this); } 483 LayoutUnit maxPositiveMarginBefore() const { return m_rareData ? m_rareData- >m_margins.positiveMarginBefore() : LayoutBlockFlowRareData::positiveMarginBefor eDefault(this); }
482 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData- >m_margins.negativeMarginBefore() : LayoutBlockFlowRareData::negativeMarginBefor eDefault(this); } 484 LayoutUnit maxNegativeMarginBefore() const { return m_rareData ? m_rareData- >m_margins.negativeMarginBefore() : LayoutBlockFlowRareData::negativeMarginBefor eDefault(this); }
483 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData-> m_margins.positiveMarginAfter() : LayoutBlockFlowRareData::positiveMarginAfterDe fault(this); } 485 LayoutUnit maxPositiveMarginAfter() const { return m_rareData ? m_rareData-> m_margins.positiveMarginAfter() : LayoutBlockFlowRareData::positiveMarginAfterDe fault(this); }
484 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData-> m_margins.negativeMarginAfter() : LayoutBlockFlowRareData::negativeMarginAfterDe fault(this); } 486 LayoutUnit maxNegativeMarginAfter() const { return m_rareData ? m_rareData-> m_margins.negativeMarginAfter() : LayoutBlockFlowRareData::negativeMarginAfterDe fault(this); }
485 487
486 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg); 488 void setMaxMarginBeforeValues(LayoutUnit pos, LayoutUnit neg);
487 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg); 489 void setMaxMarginAfterValues(LayoutUnit pos, LayoutUnit neg);
488 490
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 589
588 // END METHODS DEFINED IN LayoutBlockFlowLine 590 // END METHODS DEFINED IN LayoutBlockFlowLine
589 591
590 }; 592 };
591 593
592 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 594 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
593 595
594 } // namespace blink 596 } // namespace blink
595 597
596 #endif // LayoutBlockFlow_h 598 #endif // LayoutBlockFlow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/FloatingObjects.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698