OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const; | 263 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const; |
264 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. | 264 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. |
265 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl
eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); | 265 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl
eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); |
266 | 266 |
267 #ifndef NDEBUG | 267 #ifndef NDEBUG |
268 void setHasBadParent(); | 268 void setHasBadParent(); |
269 #endif | 269 #endif |
270 | 270 |
271 int expansion() const { return m_bitfields.expansion(); } | 271 int expansion() const { return m_bitfields.expansion(); } |
272 | 272 |
273 bool visibleToHitTestRequest(const HitTestRequest& request) const { return r
enderer().visibleToHitTestRequest(request); } | 273 bool visibleForTouchAction() const { return false; } |
| 274 bool visibleToHitTestRequest(const HitTestRequest& request) const |
| 275 { |
| 276 if (request.touchAction() && !visibleForTouchAction()) |
| 277 return false; |
| 278 return renderer().visibleToHitTestRequest(request); |
| 279 } |
274 | 280 |
275 EVerticalAlign verticalAlign() const { return renderer().style(m_bitfields.f
irstLine())->verticalAlign(); } | 281 EVerticalAlign verticalAlign() const { return renderer().style(m_bitfields.f
irstLine())->verticalAlign(); } |
276 | 282 |
277 // Use with caution! The type is not checked! | 283 // Use with caution! The type is not checked! |
278 RenderBoxModelObject* boxModelObject() const | 284 RenderBoxModelObject* boxModelObject() const |
279 { | 285 { |
280 if (!renderer().isText()) | 286 if (!renderer().isText()) |
281 return toRenderBoxModelObject(&renderer()); | 287 return toRenderBoxModelObject(&renderer()); |
282 return 0; | 288 return 0; |
283 } | 289 } |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 | 434 |
429 } // namespace WebCore | 435 } // namespace WebCore |
430 | 436 |
431 #ifndef NDEBUG | 437 #ifndef NDEBUG |
432 // Outside the WebCore namespace for ease of invocation from gdb. | 438 // Outside the WebCore namespace for ease of invocation from gdb. |
433 void showTree(const WebCore::InlineBox*); | 439 void showTree(const WebCore::InlineBox*); |
434 void showLineTree(const WebCore::InlineBox*); | 440 void showLineTree(const WebCore::InlineBox*); |
435 #endif | 441 #endif |
436 | 442 |
437 #endif // InlineBox_h | 443 #endif // InlineBox_h |
OLD | NEW |