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

Unified Diff: Source/devtools/front_end/ui/ViewportControl.js

Issue 397073006: DevTools: [Console] fix corner case in viewport text selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/inspector/console/console-viewport-selection-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/ViewportControl.js
diff --git a/Source/devtools/front_end/ui/ViewportControl.js b/Source/devtools/front_end/ui/ViewportControl.js
index 59be1c11d4244e85e2e0b071e235f40c0e519c1d..938e056583870d839a3e161e47307942acbf19f7 100644
--- a/Source/devtools/front_end/ui/ViewportControl.js
+++ b/Source/devtools/front_end/ui/ViewportControl.js
@@ -509,8 +509,6 @@ WebInspector.ViewportControl.prototype = {
*/
_textOffsetInNode: function(itemElement, container, offset)
{
- if (!offset)
- return 0;
var chars = 0;
var node = itemElement;
while ((node = node.traverseNextTextNode()) && node !== container)
« no previous file with comments | « LayoutTests/inspector/console/console-viewport-selection-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698