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

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

Issue 2247543003: Tweak priorities of paint invalidation reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prioritize reasons "became visible/invisible" Created 4 years, 4 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 virtual LayoutObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/, SubtreeLayoutScope&); 335 virtual LayoutObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/, SubtreeLayoutScope&);
336 bool updateLogicalWidthAndColumnWidth() override; 336 bool updateLogicalWidthAndColumnWidth() override;
337 337
338 void setLogicalLeftForChild(LayoutBox& child, LayoutUnit logicalLeft); 338 void setLogicalLeftForChild(LayoutBox& child, LayoutUnit logicalLeft);
339 void setLogicalTopForChild(LayoutBox& child, LayoutUnit logicalTop); 339 void setLogicalTopForChild(LayoutBox& child, LayoutUnit logicalTop);
340 void determineLogicalLeftPositionForChild(LayoutBox& child); 340 void determineLogicalLeftPositionForChild(LayoutBox& child);
341 341
342 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse t, IncludeBlockVisualOverflowOrNot) const override; 342 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse t, IncludeBlockVisualOverflowOrNot) const override;
343 343
344 bool paintedOutputOfObjectHasNoEffect() const override; 344 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override;
Xianzhu 2016/08/15 22:18:28 This is renamed because it doesn't include the cas
345 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override; 345 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
346 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidatorContex t&) const override; 346 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidatorContex t&) const override;
347 347
348 Node* nodeForHitTest() const final; 348 Node* nodeForHitTest() const final;
349 bool hitTestChildren(HitTestResult&, const HitTestLocation& locationInContai ner, const LayoutPoint& accumulatedOffset, HitTestAction) override; 349 bool hitTestChildren(HitTestResult&, const HitTestLocation& locationInContai ner, const LayoutPoint& accumulatedOffset, HitTestAction) override;
350 350
351 LayoutSize accumulateInFlowPositionOffsets() const override; 351 LayoutSize accumulateInFlowPositionOffsets() const override;
352 352
353 private: 353 private:
354 bool layoutBlockFlow(bool relayoutChildren, LayoutUnit& pageLogicalHeight, S ubtreeLayoutScope&); 354 bool layoutBlockFlow(bool relayoutChildren, LayoutUnit& pageLogicalHeight, S ubtreeLayoutScope&);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 661
662 // END METHODS DEFINED IN LayoutBlockFlowLine 662 // END METHODS DEFINED IN LayoutBlockFlowLine
663 663
664 }; 664 };
665 665
666 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 666 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
667 667
668 } // namespace blink 668 } // namespace blink
669 669
670 #endif // LayoutBlockFlow_h 670 #endif // LayoutBlockFlow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698