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

Side by Side Diff: Source/WebCore/rendering/InlineBox.h

Issue 13942005: Add hit testing mode which ignores pointer-events:none. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebCore/rendering/HitTestRequest.h ('k') | Source/WebCore/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:eol-style
- native
+ LF
OLDNEW
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const; 271 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const;
272 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. 272 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system.
273 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); 273 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&);
274 274
275 #ifndef NDEBUG 275 #ifndef NDEBUG
276 void setHasBadParent(); 276 void setHasBadParent();
277 #endif 277 #endif
278 278
279 int expansion() const { return m_bitfields.expansion(); } 279 int expansion() const { return m_bitfields.expansion(); }
280 280
281 bool visibleToHitTesting() const { return renderer()->style()->visibility() == VISIBLE && renderer()->style()->pointerEvents() != PE_NONE; } 281 bool visibleToHitTestRequest(const HitTestRequest& request) const { return r enderer()->style()->visibility() == VISIBLE && (request.ignorePointerEventsNone( ) || renderer()->style()->pointerEvents() != PE_NONE); }
282 282
283 EVerticalAlign verticalAlign() const { return renderer()->style(m_bitfields. firstLine())->verticalAlign(); } 283 EVerticalAlign verticalAlign() const { return renderer()->style(m_bitfields. firstLine())->verticalAlign(); }
284 284
285 // Use with caution! The type is not checked! 285 // Use with caution! The type is not checked!
286 RenderBoxModelObject* boxModelObject() const 286 RenderBoxModelObject* boxModelObject() const
287 { 287 {
288 if (!m_renderer->isText()) 288 if (!m_renderer->isText())
289 return toRenderBoxModelObject(m_renderer); 289 return toRenderBoxModelObject(m_renderer);
290 return 0; 290 return 0;
291 } 291 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 } // namespace WebCore 439 } // namespace WebCore
440 440
441 #ifndef NDEBUG 441 #ifndef NDEBUG
442 // Outside the WebCore namespace for ease of invocation from gdb. 442 // Outside the WebCore namespace for ease of invocation from gdb.
443 void showTree(const WebCore::InlineBox*); 443 void showTree(const WebCore::InlineBox*);
444 void showLineTree(const WebCore::InlineBox*); 444 void showLineTree(const WebCore::InlineBox*);
445 #endif 445 #endif
446 446
447 #endif // InlineBox_h 447 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/HitTestRequest.h ('k') | Source/WebCore/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698