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

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: address reviewer feedback 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) 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS crollbarLayer; } 406 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS crollbarLayer; }
407 void resetRebuildScrollbarLayerFlags(); 407 void resetRebuildScrollbarLayerFlags();
408 408
409 bool needsScrollPositionClamp() const { return m_needsScrollPositionClamp; } 409 bool needsScrollPositionClamp() const { return m_needsScrollPositionClamp; }
410 void setNeedsScrollPositionClamp(bool val) { m_needsScrollPositionClamp = va l; } 410 void setNeedsScrollPositionClamp(bool val) { m_needsScrollPositionClamp = va l; }
411 411
412 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti ckyConstraintsMap; } 412 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti ckyConstraintsMap; }
413 void invalidateAllStickyConstraints(); 413 void invalidateAllStickyConstraints();
414 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate = true); 414 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate = true);
415 415
416 uint64_t id() const;
417
416 DECLARE_VIRTUAL_TRACE(); 418 DECLARE_VIRTUAL_TRACE();
417 419
418 private: 420 private:
419 explicit PaintLayerScrollableArea(PaintLayer&); 421 explicit PaintLayerScrollableArea(PaintLayer&);
420 422
421 bool hasHorizontalOverflow() const; 423 bool hasHorizontalOverflow() const;
422 bool hasVerticalOverflow() const; 424 bool hasVerticalOverflow() const;
423 bool hasScrollableHorizontalOverflow() const; 425 bool hasScrollableHorizontalOverflow() const;
424 bool hasScrollableVerticalOverflow() const; 426 bool hasScrollableVerticalOverflow() const;
425 bool visualViewportSuppliesScrollbars() const; 427 bool visualViewportSuppliesScrollbars() const;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 #endif 518 #endif
517 }; 519 };
518 520
519 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 521 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
520 scrollableArea->isPaintLayerScrollableArea(), 522 scrollableArea->isPaintLayerScrollableArea(),
521 scrollableArea.isPaintLayerScrollableArea()); 523 scrollableArea.isPaintLayerScrollableArea());
522 524
523 } // namespace blink 525 } // namespace blink
524 526
525 #endif // LayerScrollableArea_h 527 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698