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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2578343002: Support compositing for active animations in SPv2. (Closed)
Patch Set: setNeedsPaintPropertyUpdate on PaintLayer::styleDidChange. Created 3 years, 12 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 void setOnlyThisNeedsPaintPropertyUpdateForTesting() { 1705 void setOnlyThisNeedsPaintPropertyUpdateForTesting() {
1706 m_layoutObject.m_bitfields.setNeedsPaintPropertyUpdate(true); 1706 m_layoutObject.m_bitfields.setNeedsPaintPropertyUpdate(true);
1707 } 1707 }
1708 void clearNeedsPaintPropertyUpdateForTesting() { 1708 void clearNeedsPaintPropertyUpdateForTesting() {
1709 m_layoutObject.m_bitfields.setNeedsPaintPropertyUpdate(false); 1709 m_layoutObject.m_bitfields.setNeedsPaintPropertyUpdate(false);
1710 } 1710 }
1711 #endif 1711 #endif
1712 1712
1713 protected: 1713 protected:
1714 friend class PaintPropertyTreeBuilder; 1714 friend class PaintPropertyTreeBuilder;
1715 FRIEND_TEST_ALL_PREFIXES(AnimationCompositorAnimationsTest,
1716 canStartAnimationOnCompositorTransformSPv2);
1717
1715 // The following two functions can be called from PaintPropertyTreeBuilder 1718 // The following two functions can be called from PaintPropertyTreeBuilder
1716 // only. 1719 // only.
1717 ObjectPaintProperties& ensurePaintProperties() { 1720 ObjectPaintProperties& ensurePaintProperties() {
1718 return m_layoutObject.ensurePaintProperties(); 1721 return m_layoutObject.ensurePaintProperties();
1719 } 1722 }
1720 ObjectPaintProperties* paintProperties() { 1723 ObjectPaintProperties* paintProperties() {
1721 return const_cast<ObjectPaintProperties*>( 1724 return const_cast<ObjectPaintProperties*>(
1722 m_layoutObject.paintProperties()); 1725 m_layoutObject.paintProperties());
1723 } 1726 }
1724 1727
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2668 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2666 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2669 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2667 // We don't make object2 an optional parameter so that showLayoutTree 2670 // We don't make object2 an optional parameter so that showLayoutTree
2668 // can be called from gdb easily. 2671 // can be called from gdb easily.
2669 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2672 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2670 const blink::LayoutObject* object2); 2673 const blink::LayoutObject* object2);
2671 2674
2672 #endif 2675 #endif
2673 2676
2674 #endif // LayoutObject_h 2677 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698