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

Side by Side Diff: Source/core/platform/graphics/chromium/GraphicsLayerChromium.cpp

Issue 15093011: Reland "Unifies ScrollView and RenderLayer to use non-shi..." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/platform/Scrollbar.cpp ('k') | Source/core/platform/mac/ScrollAnimatorMac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 118 }
119 119
120 void GraphicsLayerChromium::notifyAnimationFinished(double) 120 void GraphicsLayerChromium::notifyAnimationFinished(double)
121 { 121 {
122 // Do nothing. 122 // Do nothing.
123 } 123 }
124 124
125 void GraphicsLayerChromium::didScroll() 125 void GraphicsLayerChromium::didScroll()
126 { 126 {
127 if (m_scrollableArea) 127 if (m_scrollableArea)
128 m_scrollableArea->scrollToOffsetWithoutAnimation(IntPoint(m_layer->layer ()->scrollPosition())); 128 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition()));
129 } 129 }
130 130
131 void GraphicsLayerChromium::setAnimationDelegateForLayer(WebKit::WebLayer* layer ) 131 void GraphicsLayerChromium::setAnimationDelegateForLayer(WebKit::WebLayer* layer )
132 { 132 {
133 layer->setAnimationDelegate(this); 133 layer->setAnimationDelegate(this);
134 } 134 }
135 135
136 } // namespace WebCore 136 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/Scrollbar.cpp ('k') | Source/core/platform/mac/ScrollAnimatorMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698