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

Side by Side Diff: Source/core/rendering/RenderLayerModelObject.h

Issue 19614004: Compositor hit test performance improvement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 7 years, 4 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/RenderBox.cpp ('k') | Source/core/rendering/RenderLayerModelObject.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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. 5 * Copyright (C) 2010, 2012 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const { re turn false; } 51 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const { re turn false; }
52 52
53 // This is null for anonymous renderers. 53 // This is null for anonymous renderers.
54 ContainerNode* node() const { return toContainerNode(RenderObject::node()); } 54 ContainerNode* node() const { return toContainerNode(RenderObject::node()); }
55 55
56 protected: 56 protected:
57 void ensureLayer(); 57 void ensureLayer();
58 58
59 virtual void willBeDestroyed() OVERRIDE; 59 virtual void willBeDestroyed() OVERRIDE;
60 60
61 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* = 0 , const LayoutPoint& = LayoutPoint()) const OVERRIDE; 61 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer*, co nst LayoutPoint&, const LayoutRect&) const OVERRIDE;
62 62
63 private: 63 private:
64 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; } 64 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; }
65 65
66 RenderLayer* m_layer; 66 RenderLayer* m_layer;
67 67
68 // Used to store state between styleWillChange and styleDidChange 68 // Used to store state between styleWillChange and styleDidChange
69 static bool s_wasFloating; 69 static bool s_wasFloating;
70 static bool s_hadLayer; 70 static bool s_hadLayer;
71 static bool s_hadTransform; 71 static bool s_hadTransform;
(...skipping 11 matching lines...) Expand all
83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject()); 83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
84 return static_cast<const RenderLayerModelObject*>(object); 84 return static_cast<const RenderLayerModelObject*>(object);
85 } 85 }
86 86
87 // This will catch anyone doing an unnecessary cast. 87 // This will catch anyone doing an unnecessary cast.
88 void toRenderLayerModelObject(const RenderLayerModelObject*); 88 void toRenderLayerModelObject(const RenderLayerModelObject*);
89 89
90 } // namespace WebCore 90 } // namespace WebCore
91 91
92 #endif // RenderLayerModelObject_h 92 #endif // RenderLayerModelObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderLayerModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698