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

Side by Side Diff: Source/WebCore/rendering/InlineFlowBox.cpp

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/InlineBox.h ('k') | Source/WebCore/rendering/InlineTextBox.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, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 LayoutUnit bottom = min(rootBox->lineBottom(), top + logicalHeight); 1053 LayoutUnit bottom = min(rootBox->lineBottom(), top + logicalHeight);
1054 top = max(rootBox->lineTop(), top); 1054 top = max(rootBox->lineTop(), top);
1055 logicalHeight = bottom - top; 1055 logicalHeight = bottom - top;
1056 } 1056 }
1057 1057
1058 // Move x/y to our coordinates. 1058 // Move x/y to our coordinates.
1059 LayoutRect rect(minX, minY, width, height); 1059 LayoutRect rect(minX, minY, width, height);
1060 flipForWritingMode(rect); 1060 flipForWritingMode(rect);
1061 rect.moveBy(accumulatedOffset); 1061 rect.moveBy(accumulatedOffset);
1062 1062
1063 if (visibleToHitTesting() && locationInContainer.intersects(rect)) { 1063 if (visibleToHitTestRequest(request) && locationInContainer.intersects(rect) ) {
1064 renderer()->updateHitTestResult(result, flipForWritingMode(locationInCon tainer.point() - toLayoutSize(accumulatedOffset))); // Don't add in m_x or m_y h ere, we want coords in the containing block's space. 1064 renderer()->updateHitTestResult(result, flipForWritingMode(locationInCon tainer.point() - toLayoutSize(accumulatedOffset))); // Don't add in m_x or m_y h ere, we want coords in the containing block's space.
1065 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo cationInContainer, rect)) 1065 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo cationInContainer, rect))
1066 return true; 1066 return true;
1067 } 1067 }
1068 1068
1069 return false; 1069 return false;
1070 } 1070 }
1071 1071
1072 void InlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom) 1072 void InlineFlowBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom)
1073 { 1073 {
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); 1651 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering);
1652 InlineBox::reportMemoryUsage(memoryObjectInfo); 1652 InlineBox::reportMemoryUsage(memoryObjectInfo);
1653 info.addMember(m_overflow, "overflow"); 1653 info.addMember(m_overflow, "overflow");
1654 info.addMember(m_firstChild, "firstChild"); 1654 info.addMember(m_firstChild, "firstChild");
1655 info.addMember(m_lastChild, "lastChild"); 1655 info.addMember(m_lastChild, "lastChild");
1656 info.addMember(m_prevLineBox, "prevLineBox"); 1656 info.addMember(m_prevLineBox, "prevLineBox");
1657 info.addMember(m_nextLineBox, "nextLineBox"); 1657 info.addMember(m_nextLineBox, "nextLineBox");
1658 } 1658 }
1659 1659
1660 } // namespace WebCore 1660 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/InlineBox.h ('k') | Source/WebCore/rendering/InlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698