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

Side by Side Diff: Source/WebCore/platform/graphics/GraphicsLayer.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 bool preserves3D() const { return m_preserves3D; } 265 bool preserves3D() const { return m_preserves3D; }
266 virtual void setPreserves3D(bool b) { m_preserves3D = b; } 266 virtual void setPreserves3D(bool b) { m_preserves3D = b; }
267 267
268 bool masksToBounds() const { return m_masksToBounds; } 268 bool masksToBounds() const { return m_masksToBounds; }
269 virtual void setMasksToBounds(bool b) { m_masksToBounds = b; } 269 virtual void setMasksToBounds(bool b) { m_masksToBounds = b; }
270 270
271 bool drawsContent() const { return m_drawsContent; } 271 bool drawsContent() const { return m_drawsContent; }
272 virtual void setDrawsContent(bool b) { m_drawsContent = b; } 272 virtual void setDrawsContent(bool b) { m_drawsContent = b; }
273 273
274 bool contentsAreVisible() const { return m_contentsVisible; }
275 virtual void setContentsVisible(bool b) { m_contentsVisible = b; }
276
277 bool acceleratesDrawing() const { return m_acceleratesDrawing; } 274 bool acceleratesDrawing() const { return m_acceleratesDrawing; }
278 virtual void setAcceleratesDrawing(bool b) { m_acceleratesDrawing = b; } 275 virtual void setAcceleratesDrawing(bool b) { m_acceleratesDrawing = b; }
279 276
280 // The color used to paint the layer backgrounds 277 // The color used to paint the layer backgrounds
281 const Color& backgroundColor() const { return m_backgroundColor; } 278 const Color& backgroundColor() const { return m_backgroundColor; }
282 virtual void setBackgroundColor(const Color&); 279 virtual void setBackgroundColor(const Color&);
283 virtual void clearBackgroundColor(); 280 virtual void clearBackgroundColor();
284 bool backgroundColorSet() const { return m_backgroundColorSet; } 281 bool backgroundColorSet() const { return m_backgroundColorSet; }
285 282
286 // opaque means that we know the layer contents have no alpha 283 // opaque means that we know the layer contents have no alpha
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 float m_opacity; 424 float m_opacity;
428 float m_zPosition; 425 float m_zPosition;
429 426
430 bool m_backgroundColorSet : 1; 427 bool m_backgroundColorSet : 1;
431 bool m_contentsOpaque : 1; 428 bool m_contentsOpaque : 1;
432 bool m_preserves3D: 1; 429 bool m_preserves3D: 1;
433 bool m_backfaceVisibility : 1; 430 bool m_backfaceVisibility : 1;
434 bool m_usingTiledLayer : 1; 431 bool m_usingTiledLayer : 1;
435 bool m_masksToBounds : 1; 432 bool m_masksToBounds : 1;
436 bool m_drawsContent : 1; 433 bool m_drawsContent : 1;
437 bool m_contentsVisible : 1;
438 bool m_acceleratesDrawing : 1; 434 bool m_acceleratesDrawing : 1;
439 bool m_maintainsPixelAlignment : 1; 435 bool m_maintainsPixelAlignment : 1;
440 bool m_appliesPageScale : 1; // Set for the layer which has the page scale a pplied to it. 436 bool m_appliesPageScale : 1; // Set for the layer which has the page scale a pplied to it.
441 437
442 GraphicsLayerPaintingPhase m_paintingPhase; 438 GraphicsLayerPaintingPhase m_paintingPhase;
443 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents 439 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents
444 440
445 Vector<GraphicsLayer*> m_children; 441 Vector<GraphicsLayer*> m_children;
446 GraphicsLayer* m_parent; 442 GraphicsLayer* m_parent;
447 443
(...skipping 18 matching lines...) Expand all
466 462
467 #ifndef NDEBUG 463 #ifndef NDEBUG
468 // Outside the WebCore namespace for ease of invocation from gdb. 464 // Outside the WebCore namespace for ease of invocation from gdb.
469 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 465 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
470 #endif 466 #endif
471 467
472 #endif // USE(ACCELERATED_COMPOSITING) 468 #endif // USE(ACCELERATED_COMPOSITING)
473 469
474 #endif // GraphicsLayer_h 470 #endif // GraphicsLayer_h
475 471
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698