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

Side by Side Diff: Source/core/rendering/RenderBoxModelObject.cpp

Issue 139273007: Web Animations: Remove legacy animations engine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix TestExpectations. Created 6 years, 10 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/rendering/RenderBoxModelObject.h ('k') | Source/core/rendering/RenderLayer.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return; 93 return;
94 94
95 layer()->contentChanged(changeType); 95 layer()->contentChanged(changeType);
96 } 96 }
97 97
98 bool RenderBoxModelObject::hasAcceleratedCompositing() const 98 bool RenderBoxModelObject::hasAcceleratedCompositing() const
99 { 99 {
100 return view()->compositor()->hasAcceleratedCompositing(); 100 return view()->compositor()->hasAcceleratedCompositing();
101 } 101 }
102 102
103 bool RenderBoxModelObject::startTransition(double timeOffset, CSSPropertyID prop ertyId, const RenderStyle* fromStyle, const RenderStyle* toStyle)
104 {
105 ASSERT(hasLayer());
106 ASSERT(compositingState() == PaintsIntoOwnBacking);
107 return layer()->compositedLayerMapping()->startTransition(timeOffset, proper tyId, fromStyle, toStyle);
108 }
109
110 void RenderBoxModelObject::transitionPaused(double timeOffset, CSSPropertyID pro pertyId)
111 {
112 ASSERT(hasLayer());
113 ASSERT(compositingState() == PaintsIntoOwnBacking);
114 layer()->compositedLayerMapping()->transitionPaused(timeOffset, propertyId);
115 }
116
117 void RenderBoxModelObject::transitionFinished(CSSPropertyID propertyId)
118 {
119 ASSERT(hasLayer());
120 ASSERT(compositingState() == PaintsIntoOwnBacking);
121 layer()->compositedLayerMapping()->transitionFinished(propertyId);
122 }
123
124 bool RenderBoxModelObject::startAnimation(double timeOffset, const CSSAnimationD ata* animation, const KeyframeList& keyframes)
125 {
126 ASSERT(hasLayer());
127 ASSERT(compositingState() == PaintsIntoOwnBacking);
128 return layer()->compositedLayerMapping()->startAnimation(timeOffset, animati on, keyframes);
129 }
130
131 void RenderBoxModelObject::animationPaused(double timeOffset, const String& name )
132 {
133 ASSERT(hasLayer());
134 ASSERT(compositingState() == PaintsIntoOwnBacking);
135 layer()->compositedLayerMapping()->animationPaused(timeOffset, name);
136 }
137
138 void RenderBoxModelObject::animationFinished(const String& name)
139 {
140 ASSERT(hasLayer());
141 ASSERT(compositingState() == PaintsIntoOwnBacking);
142 layer()->compositedLayerMapping()->animationFinished(name);
143 }
144
145 bool RenderBoxModelObject::shouldPaintAtLowQuality(GraphicsContext* context, Ima ge* image, const void* layer, const LayoutSize& size) 103 bool RenderBoxModelObject::shouldPaintAtLowQuality(GraphicsContext* context, Ima ge* image, const void* layer, const LayoutSize& size)
146 { 104 {
147 return ImageQualityController::imageQualityController()->shouldPaintAtLowQua lity(context, this, image, layer, size); 105 return ImageQualityController::imageQualityController()->shouldPaintAtLowQua lity(context, this, image, layer, size);
148 } 106 }
149 107
150 RenderBoxModelObject::RenderBoxModelObject(ContainerNode* node) 108 RenderBoxModelObject::RenderBoxModelObject(ContainerNode* node)
151 : RenderLayerModelObject(node) 109 : RenderLayerModelObject(node)
152 { 110 {
153 } 111 }
154 112
(...skipping 2683 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); 2796 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent());
2839 for (RenderObject* child = startChild; child && child != endChild; ) { 2797 for (RenderObject* child = startChild; child && child != endChild; ) {
2840 // Save our next sibling as moveChildTo will clear it. 2798 // Save our next sibling as moveChildTo will clear it.
2841 RenderObject* nextSibling = child->nextSibling(); 2799 RenderObject* nextSibling = child->nextSibling();
2842 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); 2800 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert);
2843 child = nextSibling; 2801 child = nextSibling;
2844 } 2802 }
2845 } 2803 }
2846 2804
2847 } // namespace WebCore 2805 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.h ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698