Commit d959166c authored by Dave Schuyler's avatar Dave Schuyler Committed by Commit Bot

[cr webui] no inky focus impl in cr-link-row

This CL removes a call to PapperInkyFocusBehaviorImpl so that it would not need to be explicitly imported.

Bug: 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I68d90de1716f1e6567de8927d9e9386501a3fd80
Reviewed-on: https://chromium-review.googlesource.com/693040
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506609}
parent 9b995386
......@@ -6,7 +6,7 @@
{
'target_name': 'cr_link_row',
'dependencies': [
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/paper-behaviors/compiled_resources2.gyp:paper-inky-focus-behavior-extracted',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-behaviors/compiled_resources2.gyp:iron-button-state-extracted',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/paper-behaviors/compiled_resources2.gyp:paper-ripple-behavior-extracted',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
......
......@@ -45,18 +45,10 @@ Polymer({
_createRipple: function() {
this._rippleContainer = this.$.icon;
return Polymer.PaperInkyFocusBehaviorImpl._createRipple.call(this);
var ripple = Polymer.PaperRippleBehavior._createRipple();
ripple.id = 'ink';
ripple.setAttribute('recenters', '');
ripple.classList.add('circle');
return ripple;
},
/**
* @param {...*} var_args
*/
ensureRipple: function(var_args) {
var lastRipple = this._ripple;
Polymer.PaperRippleBehavior.ensureRipple.apply(this, arguments);
if (this._ripple && this._ripple !== lastRipple) {
this._ripple.center = true;
this._ripple.classList.add('circle');
}
}
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment