| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |