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

Unified Diff: chrome/browser/resources/md_bookmarks/command_manager.html

Issue 2940233003: MD Bookmarks: Lazily render dropdown menus (Closed)
Patch Set: Flush before show Created 3 years, 6 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
Index: chrome/browser/resources/md_bookmarks/command_manager.html
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.html b/chrome/browser/resources/md_bookmarks/command_manager.html
index 1a875725109eafd2003957919496f5f57a04191d..2cde12573620b9a073f4c9bed71e2311f4423a5a 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.html
+++ b/chrome/browser/resources/md_bookmarks/command_manager.html
@@ -11,18 +11,20 @@
<dom-module id="bookmarks-command-manager">
<template>
<style include="shared-style"></style>
- <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
- <template is="dom-repeat" items="[[menuCommands_]]" as="command">
- <button class="dropdown-item"
- command$="[[command]]"
- hidden$="[[!isCommandVisible_(command, menuIds_)]]"
- disabled$="[[!isCommandEnabled_(command, menuIds_)]]"
- on-tap="onCommandClick_">
- [[getCommandLabel_(command, menuIds_)]]
- </button>
- <hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr>
- </template>
- </dialog>
+ <template is="cr-lazy-render" id="dropdown">
+ <dialog is="cr-action-menu" on-mousedown="onMenuMousedown_">
+ <template is="dom-repeat" items="[[menuCommands_]]" as="command">
+ <button class="dropdown-item"
+ command$="[[command]]"
+ hidden$="[[!isCommandVisible_(command, menuIds_)]]"
+ disabled$="[[!isCommandEnabled_(command, menuIds_)]]"
+ on-tap="onCommandClick_">
+ [[getCommandLabel_(command, menuIds_)]]
+ </button>
+ <hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr>
+ </template>
+ </dialog>
+ </template>
<template is="cr-lazy-render" id="editDialog">
<bookmarks-edit-dialog></bookmarks-edit-dialog>
</template>

Powered by Google App Engine
This is Rietveld 408576698