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

Issue 11566026: NTP5: Apps regression fix. (Closed)

Created:
8 years ago by pedro (no code reviews)
Modified:
8 years ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews), pedrosimonetti+watch_chromium.org, David Black, Evan Stade
Visibility:
Public.

Description

NTP5: Regression fix. A regression fix was introduced while refactoring the Tile logic in: https://codereview.chromium.org/11438009/ The App insertion animation got broke, and this CL fixes the problem. It also fixes one corner-case bug of the insertion animation. This CL depends on https://codereview.chromium.org/11564026/. BUG=166184 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173376

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing Dan's comments #

Patch Set 3 : Improving code #

Total comments: 3

Patch Set 4 : Addressing comment & improving code #

Patch Set 5 : NTP5: Making Apps page taller #

Patch Set 6 : NTP5: Apps regression fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -23 lines) Patch
M chrome/browser/resources/ntp_search/apps_page.js View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/resources/ntp_search/most_visited_page.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp_search/new_tab.js View 1 2 3 4 5 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/resources/ntp_search/thumbnail_page.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp_search/tile_page.js View 1 2 3 9 chunks +30 lines, -15 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
pedro (no code reviews)
Hi Dan, please take a look at this CL. It fixes a regression bug. Thanks.
8 years ago (2012-12-14 09:28:10 UTC) #1
Dan Beam
https://codereview.chromium.org/11566026/diff/1/chrome/browser/resources/ntp_search/apps_page.js File chrome/browser/resources/ntp_search/apps_page.js (right): https://codereview.chromium.org/11566026/diff/1/chrome/browser/resources/ntp_search/apps_page.js#newcode188 chrome/browser/resources/ntp_search/apps_page.js:188: * @param {Object} opt_data The data representing the app. ...
8 years ago (2012-12-14 18:28:12 UTC) #2
pedro (no code reviews)
https://codereview.chromium.org/11566026/diff/1/chrome/browser/resources/ntp_search/apps_page.js File chrome/browser/resources/ntp_search/apps_page.js (right): https://codereview.chromium.org/11566026/diff/1/chrome/browser/resources/ntp_search/apps_page.js#newcode188 chrome/browser/resources/ntp_search/apps_page.js:188: * @param {Object} opt_data The data representing the app. ...
8 years ago (2012-12-14 18:54:10 UTC) #3
pedro (no code reviews)
Hey Dan, please take another look. I think I found a better solution for that ...
8 years ago (2012-12-14 22:35:00 UTC) #4
Dan Beam
lgtm https://codereview.chromium.org/11566026/diff/9001/chrome/browser/resources/ntp_search/tile_page.js File chrome/browser/resources/ntp_search/tile_page.js (right): https://codereview.chromium.org/11566026/diff/9001/chrome/browser/resources/ntp_search/tile_page.js#newcode849 chrome/browser/resources/ntp_search/tile_page.js:849: var tileCells = this.querySelectorAll('.tile-cell'); FYI: if you use ...
8 years ago (2012-12-14 22:49:46 UTC) #5
pedro (no code reviews)
Thanks for the tip. I won't submit this right now because it depends on https://codereview.chromium.org/11564026/, ...
8 years ago (2012-12-14 23:42:56 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pedrosimonetti@chromium.org/11566026/13001
8 years ago (2012-12-16 00:35:41 UTC) #7
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years ago (2012-12-16 04:52:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pedrosimonetti@chromium.org/11566026/13001
8 years ago (2012-12-16 06:33:39 UTC) #9
commit-bot: I haz the power
Change committed as 173376
8 years ago (2012-12-16 06:33:54 UTC) #10
Dan Beam
8 years ago (2012-12-17 19:08:56 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/11566026/diff/9001/chrome/browser/resources/n...
File chrome/browser/resources/ntp_search/tile_page.js (right):

https://codereview.chromium.org/11566026/diff/9001/chrome/browser/resources/n...
chrome/browser/resources/ntp_search/tile_page.js:849: var tileCells =
this.querySelectorAll('.tile-cell');
On 2012/12/14 23:42:57, pedrosimonetti wrote:
> On 2012/12/14 22:49:46, Dan Beam wrote:
> > FYI: if you use getElementsByClassName() you won't need to double query
> > selector, as the collection updates itself as things with that class name
get
> > added.
> 
> Done. Thanks for the explanation. I wonder why querySelectorAll() is not
> auto-updated like getElementsBySomething().

This is by design in the new API so mutations events don't need to keep track of
and update live collections.  Also, many web authors just didn't understand that
getElementsBy{Class,Tag}Name() collections change when modifying the DOM.

Powered by Google App Engine
This is Rietveld 408576698