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

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

Issue 220343002: Update touch-action hit-testing to match latest spec changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
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 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 static void removePositionedObject(RenderBox*); 108 static void removePositionedObject(RenderBox*);
109 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock); 109 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock);
110 110
111 TrackedRendererListHashSet* positionedObjects() const; 111 TrackedRendererListHashSet* positionedObjects() const;
112 bool hasPositionedObjects() const 112 bool hasPositionedObjects() const
113 { 113 {
114 TrackedRendererListHashSet* objects = positionedObjects(); 114 TrackedRendererListHashSet* objects = positionedObjects();
115 return objects && !objects->isEmpty(); 115 return objects && !objects->isEmpty();
116 } 116 }
117 117
118 virtual bool visibleForTouchAction() const OVERRIDE FINAL { return true; }
119
120 void addPercentHeightDescendant(RenderBox*); 118 void addPercentHeightDescendant(RenderBox*);
121 static void removePercentHeightDescendant(RenderBox*); 119 static void removePercentHeightDescendant(RenderBox*);
122 static bool hasPercentHeightContainerMap(); 120 static bool hasPercentHeightContainerMap();
123 static bool hasPercentHeightDescendant(RenderBox*); 121 static bool hasPercentHeightDescendant(RenderBox*);
124 static void clearPercentHeightDescendantsFrom(RenderBox*); 122 static void clearPercentHeightDescendantsFrom(RenderBox*);
125 static void removePercentHeightDescendantIfNeeded(RenderBox*); 123 static void removePercentHeightDescendantIfNeeded(RenderBox*);
126 124
127 TrackedRendererListHashSet* percentHeightDescendants() const; 125 TrackedRendererListHashSet* percentHeightDescendants() const;
128 bool hasPercentHeightDescendants() const 126 bool hasPercentHeightDescendants() const
129 { 127 {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 // FIXME: This is temporary as we move code that accesses block flow 546 // FIXME: This is temporary as we move code that accesses block flow
549 // member variables out of RenderBlock and into RenderBlockFlow. 547 // member variables out of RenderBlock and into RenderBlockFlow.
550 friend class RenderBlockFlow; 548 friend class RenderBlockFlow;
551 }; 549 };
552 550
553 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 551 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
554 552
555 } // namespace WebCore 553 } // namespace WebCore
556 554
557 #endif // RenderBlock_h 555 #endif // RenderBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698