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

Side by Side Diff: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 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 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 return client ? client->isTrackingPaintInvalidations() : false; 2234 return client ? client->isTrackingPaintInvalidations() : false;
2235 } 2235 }
2236 2236
2237 #if ENABLE(ASSERT) 2237 #if ENABLE(ASSERT)
2238 void CompositedDeprecatedPaintLayerMapping::verifyNotPainting() 2238 void CompositedDeprecatedPaintLayerMapping::verifyNotPainting()
2239 { 2239 {
2240 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()- >isPainting()); 2240 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()- >isPainting());
2241 } 2241 }
2242 #endif 2242 #endif
2243 2243
2244 void CompositedDeprecatedPaintLayerMapping::notifyAnimationStarted(const Graphic sLayer*, double monotonicTime, int group)
2245 {
2246 layoutObject()->node()->document().compositorPendingAnimations().notifyCompo sitorAnimationStarted(monotonicTime, group);
2247 }
2248
2249 IntRect CompositedDeprecatedPaintLayerMapping::pixelSnappedCompositedBounds() co nst 2244 IntRect CompositedDeprecatedPaintLayerMapping::pixelSnappedCompositedBounds() co nst
2250 { 2245 {
2251 LayoutRect bounds = m_compositedBounds; 2246 LayoutRect bounds = m_compositedBounds;
2252 bounds.move(m_owningLayer.subpixelAccumulation()); 2247 bounds.move(m_owningLayer.subpixelAccumulation());
2253 return pixelSnappedIntRect(bounds); 2248 return pixelSnappedIntRect(bounds);
2254 } 2249 }
2255 2250
2256 bool CompositedDeprecatedPaintLayerMapping::updateSquashingLayerAssignment(Depre catedPaintLayer* squashedLayer, const DeprecatedPaintLayer& owningLayer, size_t nextSquashedLayerIndex) 2251 bool CompositedDeprecatedPaintLayerMapping::updateSquashingLayerAssignment(Depre catedPaintLayer* squashedLayer, const DeprecatedPaintLayer& owningLayer, size_t nextSquashedLayerIndex)
2257 { 2252 {
2258 GraphicsLayerPaintInfo paintInfo; 2253 GraphicsLayerPaintInfo paintInfo;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
2342 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { 2337 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) {
2343 name = "Scrolling Block Selection Layer"; 2338 name = "Scrolling Block Selection Layer";
2344 } else { 2339 } else {
2345 ASSERT_NOT_REACHED(); 2340 ASSERT_NOT_REACHED();
2346 } 2341 }
2347 2342
2348 return name; 2343 return name;
2349 } 2344 }
2350 2345
2351 } // namespace blink 2346 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698