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

Side by Side Diff: Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h

Issue 9120020: Revert 98735 - Source/WebCore: The HTML5 video element in Safari does not respect "visibility:hid... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 11 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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual void setSize(const FloatSize&); 78 virtual void setSize(const FloatSize&);
79 virtual void setBoundsOrigin(const FloatPoint&); 79 virtual void setBoundsOrigin(const FloatPoint&);
80 80
81 virtual void setTransform(const TransformationMatrix&); 81 virtual void setTransform(const TransformationMatrix&);
82 82
83 virtual void setChildrenTransform(const TransformationMatrix&); 83 virtual void setChildrenTransform(const TransformationMatrix&);
84 84
85 virtual void setPreserves3D(bool); 85 virtual void setPreserves3D(bool);
86 virtual void setMasksToBounds(bool); 86 virtual void setMasksToBounds(bool);
87 virtual void setDrawsContent(bool); 87 virtual void setDrawsContent(bool);
88 virtual void setContentsVisible(bool);
89 virtual void setAcceleratesDrawing(bool); 88 virtual void setAcceleratesDrawing(bool);
90 89
91 virtual void setBackgroundColor(const Color&); 90 virtual void setBackgroundColor(const Color&);
92 virtual void clearBackgroundColor(); 91 virtual void clearBackgroundColor();
93 92
94 virtual void setContentsOpaque(bool); 93 virtual void setContentsOpaque(bool);
95 virtual void setBackfaceVisibility(bool); 94 virtual void setBackfaceVisibility(bool);
96 95
97 // return true if we started an animation 96 // return true if we started an animation
98 virtual void setOpacity(float); 97 virtual void setOpacity(float);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 270
272 void propagateLayerChangeToReplicas(); 271 void propagateLayerChangeToReplicas();
273 272
274 // All these "update" methods will be called inside a BEGIN_BLOCK_OBJC_EXCEP TIONS/END_BLOCK_OBJC_EXCEPTIONS block. 273 // All these "update" methods will be called inside a BEGIN_BLOCK_OBJC_EXCEP TIONS/END_BLOCK_OBJC_EXCEPTIONS block.
275 void updateLayerNames(); 274 void updateLayerNames();
276 void updateSublayerList(); 275 void updateSublayerList();
277 void updateGeometry(float pixelAlignmentScale, const FloatPoint& positionRel ativeToBase); 276 void updateGeometry(float pixelAlignmentScale, const FloatPoint& positionRel ativeToBase);
278 void updateTransform(); 277 void updateTransform();
279 void updateChildrenTransform(); 278 void updateChildrenTransform();
280 void updateMasksToBounds(); 279 void updateMasksToBounds();
281 void updateContentsVisibility();
282 void updateContentsOpaque(); 280 void updateContentsOpaque();
283 void updateBackfaceVisibility(); 281 void updateBackfaceVisibility();
284 void updateStructuralLayer(float pixelAlignmentScale, const FloatPoint& posi tionRelativeToBase); 282 void updateStructuralLayer(float pixelAlignmentScale, const FloatPoint& posi tionRelativeToBase);
285 void updateLayerDrawsContent(float pixelAlignmentScale, const FloatPoint& po sitionRelativeToBase); 283 void updateLayerDrawsContent(float pixelAlignmentScale, const FloatPoint& po sitionRelativeToBase);
286 void updateLayerBackgroundColor(); 284 void updateLayerBackgroundColor();
287 285
288 void updateContentsImage(); 286 void updateContentsImage();
289 void updateContentsMediaLayer(); 287 void updateContentsMediaLayer();
290 void updateContentsCanvasLayer(); 288 void updateContentsCanvasLayer();
291 void updateContentsRect(); 289 void updateContentsRect();
(...skipping 25 matching lines...) Expand all
317 315
318 enum LayerChange { 316 enum LayerChange {
319 NoChange = 0, 317 NoChange = 0,
320 NameChanged = 1 << 1, 318 NameChanged = 1 << 1,
321 ChildrenChanged = 1 << 2, // also used for content layer, and preserves- 3d, and size if tiling changes? 319 ChildrenChanged = 1 << 2, // also used for content layer, and preserves- 3d, and size if tiling changes?
322 GeometryChanged = 1 << 3, 320 GeometryChanged = 1 << 3,
323 TransformChanged = 1 << 4, 321 TransformChanged = 1 << 4,
324 ChildrenTransformChanged = 1 << 5, 322 ChildrenTransformChanged = 1 << 5,
325 Preserves3DChanged = 1 << 6, 323 Preserves3DChanged = 1 << 6,
326 MasksToBoundsChanged = 1 << 7, 324 MasksToBoundsChanged = 1 << 7,
327 DrawsContentChanged = 1 << 8, 325 DrawsContentChanged = 1 << 8, // need this?
328 BackgroundColorChanged = 1 << 9, 326 BackgroundColorChanged = 1 << 9,
329 ContentsOpaqueChanged = 1 << 10, 327 ContentsOpaqueChanged = 1 << 10,
330 BackfaceVisibilityChanged = 1 << 11, 328 BackfaceVisibilityChanged = 1 << 11,
331 OpacityChanged = 1 << 12, 329 OpacityChanged = 1 << 12,
332 AnimationChanged = 1 << 13, 330 AnimationChanged = 1 << 13,
333 DirtyRectsChanged = 1 << 14, 331 DirtyRectsChanged = 1 << 14,
334 ContentsImageChanged = 1 << 15, 332 ContentsImageChanged = 1 << 15,
335 ContentsMediaLayerChanged = 1 << 16, 333 ContentsMediaLayerChanged = 1 << 16,
336 ContentsCanvasLayerChanged = 1 << 17, 334 ContentsCanvasLayerChanged = 1 << 17,
337 ContentsRectChanged = 1 << 18, 335 ContentsRectChanged = 1 << 18,
338 MaskLayerChanged = 1 << 19, 336 MaskLayerChanged = 1 << 19,
339 ReplicatedLayerChanged = 1 << 20, 337 ReplicatedLayerChanged = 1 << 20,
340 ContentsNeedsDisplay = 1 << 21, 338 ContentsNeedsDisplay = 1 << 21,
341 AcceleratesDrawingChanged = 1 << 22, 339 AcceleratesDrawingChanged = 1 << 22,
342 ContentsScaleChanged = 1 << 23, 340 ContentsScaleChanged = 1 << 23
343 ContentsVisibilityChanged = 1 << 24,
344 }; 341 };
345 typedef unsigned LayerChangeFlags; 342 typedef unsigned LayerChangeFlags;
346 void noteLayerPropertyChanged(LayerChangeFlags flags); 343 void noteLayerPropertyChanged(LayerChangeFlags flags);
347 void noteSublayersChanged(); 344 void noteSublayersChanged();
348 void noteChangesForScaleSensitiveProperties(); 345 void noteChangesForScaleSensitiveProperties();
349 346
350 void repaintLayerDirtyRects(); 347 void repaintLayerDirtyRects();
351 348
352 RefPtr<PlatformCALayer> m_layer; // The main layer 349 RefPtr<PlatformCALayer> m_layer; // The main layer
353 RefPtr<PlatformCALayer> m_structuralLayer; // A layer used for structural re asons, like preserves-3d or replica-flattening. Is the parent of m_layer. 350 RefPtr<PlatformCALayer> m_structuralLayer; // A layer used for structural re asons, like preserves-3d or replica-flattening. Is the parent of m_layer.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 417
421 LayerChangeFlags m_uncommittedChanges; 418 LayerChangeFlags m_uncommittedChanges;
422 }; 419 };
423 420
424 } // namespace WebCore 421 } // namespace WebCore
425 422
426 423
427 #endif // USE(ACCELERATED_COMPOSITING) 424 #endif // USE(ACCELERATED_COMPOSITING)
428 425
429 #endif // GraphicsLayerCA_h 426 #endif // GraphicsLayerCA_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/GraphicsLayer.cpp ('k') | Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698