<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[194673] trunk/Source/WebInspectorUI</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/194673">194673</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-01-06 15:46:21 -0800 (Wed, 06 Jan 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Web Inspector: Add basic Animation section to Visual Sidebar
https://bugs.webkit.org/show_bug.cgi?id=152692
Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-01-06
Reviewed by Timothy Hatcher.
Adds a non-autocompleting section to the "Effects" section (renamed from
"Animations") of the Visual sidebar for setting CSS Animation values.
* Scripts/copy-user-interface-resources.pl:
* Localizations/en.lproj/localizedStrings.js:
* UserInterface/Images/AnimationPlayStatePaused.svg: Added.
* UserInterface/Images/AnimationPlayStateRunning.svg: Added.
* UserInterface/Main.html:
* UserInterface/Views/VisualStyleBasicInput.js: Added.
(WebInspector.VisualStyleBasicInput):
(WebInspector.VisualStyleBasicInput.prototype.get value):
(WebInspector.VisualStyleBasicInput.prototype.set value):
(WebInspector.VisualStyleBasicInput.prototype.get synthesizedValue):
(WebInspector.VisualStyleBasicInput.prototype._handleInputElementInput):
Very basic editor that is just an input box with a given placeholder.
* UserInterface/Views/VisualStyleDetailsPanel.js:
(WebInspector.VisualStyleDetailsPanel):
(WebInspector.VisualStyleDetailsPanel.prototype._populateAnimationSection):
Creates the necessary property editors and adds them to their respective rows.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs">trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js</a></li>
<li><a href="#trunkSourceWebInspectorUIScriptscopyuserinterfaceresourcespl">trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceMainhtml">trunk/Source/WebInspectorUI/UserInterface/Main.html</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleDetailsPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceImagesAnimationPlayStatePausedsvg">trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStatePaused.svg</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceImagesAnimationPlayStateRunningsvg">trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStateRunning.svg</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleBasicInputjs">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleBasicInput.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (194672 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2016-01-06 23:37:08 UTC (rev 194672)
+++ trunk/Source/WebInspectorUI/ChangeLog        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -1,5 +1,34 @@
</span><span class="cx"> 2016-01-06 Devin Rousso <dcrousso+webkit@gmail.com>
</span><span class="cx">
</span><ins>+ Web Inspector: Add basic Animation section to Visual Sidebar
+ https://bugs.webkit.org/show_bug.cgi?id=152692
+
+ Reviewed by Timothy Hatcher.
+
+ Adds a non-autocompleting section to the "Effects" section (renamed from
+ "Animations") of the Visual sidebar for setting CSS Animation values.
+
+ * Scripts/copy-user-interface-resources.pl:
+ * Localizations/en.lproj/localizedStrings.js:
+ * UserInterface/Images/AnimationPlayStatePaused.svg: Added.
+ * UserInterface/Images/AnimationPlayStateRunning.svg: Added.
+ * UserInterface/Main.html:
+
+ * UserInterface/Views/VisualStyleBasicInput.js: Added.
+ (WebInspector.VisualStyleBasicInput):
+ (WebInspector.VisualStyleBasicInput.prototype.get value):
+ (WebInspector.VisualStyleBasicInput.prototype.set value):
+ (WebInspector.VisualStyleBasicInput.prototype.get synthesizedValue):
+ (WebInspector.VisualStyleBasicInput.prototype._handleInputElementInput):
+ Very basic editor that is just an input box with a given placeholder.
+
+ * UserInterface/Views/VisualStyleDetailsPanel.js:
+ (WebInspector.VisualStyleDetailsPanel):
+ (WebInspector.VisualStyleDetailsPanel.prototype._populateAnimationSection):
+ Creates the necessary property editors and adds them to their respective rows.
+
+2016-01-06 Devin Rousso <dcrousso+webkit@gmail.com>
+
</ins><span class="cx"> Web Inspector: Add remaining background style properties to Visual sidebar
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=152757
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (194672 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2016-01-06 23:37:08 UTC (rev 194672)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -229,6 +229,7 @@
</span><span class="cx"> localizedStrings["Edit Text"] = "Edit Text";
</span><span class="cx"> localizedStrings["Edit as HTML"] = "Edit as HTML";
</span><span class="cx"> localizedStrings["Edit %s "] = "Edit %s ";
</span><ins>+localizedStrings["Effects"] = "Effects";
</ins><span class="cx"> localizedStrings["Element"] = "Element";
</span><span class="cx"> localizedStrings["Element clips compositing descendants"] = "Element clips compositing descendants";
</span><span class="cx"> localizedStrings["Element establishes a stacking context"] = "Element establishes a stacking context";
</span><span class="lines">@@ -269,6 +270,7 @@
</span><span class="cx"> localizedStrings["Enter a Gradient"] = "Enter a Gradient";
</span><span class="cx"> localizedStrings["Enter a URL"] = "Enter a URL";
</span><span class="cx"> localizedStrings["Enter a name."] = "Enter a name.";
</span><ins>+localizedStrings["Enter the name of a Keyframe"] = "Enter the name of a Keyframe";
</ins><span class="cx"> localizedStrings["Error: "] = "Error: ";
</span><span class="cx"> localizedStrings["Errors"] = "Errors";
</span><span class="cx"> localizedStrings["Eval Code"] = "Eval Code";
</span><span class="lines">@@ -284,6 +286,7 @@
</span><span class="cx"> localizedStrings["Extra Scripts"] = "Extra Scripts";
</span><span class="cx"> localizedStrings["Family"] = "Family";
</span><span class="cx"> localizedStrings["Filename"] = "Filename";
</span><ins>+localizedStrings["Fill Mode"] = "Fill Mode";
</ins><span class="cx"> localizedStrings["Filter %s"] = "Filter %s";
</span><span class="cx"> localizedStrings["Filter Breakpoint List"] = "Filter Breakpoint List";
</span><span class="cx"> localizedStrings["Filter Console Log"] = "Filter Console Log";
</span><span class="lines">@@ -364,6 +367,7 @@
</span><span class="cx"> localizedStrings["Inset"] = "Inset";
</span><span class="cx"> localizedStrings["Invalid"] = "Invalid";
</span><span class="cx"> localizedStrings["Invoke getter"] = "Invoke getter";
</span><ins>+localizedStrings["Iterations"] = "Iterations";
</ins><span class="cx"> localizedStrings["JavaScript & Events"] = "JavaScript & Events";
</span><span class="cx"> localizedStrings["Jump to Definition"] = "Jump to Definition";
</span><span class="cx"> localizedStrings["Keep Log on Navigation"] = "Keep Log on Navigation";
</span><span class="lines">@@ -590,6 +594,7 @@
</span><span class="cx"> localizedStrings["Start Playback"] = "Start Playback";
</span><span class="cx"> localizedStrings["Start Recording"] = "Start Recording";
</span><span class="cx"> localizedStrings["Start Time"] = "Start Time";
</span><ins>+localizedStrings["State"] = "State";
</ins><span class="cx"> localizedStrings["Status"] = "Status";
</span><span class="cx"> localizedStrings["Step"] = "Step";
</span><span class="cx"> localizedStrings["Step into (%s or %s)"] = "Step into (%s or %s)";
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIScriptscopyuserinterfaceresourcespl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl (194672 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl        2016-01-06 23:37:08 UTC (rev 194672)
+++ trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -94,6 +94,7 @@
</span><span class="cx"> * Copyright (C) 2014-2015 Saam Barati <saambarati1@gmail.com>
</span><span class="cx"> * Copyright (C) 2014 Antoine Quint
</span><span class="cx"> * Copyright (C) 2015 Tobias Reiss <tobi+webkit@basecode.de>
</span><ins>+ * Copyright (C) 2015-2016 Devin Rousso <dcrousso+webkit@gmail.com>. All rights reserved.
</ins><span class="cx"> *
</span><span class="cx"> * Redistribution and use in source and binary forms, with or without
</span><span class="cx"> * modification, are permitted provided that the following conditions
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceImagesAnimationPlayStatePausedsvg"></a>
<div class="addfile"><h4>Added: trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStatePaused.svg (0 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStatePaused.svg         (rev 0)
+++ trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStatePaused.svg        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright © 2015 Apple Inc. All rights reserved. -->
+<!-- Copyright © 2016 Devin Rousso <dcrousso+webkit@gmail.com>. All rights reserved. -->
+<svg xmlns="http://www.w3.org/2000/svg" id="root" version="1.1" viewBox="0 0 16 16">
+ <rect fill="currentColor" stroke="none" x="2.5" y="2.5" width="3" height="10"/>
+ <rect fill="currentColor" stroke="none" x="9.5" y="2.5" width="3" height="10"/>
+</svg>
</ins></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceImagesAnimationPlayStateRunningsvg"></a>
<div class="addfile"><h4>Added: trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStateRunning.svg (0 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStateRunning.svg         (rev 0)
+++ trunk/Source/WebInspectorUI/UserInterface/Images/AnimationPlayStateRunning.svg        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright © 2016 Devin Rousso <dcrousso+webkit@gmail.com>. All rights reserved. -->
+<svg xmlns="http://www.w3.org/2000/svg" id="root" version="1.1" viewBox="0 0 16 16">
+ <path fill="currentColor" stroke="none" d="M 4.5 2.5 L 4.5 12.5 L 12.5 7.5 Z"/>
+</svg>
</ins></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceMainhtml"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Main.html (194672 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Main.html        2016-01-06 23:37:08 UTC (rev 194672)
+++ trunk/Source/WebInspectorUI/UserInterface/Main.html        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -584,6 +584,7 @@
</span><span class="cx"> <script src="Views/VisualStyleDetailsPanel.js"></script>
</span><span class="cx"> <script src="Views/VisualStylePropertyEditor.js"></script>
</span><span class="cx"> <script src="Views/VisualStyleBackgroundPicker.js"></script>
</span><ins>+ <script src="Views/VisualStyleBasicInput.js"></script>
</ins><span class="cx"> <script src="Views/VisualStyleColorPicker.js"></script>
</span><span class="cx"> <script src="Views/VisualStyleCommaSeparatedKeywordEditor.js"></script>
</span><span class="cx"> <script src="Views/VisualStyleFontFamilyListEditor.js"></script>
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleBasicInputjs"></a>
<div class="addfile"><h4>Added: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleBasicInput.js (0 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleBasicInput.js         (rev 0)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleBasicInput.js        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+/*
+ * Copyright (C) 2016 Devin Rousso <dcrousso+webkit@gmail.com>. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+WebInspector.VisualStyleBasicInput = class VisualStyleBasicInput extends WebInspector.VisualStylePropertyEditor
+{
+ constructor(propertyNames, text, placeholder, layoutReversed)
+ {
+ super(propertyNames, text, null, null, "basic-input", layoutReversed);
+
+ this._inputElement = this.contentElement.createChild("input");
+ this._inputElement.spellcheck = false;
+ this._inputElement.setAttribute("placeholder", placeholder || "");
+ this._inputElement.addEventListener("input", this._handleInputElementInput.bind(this));
+ }
+
+ // Public
+
+ get value()
+ {
+ return this._inputElement.value || null;
+ }
+
+ set value(value)
+ {
+ if (value && value === this.value)
+ return;
+
+ this._inputElement.value = value || "";
+ }
+
+ get synthesizedValue()
+ {
+ return this.value;
+ }
+
+ // Private
+
+ _handleInputElementInput(event)
+ {
+ this._valueDidChange();
+ }
+};
</ins></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleDetailsPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js (194672 => 194673)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js        2016-01-06 23:37:08 UTC (rev 194672)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js        2016-01-06 23:46:21 UTC (rev 194673)
</span><span class="lines">@@ -94,11 +94,12 @@
</span><span class="cx"> this._sections.background = new WebInspector.DetailsSection("background", WebInspector.UIString("Background"), [this._groups.backgroundStyle.section, this._groups.border.section, this._groups.outline.section, this._groups.boxShadow.section, this._groups.listStyle.section]);
</span><span class="cx"> this.element.appendChild(this._sections.background.element);
</span><span class="cx">
</span><del>- // Animation Section
</del><ins>+ // Effects Section
</ins><span class="cx"> this._generateSection("transition", WebInspector.UIString("Transition"));
</span><ins>+ this._generateSection("animation", WebInspector.UIString("Animation"));
</ins><span class="cx">
</span><del>- this._sections.animation = new WebInspector.DetailsSection("animation", WebInspector.UIString("Animation"), [this._groups.transition.section]);
- this.element.appendChild(this._sections.animation.element);
</del><ins>+ this._sections.effects = new WebInspector.DetailsSection("effects", WebInspector.UIString("Effects"), [this._groups.transition.section, this._groups.animation.section]);
+ this.element.appendChild(this._sections.effects.element);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Public
</span><span class="lines">@@ -1133,6 +1134,55 @@
</span><span class="cx"> this._populateSection(group, [transitionGroup]);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ _populateAnimationSection()
+ {
+ let group = this._groups.animation;
+ let properties = group.properties;
+
+ let animationNameRow = new WebInspector.DetailsSectionRow;
+
+ properties.animationName = new WebInspector.VisualStyleBasicInput("animation-name", WebInspector.UIString("Name"), WebInspector.UIString("Enter the name of a Keyframe"));
+
+ animationNameRow.element.appendChild(properties.animationName.element);
+
+ let animationTimingRow = new WebInspector.DetailsSectionRow;
+
+ properties.animationTiming = new WebInspector.VisualStyleTimingEditor("animation-timing-function", WebInspector.UIString("Timing"), ["Linear", "Ease", "Ease In", "Ease Out", "Ease In Out"]);
+ properties.animationIterationCount = new WebInspector.VisualStyleNumberInputBox("animation-iteration-count", WebInspector.UIString("Iterations"), this._keywords.defaults.concat(["Infinite"]), null);
+
+ animationTimingRow.element.appendChild(properties.animationTiming.element);
+ animationTimingRow.element.appendChild(properties.animationIterationCount.element);
+
+ let animationDurationRow = new WebInspector.DetailsSectionRow;
+
+ let animationTimeKeywords = ["s", "ms"];
+ properties.animationDuration = new WebInspector.VisualStyleNumberInputBox("animation-duration", WebInspector.UIString("Duration"), null, animationTimeKeywords);
+ properties.animationDelay = new WebInspector.VisualStyleNumberInputBox("animation-delay", WebInspector.UIString("Delay"), null, animationTimeKeywords);
+
+ animationDurationRow.element.appendChild(properties.animationDuration.element);
+ animationDurationRow.element.appendChild(properties.animationDelay.element);
+
+ let animationDirectionRow = new WebInspector.DetailsSectionRow;
+
+ properties.animationDirection = new WebInspector.VisualStyleKeywordPicker("animation-direction", WebInspector.UIString("Direction"), {
+ basic: this._keywords.defaults.concat(["Normal", "Reverse"]),
+ advanced: ["Alternate", "Alternate Reverse"]
+ });
+ properties.animationFillMode = new WebInspector.VisualStyleKeywordPicker("animation-fill-mode", WebInspector.UIString("Fill Mode"), this._keywords.defaults.concat(["None", "Forwards", "Backwards", "Both"]));
+
+ animationDirectionRow.element.appendChild(properties.animationDirection.element);
+ animationDirectionRow.element.appendChild(properties.animationFillMode.element);
+
+ let animationStateRow = new WebInspector.DetailsSectionRow;
+
+ properties.animationPlayState = new WebInspector.VisualStyleKeywordIconList("animation-play-state", WebInspector.UIString("State"), ["Running", "Paused", "Initial"]);
+
+ animationStateRow.element.appendChild(properties.animationPlayState.element);
+
+ let animationGroup = new WebInspector.DetailsSectionGroup([animationNameRow, animationTimingRow, animationDurationRow, animationDirectionRow, animationStateRow]);
+ this._populateSection(group, [animationGroup]);
+ }
+
</ins><span class="cx"> _noRemainingCommaSeparatedEditorItems(propertyCombiner, propertyEditors)
</span><span class="cx"> {
</span><span class="cx"> if (!propertyCombiner || !propertyEditors)
</span></span></pre>
</div>
</div>
</body>
</html>