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

Side by Side Diff: Source/core/html/HTMLBlinkElement.js

Issue 419213002: [Not for review] Implement a <blink> tag in Blink-in-JS Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLBlinkElement.idl ('k') | Source/core/html/HTMLTagNames.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 'use strict';
6
7 installClass('HTMLBlinkElement', function(global, HTMLBlinkElementPrototype) {
8 HTMLBlinkElementPrototype.attachedCallback = function() {
9 this.displayed_ = 1;
10 this.timer_ = setInterval(function() {
11 this.setAttribute("style", this.displayed_ ? "display:inline" : "dis play:none");
abarth-chromium 2014/08/01 21:42:45 I think you're supposed to twiddle between visibil
haraken 2014/08/01 21:48:03 Done.
12 this.displayed_ ^= 1;
13 }.bind(this), 500);
14 };
15
16 HTMLBlinkElementPrototype.detachedCallback = function() {
17 clearInterval(this.timer_);
18 };
19 });
OLDNEW
« no previous file with comments | « Source/core/html/HTMLBlinkElement.idl ('k') | Source/core/html/HTMLTagNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698