Index: Source/core/rendering/RenderBox.h |
diff --git a/Source/core/rendering/RenderBox.h b/Source/core/rendering/RenderBox.h |
index e2c06cf1ea8e7b4eccc7be0f1ff7914a35b5f9c8..b614c638144b0b66fc1c1d35dbd1b6b93966e7d1 100644 |
--- a/Source/core/rendering/RenderBox.h |
+++ b/Source/core/rendering/RenderBox.h |
@@ -83,6 +83,20 @@ public: |
virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE; |
+ // touch-action applies to all elements with both width AND height properties. |
+ // According to the CSS Box Model Spec (http://dev.w3.org/csswg/css-box/#the-width-and-height-properties) |
+ // width applies to all elements but non-replaced inline elements, table rows, and row groups and |
+ // height applies to all elements but non-replaced inline elements, table columns, and column groups. |
+ bool visibleForTouchAction() const OVERRIDE |
+ { |
+ if (isInline() && !isReplaced()) |
+ return false; |
+ if (isTableRow() || isRenderTableCol()) |
+ return false; |
+ |
+ return true; |
+ } |
+ |
// Use this with caution! No type checking is done! |
RenderBox* firstChildBox() const; |
RenderBox* lastChildBox() const; |