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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 9 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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 IntRect buttonRect(ScrollbarPart) const; 53 IntRect buttonRect(ScrollbarPart) const;
54 IntRect trackRect(int startLength, int endLength) const; 54 IntRect trackRect(int startLength, int endLength) const;
55 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&) const; 55 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&) const;
56 56
57 int minimumThumbLength() const; 57 int minimumThumbLength() const;
58 58
59 bool isOverlayScrollbar() const override { return false; } 59 bool isOverlayScrollbar() const override { return false; }
60 60
61 LayoutScrollbarPart* getPart(ScrollbarPart partType) { 61 LayoutScrollbarPart* getPart(ScrollbarPart partType) {
62 return m_parts.get(partType); 62 return m_parts.at(partType);
63 } 63 }
64 const LayoutScrollbarPart* getPart(ScrollbarPart partType) const { 64 const LayoutScrollbarPart* getPart(ScrollbarPart partType) const {
65 return m_parts.get(partType); 65 return m_parts.at(partType);
66 } 66 }
67 67
68 void invalidateDisplayItemClientsOfScrollbarParts(); 68 void invalidateDisplayItemClientsOfScrollbarParts();
69 69
70 void setVisualRect(const LayoutRect&) final; 70 void setVisualRect(const LayoutRect&) final;
71 71
72 DECLARE_VIRTUAL_TRACE(); 72 DECLARE_VIRTUAL_TRACE();
73 73
74 protected: 74 protected:
75 LayoutScrollbar(ScrollableArea*, ScrollbarOrientation, Element*); 75 LayoutScrollbar(ScrollableArea*, ScrollbarOrientation, Element*);
(...skipping 24 matching lines...) Expand all
100 100
101 DEFINE_TYPE_CASTS(LayoutScrollbar, 101 DEFINE_TYPE_CASTS(LayoutScrollbar,
102 ScrollbarThemeClient, 102 ScrollbarThemeClient,
103 scrollbar, 103 scrollbar,
104 scrollbar->isCustomScrollbar(), 104 scrollbar->isCustomScrollbar(),
105 scrollbar.isCustomScrollbar()); 105 scrollbar.isCustomScrollbar());
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // LayoutScrollbar_h 109 #endif // LayoutScrollbar_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698