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

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

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to trunk and Incorporated review comments Created 6 years, 9 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/InlineBox.h ('k') | Source/core/rendering/RenderObject.h » ('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 * (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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 static void removePositionedObject(RenderBox*); 109 static void removePositionedObject(RenderBox*);
110 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock); 110 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock);
111 111
112 TrackedRendererListHashSet* positionedObjects() const; 112 TrackedRendererListHashSet* positionedObjects() const;
113 bool hasPositionedObjects() const 113 bool hasPositionedObjects() const
114 { 114 {
115 TrackedRendererListHashSet* objects = positionedObjects(); 115 TrackedRendererListHashSet* objects = positionedObjects();
116 return objects && !objects->isEmpty(); 116 return objects && !objects->isEmpty();
117 } 117 }
118 118
119 virtual bool visibleForTouchAction() const OVERRIDE FINAL { return true; }
120
119 void addPercentHeightDescendant(RenderBox*); 121 void addPercentHeightDescendant(RenderBox*);
120 static void removePercentHeightDescendant(RenderBox*); 122 static void removePercentHeightDescendant(RenderBox*);
121 TrackedRendererListHashSet* percentHeightDescendants() const; 123 TrackedRendererListHashSet* percentHeightDescendants() const;
122 static bool hasPercentHeightContainerMap(); 124 static bool hasPercentHeightContainerMap();
123 static bool hasPercentHeightDescendant(RenderBox*); 125 static bool hasPercentHeightDescendant(RenderBox*);
124 static void clearPercentHeightDescendantsFrom(RenderBox*); 126 static void clearPercentHeightDescendantsFrom(RenderBox*);
125 static void removePercentHeightDescendantIfNeeded(RenderBox*); 127 static void removePercentHeightDescendantIfNeeded(RenderBox*);
126 128
127 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } 129 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; }
128 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } 130 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; }
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 return false; 579 return false;
578 } 580 }
579 return true; 581 return true;
580 } 582 }
581 583
582 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 584 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
583 585
584 } // namespace WebCore 586 } // namespace WebCore
585 587
586 #endif // RenderBlock_h 588 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineBox.h ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698