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

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: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… 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
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('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;
62
61 private: 63 private:
62 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; } 64 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; }
63 65
64 RenderLayer* m_layer; 66 RenderLayer* m_layer;
65 67
66 // Used to store state between styleWillChange and styleDidChange 68 // Used to store state between styleWillChange and styleDidChange
67 static bool s_wasFloating; 69 static bool s_wasFloating;
68 static bool s_hadLayer; 70 static bool s_hadLayer;
69 static bool s_hadTransform; 71 static bool s_hadTransform;
70 static bool s_layerWasSelfPainting; 72 static bool s_layerWasSelfPainting;
(...skipping 10 matching lines...) Expand all
81 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject()); 83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
82 return static_cast<const RenderLayerModelObject*>(object); 84 return static_cast<const RenderLayerModelObject*>(object);
83 } 85 }
84 86
85 // This will catch anyone doing an unnecessary cast. 87 // This will catch anyone doing an unnecessary cast.
86 void toRenderLayerModelObject(const RenderLayerModelObject*); 88 void toRenderLayerModelObject(const RenderLayerModelObject*);
87 89
88 } // namespace WebCore 90 } // namespace WebCore
89 91
90 #endif // RenderLayerModelObject_h 92 #endif // RenderLayerModelObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderLayerModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698