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

Side by Side Diff: Source/devtools/front_end/components/DOMPresentationUtils.js

Issue 1262063003: Devtools UI: Remove redundant tooltips (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 var className = classes[i]; 66 var className = classes[i];
67 if (className && !(className in foundClasses)) { 67 if (className && !(className in foundClasses)) {
68 var part = "." + className; 68 var part = "." + className;
69 title += part; 69 title += part;
70 classesElement.createTextChild(part); 70 classesElement.createTextChild(part);
71 foundClasses[className] = true; 71 foundClasses[className] = true;
72 } 72 }
73 } 73 }
74 } 74 }
75 } 75 }
76 parentElement.title = title;
77 } 76 }
78 77
79 /** 78 /**
80 * @param {!Element} container 79 * @param {!Element} container
81 * @param {string} nodeTitle 80 * @param {string} nodeTitle
82 */ 81 */
83 WebInspector.DOMPresentationUtils.createSpansForNodeTitle = function(container, nodeTitle) 82 WebInspector.DOMPresentationUtils.createSpansForNodeTitle = function(container, nodeTitle)
84 { 83 {
85 var match = nodeTitle.match(/([^#.]+)(#[^.]+)?(\..*)?/); 84 var match = nodeTitle.match(/([^#.]+)(#[^.]+)?(\..*)?/);
86 container.createChild("span", "webkit-html-tag-name").textContent = match[1] ; 85 container.createChild("span", "webkit-html-tag-name").textContent = match[1] ;
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 WebInspector.DOMNodePathStep.prototype = { 601 WebInspector.DOMNodePathStep.prototype = {
603 /** 602 /**
604 * @override 603 * @override
605 * @return {string} 604 * @return {string}
606 */ 605 */
607 toString: function() 606 toString: function()
608 { 607 {
609 return this.value; 608 return this.value;
610 } 609 }
611 } 610 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698