Chromium Code Reviews

Unified Diff: Source/core/platform/ScrollView.cpp

Issue 24130008: Rename ENABLE(RUBBER_BANDING) to USE(RUBBER_BANDING). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/platform/ScrollableArea.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/ScrollView.cpp
diff --git a/Source/core/platform/ScrollView.cpp b/Source/core/platform/ScrollView.cpp
index bbb2b2db74266366525bae36e5e55a76fe51a6b5..616dee26b7c0114a70c59b352c7e7243e20d6697 100644
--- a/Source/core/platform/ScrollView.cpp
+++ b/Source/core/platform/ScrollView.cpp
@@ -934,7 +934,7 @@ void ScrollView::paint(GraphicsContext* context, const IntRect& rect)
paintContents(context, documentDirtyRect);
}
-#if ENABLE(RUBBER_BANDING)
+#if USE(RUBBER_BANDING)
if (!layerForOverhangAreas())
calculateAndPaintOverhangAreas(context, rect);
#else
@@ -1008,7 +1008,7 @@ void ScrollView::updateOverhangAreas()
IntRect horizontalOverhangRect;
IntRect verticalOverhangRect;
calculateOverhangAreasForPainting(horizontalOverhangRect, verticalOverhangRect);
-#if ENABLE(RUBBER_BANDING)
+#if USE(RUBBER_BANDING)
if (GraphicsLayer* overhangLayer = layerForOverhangAreas()) {
bool hasOverhangArea = !horizontalOverhangRect.isEmpty() || !verticalOverhangRect.isEmpty();
overhangLayer->setDrawsContent(hasOverhangArea);
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/platform/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine