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

Side by Side Diff: Source/WebCore/rendering/RenderInline.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/RenderBox.cpp ('k') | Source/WebCore/rendering/RenderObject.h » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 bool m_intersected; 768 bool m_intersected;
769 Region& m_region; 769 Region& m_region;
770 const HitTestLocation& m_location; 770 const HitTestLocation& m_location;
771 }; 771 };
772 772
773 } // unnamed namespace 773 } // unnamed namespace
774 774
775 bool RenderInline::hitTestCulledInline(const HitTestRequest& request, HitTestRes ult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accu mulatedOffset) 775 bool RenderInline::hitTestCulledInline(const HitTestRequest& request, HitTestRes ult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accu mulatedOffset)
776 { 776 {
777 ASSERT(result.isRectBasedTest() && !alwaysCreateLineBoxes()); 777 ASSERT(result.isRectBasedTest() && !alwaysCreateLineBoxes());
778 if (!visibleToHitTesting()) 778 if (!visibleToHitTestRequest(request))
779 return false; 779 return false;
780 780
781 HitTestLocation tmpLocation(locationInContainer, -toLayoutSize(accumulatedOf fset)); 781 HitTestLocation tmpLocation(locationInContainer, -toLayoutSize(accumulatedOf fset));
782 782
783 Region regionResult; 783 Region regionResult;
784 HitTestCulledInlinesGeneratorContext context(regionResult, tmpLocation); 784 HitTestCulledInlinesGeneratorContext context(regionResult, tmpLocation);
785 generateCulledLineBoxRects(context, this); 785 generateCulledLineBoxRects(context, this);
786 786
787 if (context.intersected()) { 787 if (context.intersected()) {
788 updateHitTestResult(result, tmpLocation.point()); 788 updateHitTestResult(result, tmpLocation.point());
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 1579
1580 void RenderInline::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 1580 void RenderInline::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
1581 { 1581 {
1582 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering) ; 1582 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering) ;
1583 RenderBoxModelObject::reportMemoryUsage(memoryObjectInfo); 1583 RenderBoxModelObject::reportMemoryUsage(memoryObjectInfo);
1584 info.addMember(m_children, "children"); 1584 info.addMember(m_children, "children");
1585 info.addMember(m_lineBoxes, "lineBoxes"); 1585 info.addMember(m_lineBoxes, "lineBoxes");
1586 } 1586 }
1587 1587
1588 } // namespace WebCore 1588 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBox.cpp ('k') | Source/WebCore/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698