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

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

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Various fixes and test additions Created 7 years, 5 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) 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 53 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
54 54
55 // This is null for anonymous renderers. 55 // This is null for anonymous renderers.
56 ContainerNode* node() const { return toContainerNode(RenderObject::node()); } 56 ContainerNode* node() const { return toContainerNode(RenderObject::node()); }
57 57
58 protected: 58 protected:
59 void ensureLayer(); 59 void ensureLayer();
60 60
61 virtual void willBeDestroyed() OVERRIDE; 61 virtual void willBeDestroyed() OVERRIDE;
62 62
63 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* = 0 , const LayoutPoint& = LayoutPoint()) const OVERRIDE;
64
63 private: 65 private:
64 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; } 66 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; }
65 67
66 RenderLayer* m_layer; 68 RenderLayer* m_layer;
67 69
68 // Used to store state between styleWillChange and styleDidChange 70 // Used to store state between styleWillChange and styleDidChange
69 static bool s_wasFloating; 71 static bool s_wasFloating;
70 static bool s_hadLayer; 72 static bool s_hadLayer;
71 static bool s_hadTransform; 73 static bool s_hadTransform;
72 static bool s_layerWasSelfPainting; 74 static bool s_layerWasSelfPainting;
(...skipping 10 matching lines...) Expand all
83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject()); 85 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
84 return static_cast<const RenderLayerModelObject*>(object); 86 return static_cast<const RenderLayerModelObject*>(object);
85 } 87 }
86 88
87 // This will catch anyone doing an unnecessary cast. 89 // This will catch anyone doing an unnecessary cast.
88 void toRenderLayerModelObject(const RenderLayerModelObject*); 90 void toRenderLayerModelObject(const RenderLayerModelObject*);
89 91
90 } // namespace WebCore 92 } // namespace WebCore
91 93
92 #endif // RenderLayerModelObject_h 94 #endif // RenderLayerModelObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698