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

Side by Side Diff: Source/platform/scroll/ScrollableArea.h

Issue 403593005: Clear scrollbar damages in time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 const IntRect& horizontalBarDamage() const 207 const IntRect& horizontalBarDamage() const
208 { 208 {
209 ASSERT(m_hasHorizontalBarDamage); 209 ASSERT(m_hasHorizontalBarDamage);
210 return m_horizontalBarDamage; 210 return m_horizontalBarDamage;
211 } 211 }
212 212
213 void resetScrollbarDamage() 213 void resetScrollbarDamage()
214 { 214 {
215 m_hasVerticalBarDamage = false; 215 m_hasVerticalBarDamage = false;
216 m_verticalBarDamage = IntRect();
216 m_hasHorizontalBarDamage = false; 217 m_hasHorizontalBarDamage = false;
218 m_horizontalBarDamage = IntRect();
217 } 219 }
218 virtual GraphicsLayer* layerForContainer() const; 220 virtual GraphicsLayer* layerForContainer() const;
219 virtual GraphicsLayer* layerForScrolling() const { return 0; } 221 virtual GraphicsLayer* layerForScrolling() const { return 0; }
220 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } 222 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; }
221 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } 223 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; }
222 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } 224 virtual GraphicsLayer* layerForScrollCorner() const { return 0; }
223 bool hasLayerForHorizontalScrollbar() const; 225 bool hasLayerForHorizontalScrollbar() const;
224 bool hasLayerForVerticalScrollbar() const; 226 bool hasLayerForVerticalScrollbar() const;
225 bool hasLayerForScrollCorner() const; 227 bool hasLayerForScrollCorner() const;
226 228
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // vertical-lr / ltr NO NO 281 // vertical-lr / ltr NO NO
280 // vertical-lr / rtl NO YES 282 // vertical-lr / rtl NO YES
281 // vertical-rl / ltr YES NO 283 // vertical-rl / ltr YES NO
282 // vertical-rl / rtl YES YES 284 // vertical-rl / rtl YES YES
283 IntPoint m_scrollOrigin; 285 IntPoint m_scrollOrigin;
284 }; 286 };
285 287
286 } // namespace blink 288 } // namespace blink
287 289
288 #endif // ScrollableArea_h 290 #endif // ScrollableArea_h
OLDNEW
« Source/core/rendering/RenderBox.cpp ('K') | « Source/core/rendering/RenderLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698