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 visibleToHitTestRequest(const HitTestRequest& request) const |
| 274 { |
| 275 if (request.touchAction()) |
| 276 return false; |
| 277 return renderer()->visibleToHitTestRequest(request); |
| 278 } |
274 | 279 |
275 EVerticalAlign verticalAlign() const { return renderer()->style(m_bitfields.
firstLine())->verticalAlign(); } | 280 EVerticalAlign verticalAlign() const { return renderer()->style(m_bitfields.
firstLine())->verticalAlign(); } |
276 | 281 |
277 // Use with caution! The type is not checked! | 282 // Use with caution! The type is not checked! |
278 RenderBoxModelObject* boxModelObject() const | 283 RenderBoxModelObject* boxModelObject() const |
279 { | 284 { |
280 if (!m_renderer->isText()) | 285 if (!m_renderer->isText()) |
281 return toRenderBoxModelObject(m_renderer); | 286 return toRenderBoxModelObject(m_renderer); |
282 return 0; | 287 return 0; |
283 } | 288 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 434 |
430 } // namespace WebCore | 435 } // namespace WebCore |
431 | 436 |
432 #ifndef NDEBUG | 437 #ifndef NDEBUG |
433 // Outside the WebCore namespace for ease of invocation from gdb. | 438 // Outside the WebCore namespace for ease of invocation from gdb. |
434 void showTree(const WebCore::InlineBox*); | 439 void showTree(const WebCore::InlineBox*); |
435 void showLineTree(const WebCore::InlineBox*); | 440 void showLineTree(const WebCore::InlineBox*); |
436 #endif | 441 #endif |
437 | 442 |
438 #endif // InlineBox_h | 443 #endif // InlineBox_h |
OLD | NEW |