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

Side by Side Diff: sky/engine/core/rendering/RenderInline.cpp

Issue 924273003: Remove HitTestAction. (Closed) Base URL: git@github.com:domokit/mojo.git@hittestfilter
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/RenderLineBoxList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 const char* RenderInline::renderName() const 352 const char* RenderInline::renderName() const
353 { 353 {
354 if (isRelPositioned()) 354 if (isRelPositioned())
355 return "RenderInline (relative positioned)"; 355 return "RenderInline (relative positioned)";
356 if (isAnonymous()) 356 if (isAnonymous())
357 return "RenderInline (generated)"; 357 return "RenderInline (generated)";
358 return "RenderInline"; 358 return "RenderInline";
359 } 359 }
360 360
361 bool RenderInline::nodeAtPoint(const HitTestRequest& request, HitTestResult& res ult, 361 bool RenderInline::nodeAtPoint(const HitTestRequest& request, HitTestResult& res ult,
362 const HitTestLocation& locationInContainer, cons t LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) 362 const HitTestLocation& locationInContainer, cons t LayoutPoint& accumulatedOffset)
363 { 363 {
364 return m_lineBoxes.hitTest(this, request, result, locationInContainer, accum ulatedOffset, hitTestAction); 364 return m_lineBoxes.hitTest(this, request, result, locationInContainer, accum ulatedOffset);
365 } 365 }
366 366
367 namespace { 367 namespace {
368 368
369 class HitTestCulledInlinesGeneratorContext { 369 class HitTestCulledInlinesGeneratorContext {
370 public: 370 public:
371 HitTestCulledInlinesGeneratorContext(Region& region, const HitTestLocation& location) : m_intersected(false), m_region(region), m_location(location) { } 371 HitTestCulledInlinesGeneratorContext(Region& region, const HitTestLocation& location) : m_intersected(false), m_region(region), m_location(location) { }
372 void operator()(const FloatRect& rect) 372 void operator()(const FloatRect& rect)
373 { 373 {
374 m_intersected = m_intersected || m_location.intersects(rect); 374 m_intersected = m_intersected || m_location.intersects(rect);
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 767
768 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer) const 768 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer) const
769 { 769 {
770 AbsoluteRectsIgnoringEmptyRectsGeneratorContext context(rects, additionalOff set); 770 AbsoluteRectsIgnoringEmptyRectsGeneratorContext context(rects, additionalOff set);
771 generateLineBoxRects(context); 771 generateLineBoxRects(context);
772 772
773 addChildFocusRingRects(rects, additionalOffset, paintContainer); 773 addChildFocusRingRects(rects, additionalOffset, paintContainer);
774 } 774 }
775 775
776 } // namespace blink 776 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/RenderLineBoxList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698