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

Side by Side Diff: Source/core/rendering/RootInlineBox.cpp

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } 170 }
171 171
172 void RootInlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom) 172 void RootInlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom)
173 { 173 {
174 InlineFlowBox::paint(paintInfo, paintOffset, lineTop, lineBottom); 174 InlineFlowBox::paint(paintInfo, paintOffset, lineTop, lineBottom);
175 paintEllipsisBox(paintInfo, paintOffset, lineTop, lineBottom); 175 paintEllipsisBox(paintInfo, paintOffset, lineTop, lineBottom);
176 } 176 }
177 177
178 bool RootInlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated Offset, LayoutUnit lineTop, LayoutUnit lineBottom) 178 bool RootInlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated Offset, LayoutUnit lineTop, LayoutUnit lineBottom)
179 { 179 {
180 if (request.touchAction())
Rick Byers 2014/01/17 16:12:46 Does this need to be on a inline-box by inline-box
gnana 2014/01/21 14:00:16 Ok. i will apply Opt-in way.
Rick Byers 2014/01/21 15:24:20 This might be OK. We'd probably need to look at e
leviw_travelin_and_unemployed 2014/01/21 19:15:00 Generally speaking, I agree that what you really w
181 return false;
180 if (hasEllipsisBox() && visibleToHitTestRequest(request)) { 182 if (hasEllipsisBox() && visibleToHitTestRequest(request)) {
181 if (ellipsisBox()->nodeAtPoint(request, result, locationInContainer, acc umulatedOffset, lineTop, lineBottom)) { 183 if (ellipsisBox()->nodeAtPoint(request, result, locationInContainer, acc umulatedOffset, lineTop, lineBottom)) {
182 renderer()->updateHitTestResult(result, locationInContainer.point() - toLayoutSize(accumulatedOffset)); 184 renderer()->updateHitTestResult(result, locationInContainer.point() - toLayoutSize(accumulatedOffset));
183 return true; 185 return true;
184 } 186 }
185 } 187 }
186 return InlineFlowBox::nodeAtPoint(request, result, locationInContainer, accu mulatedOffset, lineTop, lineBottom); 188 return InlineFlowBox::nodeAtPoint(request, result, locationInContainer, accu mulatedOffset, lineTop, lineBottom);
187 } 189 }
188 190
189 void RootInlineBox::adjustPosition(float dx, float dy) 191 void RootInlineBox::adjustPosition(float dx, float dy)
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 } 991 }
990 992
991 #ifndef NDEBUG 993 #ifndef NDEBUG
992 const char* RootInlineBox::boxName() const 994 const char* RootInlineBox::boxName() const
993 { 995 {
994 return "RootInlineBox"; 996 return "RootInlineBox";
995 } 997 }
996 #endif 998 #endif
997 999
998 } // namespace WebCore 1000 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698