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

Issue 5992004: dom-ui settings: Enable searching for sub-pages... (Closed)

Created:
10 years ago by csilv
Modified:
9 years, 7 months ago
CC:
chromium-reviews, arv (Not doing code reviews), stuartmorgan
Visibility:
Public.

Description

dom-ui settings: - enable searching for sub-pages and overlays. - search-related performance improvements. BUG=59267 TEST=Verify search find results in sub-pages. Control(button) highlighting TBD. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70118

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 6

Patch Set 6 : Fix searching nested sub-pages. #

Patch Set 7 : Code review tweaks. #

Total comments: 8

Patch Set 8 : Code review tweaks. #

Total comments: 20

Patch Set 9 : Code review tweaks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -55 lines) Patch
M chrome/browser/resources/options/options.js View 1 2 3 4 5 6 7 8 4 chunks +33 lines, -21 lines 0 comments Download
M chrome/browser/resources/options/options_page.js View 1 2 3 4 5 6 7 8 8 chunks +89 lines, -8 lines 0 comments Download
M chrome/browser/resources/options/search_page.js View 1 2 3 4 5 6 7 8 8 chunks +78 lines, -26 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
csilv
10 years ago (2010-12-23 01:12:23 UTC) #1
James Hawkins
http://codereview.chromium.org/5992004/diff/8001/chrome/browser/resources/options/options_page.js File chrome/browser/resources/options/options_page.js (right): http://codereview.chromium.org/5992004/diff/8001/chrome/browser/resources/options/options_page.js#newcode248 chrome/browser/resources/options/options_page.js:248: * @param {OptionsPage} page Page to register. s/page/subPage/ http://codereview.chromium.org/5992004/diff/8001/chrome/browser/resources/options/options_page.js#newcode249 ...
10 years ago (2010-12-23 01:16:29 UTC) #2
csilv
http://codereview.chromium.org/5992004/diff/8001/chrome/browser/resources/options/options_page.js File chrome/browser/resources/options/options_page.js (right): http://codereview.chromium.org/5992004/diff/8001/chrome/browser/resources/options/options_page.js#newcode248 chrome/browser/resources/options/options_page.js:248: * @param {OptionsPage} page Page to register. On 2010/12/23 ...
10 years ago (2010-12-23 02:59:45 UTC) #3
James Hawkins
+arv for good measure http://codereview.chromium.org/5992004/diff/9004/chrome/browser/resources/options/options_page.js File chrome/browser/resources/options/options_page.js (right): http://codereview.chromium.org/5992004/diff/9004/chrome/browser/resources/options/options_page.js#newcode240 chrome/browser/resources/options/options_page.js:240: * Fine an enclosing section ...
10 years ago (2010-12-23 19:29:44 UTC) #4
csilv
http://codereview.chromium.org/5992004/diff/9004/chrome/browser/resources/options/options_page.js File chrome/browser/resources/options/options_page.js (right): http://codereview.chromium.org/5992004/diff/9004/chrome/browser/resources/options/options_page.js#newcode240 chrome/browser/resources/options/options_page.js:240: * Fine an enclosing section for an element if ...
10 years ago (2010-12-23 19:56:23 UTC) #5
arv (Not doing code reviews)
LGTM I have some suggestions but ignore them if you want. I'm leaving work early ...
10 years ago (2010-12-23 20:38:22 UTC) #6
csilv
http://codereview.chromium.org/5992004/diff/22001/chrome/browser/resources/options/options.js File chrome/browser/resources/options/options.js (right): http://codereview.chromium.org/5992004/diff/22001/chrome/browser/resources/options/options.js#newcode73 chrome/browser/resources/options/options.js:73: null); On 2010/12/23 20:38:22, arv wrote: > can you ...
10 years ago (2010-12-23 21:46:07 UTC) #7
arv (Not doing code reviews)
9 years, 12 months ago (2010-12-28 18:03:26 UTC) #8
On Thu, Dec 23, 2010 at 13:46,  <csilv@chromium.org> wrote:

>
http://codereview.chromium.org/5992004/diff/22001/chrome/browser/resources/op...
> chrome/browser/resources/options/options_page.js:246: while (node =
> node.parentNode) {
> On 2010/12/23 20:38:22, arv wrote:
>>
>> node.parentElement since you don't care about non elements.
>
> parentElement?  I can't find any references to that other than mention
> that it's supported in IE.
>
> Nevertheless, it's probably unnecessary anyway.  parentNode is always
> going to return an element or null.  So my extra checking of the
> nodeType is unnecessary.  Will simplify.
>
>
http://codereview.chromium.org/5992004/diff/22001/chrome/browser/resources/op...
> chrome/browser/resources/options/options_page.js:247: if (node.nodeType
> == document.ELEMENT_NODE &&
> On 2010/12/23 20:38:22, arv wrote:
>>
>> Node.Element_NODE
>
>> ... if you use parentNode you can skip the nodeType check

WebKit has parentElement as well and the only difference from
parentNode is that parentNode will include the document node.

assertTrue(document.documentElement.parentNode, document)
assertNull(document.documentElement.parentElement)


-- 
erik

Powered by Google App Engine
This is Rietveld 408576698