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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 // Were we laid out with a vertical scrollbar at the time we were marked as 430 // Were we laid out with a vertical scrollbar at the time we were marked as
431 // needing relayout by PreventRelayoutScope? 431 // needing relayout by PreventRelayoutScope?
432 bool hadVerticalScrollbarBeforeRelayout() const { return m_hadVerticalScroll barBeforeRelayout; } 432 bool hadVerticalScrollbarBeforeRelayout() const { return m_hadVerticalScroll barBeforeRelayout; }
433 void setHadVerticalScrollbarBeforeRelayout(bool val) { m_hadVerticalScrollba rBeforeRelayout = val; } 433 void setHadVerticalScrollbarBeforeRelayout(bool val) { m_hadVerticalScrollba rBeforeRelayout = val; }
434 434
435 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti ckyConstraintsMap; } 435 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti ckyConstraintsMap; }
436 void invalidateAllStickyConstraints(); 436 void invalidateAllStickyConstraints();
437 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate = true); 437 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate = true);
438 438
439 uint64_t id() const;
440
439 DECLARE_VIRTUAL_TRACE(); 441 DECLARE_VIRTUAL_TRACE();
440 442
441 private: 443 private:
442 explicit PaintLayerScrollableArea(PaintLayer&); 444 explicit PaintLayerScrollableArea(PaintLayer&);
443 445
444 bool hasHorizontalOverflow() const; 446 bool hasHorizontalOverflow() const;
445 bool hasVerticalOverflow() const; 447 bool hasVerticalOverflow() const;
446 bool hasScrollableHorizontalOverflow() const; 448 bool hasScrollableHorizontalOverflow() const;
447 bool hasScrollableVerticalOverflow() const; 449 bool hasScrollableVerticalOverflow() const;
448 bool visualViewportSuppliesScrollbars() const; 450 bool visualViewportSuppliesScrollbars() const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 #endif 544 #endif
543 }; 545 };
544 546
545 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 547 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
546 scrollableArea->isPaintLayerScrollableArea(), 548 scrollableArea->isPaintLayerScrollableArea(),
547 scrollableArea.isPaintLayerScrollableArea()); 549 scrollableArea.isPaintLayerScrollableArea());
548 550
549 } // namespace blink 551 } // namespace blink
550 552
551 #endif // LayerScrollableArea_h 553 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698