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

Side by Side Diff: Source/core/rendering/style/StyleRareNonInheritedData.cpp

Issue 328553004: Get rid of scheduleSVGFilterLayerUpdateHack call for plugins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: get rid of style recalc Created 6 years, 6 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 , m_runningTransformAnimationOnCompositor(false) 83 , m_runningTransformAnimationOnCompositor(false)
84 , m_runningFilterAnimationOnCompositor(false) 84 , m_runningFilterAnimationOnCompositor(false)
85 , m_hasAspectRatio(false) 85 , m_hasAspectRatio(false)
86 , m_effectiveBlendMode(RenderStyle::initialBlendMode()) 86 , m_effectiveBlendMode(RenderStyle::initialBlendMode())
87 , m_touchAction(RenderStyle::initialTouchAction()) 87 , m_touchAction(RenderStyle::initialTouchAction())
88 , m_objectFit(RenderStyle::initialObjectFit()) 88 , m_objectFit(RenderStyle::initialObjectFit())
89 , m_isolation(RenderStyle::initialIsolation()) 89 , m_isolation(RenderStyle::initialIsolation())
90 , m_justifySelf(RenderStyle::initialJustifySelf()) 90 , m_justifySelf(RenderStyle::initialJustifySelf())
91 , m_justifySelfOverflowAlignment(RenderStyle::initialJustifySelfOverflowAlig nment()) 91 , m_justifySelfOverflowAlignment(RenderStyle::initialJustifySelfOverflowAlig nment())
92 , m_scrollBehavior(RenderStyle::initialScrollBehavior()) 92 , m_scrollBehavior(RenderStyle::initialScrollBehavior())
93 , m_requiresAcceleratedCompositingForExternalReasons(false)
93 { 94 {
94 m_maskBoxImage.setMaskDefaults(); 95 m_maskBoxImage.setMaskDefaults();
95 } 96 }
96 97
97 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o) 98 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o)
98 : RefCounted<StyleRareNonInheritedData>() 99 : RefCounted<StyleRareNonInheritedData>()
99 , opacity(o.opacity) 100 , opacity(o.opacity)
100 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) 101 , m_aspectRatioDenominator(o.m_aspectRatioDenominator)
101 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) 102 , m_aspectRatioNumerator(o.m_aspectRatioNumerator)
102 , m_perspective(o.m_perspective) 103 , m_perspective(o.m_perspective)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 , m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCom positor) 163 , m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCom positor)
163 , m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnComposito r) 164 , m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnComposito r)
164 , m_hasAspectRatio(o.m_hasAspectRatio) 165 , m_hasAspectRatio(o.m_hasAspectRatio)
165 , m_effectiveBlendMode(o.m_effectiveBlendMode) 166 , m_effectiveBlendMode(o.m_effectiveBlendMode)
166 , m_touchAction(o.m_touchAction) 167 , m_touchAction(o.m_touchAction)
167 , m_objectFit(o.m_objectFit) 168 , m_objectFit(o.m_objectFit)
168 , m_isolation(o.m_isolation) 169 , m_isolation(o.m_isolation)
169 , m_justifySelf(o.m_justifySelf) 170 , m_justifySelf(o.m_justifySelf)
170 , m_justifySelfOverflowAlignment(o.m_justifySelfOverflowAlignment) 171 , m_justifySelfOverflowAlignment(o.m_justifySelfOverflowAlignment)
171 , m_scrollBehavior(o.m_scrollBehavior) 172 , m_scrollBehavior(o.m_scrollBehavior)
173 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated CompositingForExternalReasons)
172 { 174 {
173 } 175 }
174 176
175 StyleRareNonInheritedData::~StyleRareNonInheritedData() 177 StyleRareNonInheritedData::~StyleRareNonInheritedData()
176 { 178 {
177 const FilterOperations& filterOperations = m_filter->m_operations; 179 const FilterOperations& filterOperations = m_filter->m_operations;
178 for (unsigned i = 0; i < filterOperations.size(); ++i) 180 for (unsigned i = 0; i < filterOperations.size(); ++i)
179 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations. at(i)); 181 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations. at(i));
180 } 182 }
181 183
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 && m_hasCurrentOpacityAnimation == o.m_hasCurrentOpacityAnimation 246 && m_hasCurrentOpacityAnimation == o.m_hasCurrentOpacityAnimation
245 && m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation 247 && m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation
246 && m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation 248 && m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation
247 && m_effectiveBlendMode == o.m_effectiveBlendMode 249 && m_effectiveBlendMode == o.m_effectiveBlendMode
248 && m_hasAspectRatio == o.m_hasAspectRatio 250 && m_hasAspectRatio == o.m_hasAspectRatio
249 && m_touchAction == o.m_touchAction 251 && m_touchAction == o.m_touchAction
250 && m_objectFit == o.m_objectFit 252 && m_objectFit == o.m_objectFit
251 && m_isolation == o.m_isolation 253 && m_isolation == o.m_isolation
252 && m_justifySelf == o.m_justifySelf 254 && m_justifySelf == o.m_justifySelf
253 && m_justifySelfOverflowAlignment == o.m_justifySelfOverflowAlignment 255 && m_justifySelfOverflowAlignment == o.m_justifySelfOverflowAlignment
254 && m_scrollBehavior == o.m_scrollBehavior; 256 && m_scrollBehavior == o.m_scrollBehavior
257 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc eleratedCompositingForExternalReasons;
255 } 258 }
256 259
257 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite dData& o) const 260 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite dData& o) const
258 { 261 {
259 ContentData* a = m_content.get(); 262 ContentData* a = m_content.get();
260 ContentData* b = o.m_content.get(); 263 ContentData* b = o.m_content.get();
261 264
262 while (a && b && *a == *b) { 265 while (a && b && *a == *b) {
263 a = a->next(); 266 a = a->next();
264 b = b->next(); 267 b = b->next();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 return false; 302 return false;
300 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); 303 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions);
301 } 304 }
302 305
303 bool StyleRareNonInheritedData::hasFilters() const 306 bool StyleRareNonInheritedData::hasFilters() const
304 { 307 {
305 return m_filter.get() && !m_filter->m_operations.isEmpty(); 308 return m_filter.get() && !m_filter->m_operations.isEmpty();
306 } 309 }
307 310
308 } // namespace WebCore 311 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/style/StyleRareNonInheritedData.h ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698