| Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| index 9528aeea9873e7fdc33fa200f3e28618b6f29ab2..4b1b406c97e6e0a0808e6fafd877eb10c29d79d0 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -876,12 +876,16 @@ class HitTestCulledInlinesGeneratorContext {
|
| const HitTestLocation& location)
|
| : m_intersected(false), m_region(region), m_location(location) {}
|
| void operator()(const FloatRect& rect) {
|
| - m_intersected = m_intersected || m_location.intersects(rect);
|
| - m_region.unite(enclosingIntRect(rect));
|
| + if (m_location.intersects(rect)) {
|
| + m_intersected = true;
|
| + m_region.unite(enclosingIntRect(rect));
|
| + }
|
| }
|
| void operator()(const LayoutRect& rect) {
|
| - m_intersected = m_intersected || m_location.intersects(rect);
|
| - m_region.unite(enclosingIntRect(rect));
|
| + if (m_location.intersects(rect)) {
|
| + m_intersected = true;
|
| + m_region.unite(enclosingIntRect(rect));
|
| + }
|
| }
|
| bool intersected() const { return m_intersected; }
|
|
|
|
|