[Webkit-unassigned] [Bug 26046] Limit the number of resources and console messages cached by the InspectorController
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 28 15:27:49 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26046
------- Comment #9 from timothy at hatcher.name 2009-05-28 15:27 PDT -------
(From update of attachment 30750)
Looking good!
> - ASSERT(m_frontend);
> + ASSERT(m_frontend.get());
You shoudln't need that change.
> if (!m_frontend.get())
> return;
No need to call .get().
> + if (m_frontend.get())
> + m_frontend->resourceTrackingWasEnabled();
No need to call .get().
> + if (m_frontend.get())
> + m_frontend->resourceTrackingWasDisabled();
No need to call .get().
> + var enableOption = function(text, checked) {
I prefer function enableOption() instead.
> + var caption = document.createElement("text");
> + caption.textContent = text;
> + caption.addEventListener("mousedown", function() { option.checked = true; }, false);
> + li.appendChild(caption);
You should do: <label><input type="radio"> text</label>, then you wont need the
event listener.
> + alwaysWasChosen: function() {
> + return this.enabledAlways.checked;
> }
Maybe a getter for this? get alwaysEnabled()?
> + _toggleProfiling: function(opt_always)
> + _toggleResourceTracking: function(opt_always)
> + _toggleDebugging: function(opt_always)
These variables should not have an underscore and be camelcase, and no
abbrivation.
> + text-align: center;
> + margin-left: 20px;
What was this change for?
> +.panel-enabler-view text {
An element named text isn't good, just use a span. But this wont be needed if
you use by label suggestion.
> + color: rgb(6, 6, 6);
Tab here.
> +.panel-enabler-view.resources img {
> + content: url(Images/scriptsSilhouette.png);
> +}
I'll make a new resource silhouette soon, but we could land like this.
I'll attach the radio button dot soon. You can use multiple background show the
dot.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list