Support for HTMLProgressElement
https://bugs.webkit.org/show_bug.cgi?id=35937
Reviewed by Darin Adler.
WebCore:
Added support for HTMLProgressElement.
This implementation is enabled only for Qt, because only RenderThemeQt
was modified to actually draw the progress element.
The labels attribute of the progress element will be implemented in a
separate patch.
Tests: fast/dom/HTMLProgressElement/progress-element.html
fast/dom/HTMLProgressElement/set-progress-properties.html
* DerivedSources.cpp:
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pri:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
* css/CSSSelector.cpp:
(WebCore::CSSSelector::extractPseudoType):
* css/CSSValueKeywords.in:
* css/html.css:
* html/HTMLElement.cpp:
(WebCore::inlineTagList):
* html/HTMLElementsAllInOne.cpp:
* html/HTMLFormControlElement.cpp:
* html/HTMLFormControlElement.h:
* html/HTMLProgressElement.cpp: Added.
* html/HTMLProgressElement.h: Added.
* html/HTMLProgressElement.idl: Added.
* html/HTMLTagNames.in:
* page/DOMWindow.idl:
* platform/ThemeTypes.h:
* platform/qt/RenderThemeQt.cpp:
* platform/qt/RenderThemeQt.h:
* rendering/RenderObject.h:
* rendering/RenderProgress.cpp: Added.
* rendering/RenderProgress.h: Added.
* rendering/RenderTheme.cpp:
* rendering/RenderTheme.h:
LayoutTests:
* fast/dom/HTMLProgressElement: Added.
* fast/dom/HTMLProgressElement/progress-element.html: Added.
* fast/dom/HTMLProgressElement/script-tests: Added.
* fast/dom/HTMLProgressElement/script-tests/TEMPLATE.html: Added.
* fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js: Added.
* fast/dom/HTMLProgressElement/set-progress-properties.html: Added.
* platform/gtk/Skipped:
* platform/mac/Skipped:
* platform/qt/fast/dom/HTMLProgressElement: Added.
* platform/qt/fast/dom/HTMLProgressElement/progress-element-expected.checksum: Added.
* platform/qt/fast/dom/HTMLProgressElement/progress-element-expected.png: Added.
* platform/qt/fast/dom/HTMLProgressElement/progress-element-expected.txt: Added.
* platform/qt/fast/dom/HTMLProgressElement/set-progress-properties-expected.txt: Added.
git-svn-id: svn://svn.chromium.org/blink/trunk@55980 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/WebCore/css/html.css b/WebCore/css/html.css
index be10d61..d036be0 100644
--- a/WebCore/css/html.css
+++ b/WebCore/css/html.css
@@ -515,6 +515,19 @@
font-weight: normal;
}
+/* progress */
+
+progress {
+ -webkit-appearance: progress-bar;
+ padding: initial;
+ border: initial;
+ margin: 2px;
+}
+
+progress::-webkit-progress-bar {
+ -webkit-appearance: progress-bar;
+}
+
/* datagrid */
datagrid {