[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

luiz at webkit.org luiz at webkit.org
Wed Dec 22 18:01:09 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit b1deeffb5f0abba2ac06c4b7764dcf860cf879d3
Author: luiz at webkit.org <luiz at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Dec 6 01:14:39 2010 +0000

    2010-11-30  Luiz Agostini  <luiz.agostini at openbossa.org>
    
            Reviewed by Darin Adler.
    
            HTML5 <details> and <summary> initial implementation
            https://bugs.webkit.org/show_bug.cgi?id=50309
    
            HTML5 <details> and <summary> elements initial implementation. The main objective is
            to add the files for html element and renderers, and to get rid of build system issues
            in future patches.
    
            See: http://www.w3.org/TR/html5/interactive-elements.html#the-details-element
                 http://www.w3.org/TR/html5/interactive-elements.html#the-summary-element
    
            build systems
    
            * CMakeLists.txt:
            * DerivedSources.cpp:
            * DerivedSources.make:
            * GNUmakefile.am:
            * WebCore.gypi:
            * WebCore.pri:
            * WebCore.pro:
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * bindings/gobject/GNUmakefile.am:
    
            Some css properties to the new html elements.
    
            * css/html.css:
            (details):
            (summary):
    
            New html element associated with the corresponding tag.
    
            * html/HTMLAttributeNames.in:
            * html/HTMLTagNames.in:
    
            1 html element and 3 renderers were added.
    
            * html/HTMLDetailsElement.cpp: Added.
            * html/HTMLDetailsElement.h: Added.
            * html/HTMLDetailsElement.idl: Added.
            * html/HTMLElementsAllInOne.cpp:
            * rendering/RenderDetails.cpp: Added.
            * rendering/RenderDetails.h: Added.
            * rendering/RenderDetailsMarker.cpp: Added.
            * rendering/RenderDetailsMarker.h: Added.
            * rendering/RenderSummary.cpp: Added.
            * rendering/RenderSummary.h: Added.
            * rendering/RenderingAllInOne.cpp:
    
            New renderer type checkers.
    
            * rendering/RenderObject.h:
            (WebCore::RenderObject::isDetails):
            (WebCore::RenderObject::isDetailsMarker):
            (WebCore::RenderObject::isSummary):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73346 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/CMakeLists.txt b/WebCore/CMakeLists.txt
index 1294f55..731661a 100644
--- a/WebCore/CMakeLists.txt
+++ b/WebCore/CMakeLists.txt
@@ -213,6 +213,7 @@ SET(WebCore_IDL_FILES
     html/HTMLDataGridElement.idl
     html/HTMLDataGridRowElement.idl
     html/HTMLDataListElement.idl
+    html/HTMLDetailsElement.idl
     html/HTMLDirectoryElement.idl
     html/HTMLDivElement.idl
     html/HTMLDListElement.idl
@@ -1009,6 +1010,7 @@ SET(WebCore_SOURCES
     html/HTMLDataGridElement.cpp
     html/HTMLDataGridRowElement.cpp
     html/HTMLDataListElement.cpp
+    html/HTMLDetailsElement.cpp
     html/HTMLDirectoryElement.cpp
     html/HTMLDivElement.cpp
     html/HTMLDocument.cpp
@@ -1441,6 +1443,8 @@ SET(WebCore_SOURCES
     rendering/RenderButton.cpp
     rendering/RenderCounter.cpp
     rendering/RenderDataGrid.cpp
+    rendering/RenderDetails.cpp
+    rendering/RenderDetailsMarker.cpp
     rendering/RenderEmbeddedObject.cpp
     rendering/RenderFieldset.cpp
     rendering/RenderFileUploadControl.cpp
@@ -1477,6 +1481,7 @@ SET(WebCore_SOURCES
     rendering/RenderScrollbarPart.cpp
     rendering/RenderScrollbarTheme.cpp
     rendering/RenderSlider.cpp
+    rendering/RenderSummary.cpp
     rendering/RenderTable.cpp
     rendering/RenderTableCell.cpp
     rendering/RenderTableCol.cpp
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 6c8e8a2..89e1345 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,62 @@
+2010-11-30  Luiz Agostini  <luiz.agostini at openbossa.org>
+
+        Reviewed by Darin Adler.
+
+        HTML5 <details> and <summary> initial implementation
+        https://bugs.webkit.org/show_bug.cgi?id=50309
+
+        HTML5 <details> and <summary> elements initial implementation. The main objective is
+        to add the files for html element and renderers, and to get rid of build system issues
+        in future patches.
+
+        See: http://www.w3.org/TR/html5/interactive-elements.html#the-details-element
+             http://www.w3.org/TR/html5/interactive-elements.html#the-summary-element
+
+        build systems
+
+        * CMakeLists.txt:
+        * DerivedSources.cpp:
+        * DerivedSources.make:
+        * GNUmakefile.am:
+        * WebCore.gypi:
+        * WebCore.pri:
+        * WebCore.pro:
+        * WebCore.vcproj/WebCore.vcproj:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/gobject/GNUmakefile.am:
+
+        Some css properties to the new html elements.
+
+        * css/html.css:
+        (details):
+        (summary):
+
+        New html element associated with the corresponding tag.
+
+        * html/HTMLAttributeNames.in:
+        * html/HTMLTagNames.in:
+
+        1 html element and 3 renderers were added.
+
+        * html/HTMLDetailsElement.cpp: Added.
+        * html/HTMLDetailsElement.h: Added.
+        * html/HTMLDetailsElement.idl: Added.
+        * html/HTMLElementsAllInOne.cpp:
+        * rendering/RenderDetails.cpp: Added.
+        * rendering/RenderDetails.h: Added.
+        * rendering/RenderDetailsMarker.cpp: Added.
+        * rendering/RenderDetailsMarker.h: Added.
+        * rendering/RenderSummary.cpp: Added.
+        * rendering/RenderSummary.h: Added.
+        * rendering/RenderingAllInOne.cpp:
+
+        New renderer type checkers.
+
+        * rendering/RenderObject.h:
+        (WebCore::RenderObject::isDetails):
+        (WebCore::RenderObject::isDetailsMarker):
+        (WebCore::RenderObject::isSummary):
+
 2010-12-05  Rob Buis  <rwlbuis at gmail.com>
 
         Reviewed by Nikolas Zimmermann.
diff --git a/WebCore/DerivedSources.cpp b/WebCore/DerivedSources.cpp
index fbb618a..6d6a28d 100644
--- a/WebCore/DerivedSources.cpp
+++ b/WebCore/DerivedSources.cpp
@@ -145,6 +145,7 @@
 #include "JSHTMLDataGridColElement.cpp"
 #include "JSHTMLDataGridRowElement.cpp"
 #include "JSHTMLDataListElement.cpp"
+#include "JSHTMLDetailsElement.cpp"
 #include "JSHTMLDirectoryElement.cpp"
 #include "JSHTMLDivElement.cpp"
 #include "JSHTMLDListElement.cpp"
diff --git a/WebCore/DerivedSources.make b/WebCore/DerivedSources.make
index 8bdfc4e..4e0f85a 100644
--- a/WebCore/DerivedSources.make
+++ b/WebCore/DerivedSources.make
@@ -213,6 +213,7 @@ DOM_CLASSES = \
     HTMLDataGridColElement \
     HTMLDataGridRowElement \
     HTMLDataListElement \
+    HTMLDetailsElement \
     HTMLDListElement \
     HTMLDirectoryElement \
     HTMLDivElement \
diff --git a/WebCore/GNUmakefile.am b/WebCore/GNUmakefile.am
index 89e2a93..6b26464 100644
--- a/WebCore/GNUmakefile.am
+++ b/WebCore/GNUmakefile.am
@@ -306,6 +306,8 @@ webcore_built_sources += \
 	DerivedSources/WebCore/JSHTMLDataGridRowElement.h \
 	DerivedSources/WebCore/JSHTMLDataListElement.cpp \
 	DerivedSources/WebCore/JSHTMLDataListElement.h \
+	DerivedSources/WebCore/JSHTMLDetailsElement.cpp \
+	DerivedSources/WebCore/JSHTMLDetailsElement.h \
 	DerivedSources/WebCore/JSHTMLDirectoryElement.cpp \
 	DerivedSources/WebCore/JSHTMLDirectoryElement.h \
 	DerivedSources/WebCore/JSHTMLDivElement.cpp \
@@ -1623,6 +1625,8 @@ webcore_sources += \
 	WebCore/html/HTMLDataGridRowElement.h \
 	WebCore/html/HTMLDataListElement.cpp \
 	WebCore/html/HTMLDataListElement.h \
+	WebCore/html/HTMLDetailsElement.cpp \
+	WebCore/html/HTMLDetailsElement.h \
 	WebCore/html/HTMLDirectoryElement.cpp \
 	WebCore/html/HTMLDirectoryElement.h \
 	WebCore/html/HTMLDivElement.cpp \
@@ -2691,6 +2695,10 @@ webcore_sources += \
 	WebCore/rendering/RenderCounter.h \
 	WebCore/rendering/RenderDataGrid.cpp \
 	WebCore/rendering/RenderDataGrid.h \
+	WebCore/rendering/RenderDetails.cpp \
+	WebCore/rendering/RenderDetails.h \
+	WebCore/rendering/RenderDetailsMarker.cpp \
+	WebCore/rendering/RenderDetailsMarker.h \
 	WebCore/rendering/RenderEmbeddedObject.cpp \
 	WebCore/rendering/RenderEmbeddedObject.h \
 	WebCore/rendering/RenderFieldset.cpp \
@@ -2770,6 +2778,8 @@ webcore_sources += \
 	WebCore/rendering/RenderSelectionInfo.h \
 	WebCore/rendering/RenderSlider.cpp \
 	WebCore/rendering/RenderSlider.h \
+	WebCore/rendering/RenderSummary.cpp \
+	WebCore/rendering/RenderSummary.h \
 	WebCore/rendering/RenderSVGBlock.cpp \
 	WebCore/rendering/RenderSVGBlock.h \
 	WebCore/rendering/RenderSVGContainer.cpp \
diff --git a/WebCore/WebCore.gypi b/WebCore/WebCore.gypi
index f13b59c..01c5c89 100644
--- a/WebCore/WebCore.gypi
+++ b/WebCore/WebCore.gypi
@@ -140,6 +140,7 @@
             'html/HTMLDataGridElement.idl',
             'html/HTMLDataGridRowElement.idl',
             'html/HTMLDataListElement.idl',
+            'html/HTMLDetailsElement.idl',
             'html/HTMLDirectoryElement.idl',
             'html/HTMLDivElement.idl',
             'html/HTMLDocument.idl',
@@ -1681,6 +1682,8 @@
             'html/HTMLDataGridRowElement.h',
             'html/HTMLDataListElement.cpp',
             'html/HTMLDataListElement.h',
+            'html/HTMLDetailsElement.cpp',
+            'html/HTMLDetailsElement.h',
             'html/HTMLDirectoryElement.cpp',
             'html/HTMLDirectoryElement.h',
             'html/HTMLDivElement.cpp',
@@ -3715,6 +3718,10 @@
             'rendering/RenderCounter.h',
             'rendering/RenderDataGrid.cpp',
             'rendering/RenderDataGrid.h',
+            'rendering/RenderDetails.cpp',
+            'rendering/RenderDetails.h',
+            'rendering/RenderDetailsMarker.cpp',
+            'rendering/RenderDetailsMarker.h',
             'rendering/RenderEmbeddedObject.cpp',
             'rendering/RenderEmbeddedObject.h',
             'rendering/RenderFieldset.cpp',
@@ -3791,6 +3798,8 @@
             'rendering/RenderRubyRun.h',
             'rendering/RenderRubyText.cpp',
             'rendering/RenderRubyText.h',
+            'rendering/RenderSummary.cpp',
+            'rendering/RenderSummary.h',
             'rendering/RenderSVGBlock.cpp',
             'rendering/RenderSVGBlock.h',
             'rendering/RenderSVGContainer.cpp',
diff --git a/WebCore/WebCore.pri b/WebCore/WebCore.pri
index 319b8c3..c5fb900 100644
--- a/WebCore/WebCore.pri
+++ b/WebCore/WebCore.pri
@@ -228,6 +228,7 @@ IDL_BINDINGS += \
     html/HTMLDataGridColElement.idl \
     html/HTMLDataGridRowElement.idl \
     html/HTMLDataListElement.idl \
+    html/HTMLDetailsElement.idl \
     html/HTMLDirectoryElement.idl \
     html/HTMLDivElement.idl \
     html/HTMLDListElement.idl \
diff --git a/WebCore/WebCore.pro b/WebCore/WebCore.pro
index 51d6b1b..a2eee7e 100644
--- a/WebCore/WebCore.pro
+++ b/WebCore/WebCore.pro
@@ -902,6 +902,7 @@ SOURCES += \
     html/HTMLDataGridRowElement.cpp \
     html/HTMLDataListElement.cpp \
     html/HTMLDirectoryElement.cpp \
+    html/HTMLDetailsElement.cpp \
     html/HTMLDivElement.cpp \
     html/HTMLDocument.cpp \
     html/HTMLElement.cpp \
@@ -1281,6 +1282,8 @@ SOURCES += \
     rendering/RenderButton.cpp \
     rendering/RenderCounter.cpp \
     rendering/RenderDataGrid.cpp \
+    rendering/RenderDetails.cpp \
+    rendering/RenderDetailsMarker.cpp \
     rendering/RenderEmbeddedObject.cpp \
     rendering/RenderFieldset.cpp \
     rendering/RenderFileUploadControl.cpp \
@@ -1319,6 +1322,7 @@ SOURCES += \
     rendering/RenderScrollbarPart.cpp \
     rendering/RenderScrollbarTheme.cpp \
     rendering/RenderSlider.cpp \
+    rendering/RenderSummary.cpp \
     rendering/RenderTable.cpp \
     rendering/RenderTableCell.cpp \
     rendering/RenderTableCol.cpp \
@@ -1811,6 +1815,7 @@ HEADERS += \
     html/HTMLDataGridElement.h \
     html/HTMLDataGridRowElement.h \
     html/HTMLDirectoryElement.h \
+    html/HTMLDetailsElement.h \
     html/HTMLDivElement.h \
     html/HTMLDListElement.h \
     html/HTMLDocument.h \
@@ -2236,6 +2241,8 @@ HEADERS += \
     rendering/RenderButton.h \
     rendering/RenderCounter.h \
     rendering/RenderDataGrid.h \
+    rendering/RenderDetails.h \
+    rendering/RenderDetailsMarker.h \
     rendering/RenderEmbeddedObject.h \
     rendering/RenderFieldset.h \
     rendering/RenderFileUploadControl.h \
@@ -2277,6 +2284,7 @@ HEADERS += \
     rendering/RenderScrollbarPart.h \
     rendering/RenderScrollbarTheme.h \
     rendering/RenderSlider.h \
+    rendering/RenderSummary.h \
     rendering/RenderSVGBlock.h \
     rendering/RenderSVGContainer.h \
     rendering/RenderSVGGradientStop.h \
diff --git a/WebCore/WebCore.vcproj/WebCore.vcproj b/WebCore/WebCore.vcproj/WebCore.vcproj
index 92cf42b..3a04bac 100755
--- a/WebCore/WebCore.vcproj/WebCore.vcproj
+++ b/WebCore/WebCore.vcproj/WebCore.vcproj
@@ -6546,6 +6546,62 @@
 				>
 			</File>
 			<File
+				RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDetailsElement.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_All|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_LTCG|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+			</File>
+			<File
+				RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDetailsElement.h"
+				>
+			</File>
+			<File
 				RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDirectoryElement.cpp"
 				>
 				<FileConfiguration
@@ -33022,6 +33078,118 @@
 				>
 			</File>
 			<File
+				RelativePath="..\rendering\RenderDetails.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_All|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_LTCG|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+			</File>
+			<File
+				RelativePath="..\rendering\RenderDetails.h"
+				>
+			</File>
+			<File
+				RelativePath="..\rendering\RenderDetailsMarker.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_All|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_LTCG|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+			</File>
+			<File
+				RelativePath="..\rendering\RenderDetailsMarker.h"
+				>
+			</File>
+			<File
 				RelativePath="..\rendering\RenderEmbeddedObject.cpp"
 				>
 				<FileConfiguration
@@ -35294,6 +35462,62 @@
 				>
 			</File>
 			<File
+				RelativePath="..\rendering\RenderSummary.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_All|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_LTCG|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+			</File>
+			<File
+				RelativePath="..\rendering\RenderSummary.h"
+				>
+			</File>
+			<File
 				RelativePath="..\rendering\RenderSVGAllInOne.cpp"
 				>
 			</File>
@@ -51078,6 +51302,62 @@
 				>
 			</File>
 			<File
+				RelativePath="..\html\HTMLDetailsElement.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_Cairo_CFLite|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Debug_All|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release_LTCG|Win32"
+					ExcludedFromBuild="true"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+					/>
+				</FileConfiguration>
+			</File>
+			<File
+				RelativePath="..\html\HTMLDetailsElement.h"
+				>
+			</File>
+			<File
 				RelativePath="..\html\HTMLDirectoryElement.cpp"
 				>
 				<FileConfiguration
diff --git a/WebCore/WebCore.xcodeproj/project.pbxproj b/WebCore/WebCore.xcodeproj/project.pbxproj
index 78604b0..5d4f511 100644
--- a/WebCore/WebCore.xcodeproj/project.pbxproj
+++ b/WebCore/WebCore.xcodeproj/project.pbxproj
@@ -5335,7 +5335,20 @@
 		D23CA55D0AB0EAAE005108A5 /* JSRangeException.h in Headers */ = {isa = PBXBuildFile; fileRef = D23CA55C0AB0EAAE005108A5 /* JSRangeException.h */; };
 		D23CA55F0AB0EAB6005108A5 /* JSRangeException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D23CA55E0AB0EAB6005108A5 /* JSRangeException.cpp */; };
 		D23CA56C0AB0EB8D005108A5 /* RangeException.h in Headers */ = {isa = PBXBuildFile; fileRef = D23CA56B0AB0EB8D005108A5 /* RangeException.h */; };
+		D302754712A5FE84004BD828 /* RenderDetails.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D302754312A5FE84004BD828 /* RenderDetails.cpp */; };
+		D302754812A5FE84004BD828 /* RenderDetails.h in Headers */ = {isa = PBXBuildFile; fileRef = D302754412A5FE84004BD828 /* RenderDetails.h */; };
+		D302754912A5FE84004BD828 /* RenderDetailsMarker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D302754512A5FE84004BD828 /* RenderDetailsMarker.cpp */; };
+		D302754A12A5FE84004BD828 /* RenderDetailsMarker.h in Headers */ = {isa = PBXBuildFile; fileRef = D302754612A5FE84004BD828 /* RenderDetailsMarker.h */; };
+		D302754D12A5FEAB004BD828 /* RenderSummary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D302754B12A5FEAB004BD828 /* RenderSummary.cpp */; };
+		D302754E12A5FEAB004BD828 /* RenderSummary.h in Headers */ = {isa = PBXBuildFile; fileRef = D302754C12A5FEAB004BD828 /* RenderSummary.h */; };
 		D340629B1253BC8C009E4259 /* MediaQueryListListener.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D340629A1253BC8C009E4259 /* MediaQueryListListener.cpp */; };
+		D359D789129CA2710006E5D2 /* HTMLDetailsElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D359D786129CA2710006E5D2 /* HTMLDetailsElement.cpp */; };
+		D359D78A129CA2710006E5D2 /* HTMLDetailsElement.h in Headers */ = {isa = PBXBuildFile; fileRef = D359D787129CA2710006E5D2 /* HTMLDetailsElement.h */; };
+		D359D791129CA3C00006E5D2 /* DOMHTMLDetailsElement.h in Headers */ = {isa = PBXBuildFile; fileRef = D359D78E129CA3C00006E5D2 /* DOMHTMLDetailsElement.h */; };
+		D359D792129CA3C00006E5D2 /* DOMHTMLDetailsElement.mm in Sources */ = {isa = PBXBuildFile; fileRef = D359D78F129CA3C00006E5D2 /* DOMHTMLDetailsElement.mm */; };
+		D359D793129CA3C00006E5D2 /* DOMHTMLDetailsElementInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = D359D790129CA3C00006E5D2 /* DOMHTMLDetailsElementInternal.h */; };
+		D359D8BE129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D359D8BC129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp */; };
+		D359D8BF129CA55C0006E5D2 /* JSHTMLDetailsElement.h in Headers */ = {isa = PBXBuildFile; fileRef = D359D8BD129CA55C0006E5D2 /* JSHTMLDetailsElement.h */; };
 		D39D006D11F8E308006041F2 /* PopupMenuMac.h in Headers */ = {isa = PBXBuildFile; fileRef = D39D006C11F8E308006041F2 /* PopupMenuMac.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		D39D009D11F907E6006041F2 /* SearchPopupMenuMac.h in Headers */ = {isa = PBXBuildFile; fileRef = D39D009C11F907E6006041F2 /* SearchPopupMenuMac.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		D3A94A38122DABAC00A37BBC /* MediaQueryList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D3A94A31122DABAC00A37BBC /* MediaQueryList.cpp */; };
@@ -11426,7 +11439,21 @@
 		D23CA55C0AB0EAAE005108A5 /* JSRangeException.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSRangeException.h; sourceTree = "<group>"; };
 		D23CA55E0AB0EAB6005108A5 /* JSRangeException.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSRangeException.cpp; sourceTree = "<group>"; };
 		D23CA56B0AB0EB8D005108A5 /* RangeException.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RangeException.h; sourceTree = "<group>"; };
+		D302754312A5FE84004BD828 /* RenderDetails.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderDetails.cpp; sourceTree = "<group>"; };
+		D302754412A5FE84004BD828 /* RenderDetails.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderDetails.h; sourceTree = "<group>"; };
+		D302754512A5FE84004BD828 /* RenderDetailsMarker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderDetailsMarker.cpp; sourceTree = "<group>"; };
+		D302754612A5FE84004BD828 /* RenderDetailsMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderDetailsMarker.h; sourceTree = "<group>"; };
+		D302754B12A5FEAB004BD828 /* RenderSummary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSummary.cpp; sourceTree = "<group>"; };
+		D302754C12A5FEAB004BD828 /* RenderSummary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSummary.h; sourceTree = "<group>"; };
 		D340629A1253BC8C009E4259 /* MediaQueryListListener.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaQueryListListener.cpp; sourceTree = "<group>"; };
+		D359D786129CA2710006E5D2 /* HTMLDetailsElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLDetailsElement.cpp; sourceTree = "<group>"; };
+		D359D787129CA2710006E5D2 /* HTMLDetailsElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDetailsElement.h; sourceTree = "<group>"; };
+		D359D788129CA2710006E5D2 /* HTMLDetailsElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDetailsElement.idl; sourceTree = "<group>"; };
+		D359D78E129CA3C00006E5D2 /* DOMHTMLDetailsElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMHTMLDetailsElement.h; sourceTree = "<group>"; };
+		D359D78F129CA3C00006E5D2 /* DOMHTMLDetailsElement.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMHTMLDetailsElement.mm; sourceTree = "<group>"; };
+		D359D790129CA3C00006E5D2 /* DOMHTMLDetailsElementInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMHTMLDetailsElementInternal.h; sourceTree = "<group>"; };
+		D359D8BC129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDetailsElement.cpp; sourceTree = "<group>"; };
+		D359D8BD129CA55C0006E5D2 /* JSHTMLDetailsElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLDetailsElement.h; sourceTree = "<group>"; };
 		D39D006C11F8E308006041F2 /* PopupMenuMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PopupMenuMac.h; sourceTree = "<group>"; };
 		D39D009C11F907E6006041F2 /* SearchPopupMenuMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SearchPopupMenuMac.h; sourceTree = "<group>"; };
 		D3A94A31122DABAC00A37BBC /* MediaQueryList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaQueryList.cpp; sourceTree = "<group>"; };
@@ -14136,6 +14163,9 @@
 				85DF2F8D0AA3C88100AD64C5 /* DOMHTMLCollection.mm */,
 				F5C041DE0FFCA96D00839D4A /* DOMHTMLDataListElement.h */,
 				F5C041DF0FFCA96D00839D4A /* DOMHTMLDataListElement.mm */,
+				D359D78E129CA3C00006E5D2 /* DOMHTMLDetailsElement.h */,
+				D359D78F129CA3C00006E5D2 /* DOMHTMLDetailsElement.mm */,
+				D359D790129CA3C00006E5D2 /* DOMHTMLDetailsElementInternal.h */,
 				85BA4CFD0AA688680088052D /* DOMHTMLDirectoryElement.h */,
 				85BA4CFE0AA688680088052D /* DOMHTMLDirectoryElement.mm */,
 				85BA4CFF0AA688680088052D /* DOMHTMLDivElement.h */,
@@ -14845,6 +14875,9 @@
 				F5C041D70FFCA7CE00839D4A /* HTMLDataListElement.cpp */,
 				F5C041D80FFCA7CE00839D4A /* HTMLDataListElement.h */,
 				F5C041D90FFCA7CE00839D4A /* HTMLDataListElement.idl */,
+				D359D786129CA2710006E5D2 /* HTMLDetailsElement.cpp */,
+				D359D787129CA2710006E5D2 /* HTMLDetailsElement.h */,
+				D359D788129CA2710006E5D2 /* HTMLDetailsElement.idl */,
 				A8EA79ED0A1916DF00A8EF5F /* HTMLDirectoryElement.cpp */,
 				A8EA79EE0A1916DF00A8EF5F /* HTMLDirectoryElement.h */,
 				1A85B1D90A1B23A400D8C87C /* HTMLDirectoryElement.idl */,
@@ -15385,6 +15418,8 @@
 				BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */,
 				F5C041E10FFCA96D00839D4A /* JSHTMLDataListElement.cpp */,
 				F5C041E20FFCA96D00839D4A /* JSHTMLDataListElement.h */,
+				D359D8BC129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp */,
+				D359D8BD129CA55C0006E5D2 /* JSHTMLDetailsElement.h */,
 				1A85B1E00A1B240500D8C87C /* JSHTMLDirectoryElement.cpp */,
 				1A85B1E10A1B240500D8C87C /* JSHTMLDirectoryElement.h */,
 				1A85B2B40A1B2AC700D8C87C /* JSHTMLDivElement.cpp */,
@@ -17992,6 +18027,10 @@
 				9392F1410AD185F400691BD4 /* RenderCounter.h */,
 				BC77CEC70FF01CBE0070887B /* RenderDataGrid.cpp */,
 				BC77CEB20FF017F20070887B /* RenderDataGrid.h */,
+				D302754312A5FE84004BD828 /* RenderDetails.cpp */,
+				D302754412A5FE84004BD828 /* RenderDetails.h */,
+				D302754512A5FE84004BD828 /* RenderDetailsMarker.cpp */,
+				D302754612A5FE84004BD828 /* RenderDetailsMarker.h */,
 				0F5B7A5210F65D7A00376302 /* RenderEmbeddedObject.cpp */,
 				0F5B7A5310F65D7A00376302 /* RenderEmbeddedObject.h */,
 				A8EA73AF0A1900E300A8EF5F /* RenderFieldset.cpp */,
@@ -18076,6 +18115,8 @@
 				0F11A54E0F39233100C37884 /* RenderSelectionInfo.h */,
 				AB247A6A0AFD6383003FA5FD /* RenderSlider.cpp */,
 				AB247A6B0AFD6383003FA5FD /* RenderSlider.h */,
+				D302754B12A5FEAB004BD828 /* RenderSummary.cpp */,
+				D302754C12A5FEAB004BD828 /* RenderSummary.h */,
 				A7352C170B1BB89D00A986D0 /* RenderSVGBlock.cpp */,
 				A7352C180B1BB89D00A986D0 /* RenderSVGBlock.h */,
 				853CA9CA0AEEC5E9002372DC /* RenderSVGContainer.cpp */,
@@ -21430,6 +21471,13 @@
 				93F199ED08245E59001E9ABC /* XSLTProcessor.h in Headers */,
 				E1BE512E0CF6C512002EA959 /* XSLTUnicodeSort.h in Headers */,
 				97DD4D870FDF4D6E00ECF9A4 /* XSSAuditor.h in Headers */,
+				D359D78A129CA2710006E5D2 /* HTMLDetailsElement.h in Headers */,
+				D359D791129CA3C00006E5D2 /* DOMHTMLDetailsElement.h in Headers */,
+				D359D793129CA3C00006E5D2 /* DOMHTMLDetailsElementInternal.h in Headers */,
+				D359D8BF129CA55C0006E5D2 /* JSHTMLDetailsElement.h in Headers */,
+				D302754812A5FE84004BD828 /* RenderDetails.h in Headers */,
+				D302754A12A5FE84004BD828 /* RenderDetailsMarker.h in Headers */,
+				D302754E12A5FEAB004BD828 /* RenderSummary.h in Headers */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -21489,7 +21537,6 @@
 			isa = PBXProject;
 			buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */;
 			compatibilityVersion = "Xcode 2.4";
-			developmentRegion = English;
 			hasScannedForEncodings = 1;
 			knownRegions = (
 				English,
@@ -24008,6 +24055,12 @@
 				93F19B0508245E59001E9ABC /* XSLTProcessorLibxslt.cpp in Sources */,
 				E1BE512D0CF6C512002EA959 /* XSLTUnicodeSort.cpp in Sources */,
 				97DD4D860FDF4D6E00ECF9A4 /* XSSAuditor.cpp in Sources */,
+				D359D789129CA2710006E5D2 /* HTMLDetailsElement.cpp in Sources */,
+				D359D792129CA3C00006E5D2 /* DOMHTMLDetailsElement.mm in Sources */,
+				D359D8BE129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp in Sources */,
+				D302754712A5FE84004BD828 /* RenderDetails.cpp in Sources */,
+				D302754912A5FE84004BD828 /* RenderDetailsMarker.cpp in Sources */,
+				D302754D12A5FEAB004BD828 /* RenderSummary.cpp in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
diff --git a/WebCore/bindings/gobject/GNUmakefile.am b/WebCore/bindings/gobject/GNUmakefile.am
index bf896bd..b4f98d1 100644
--- a/WebCore/bindings/gobject/GNUmakefile.am
+++ b/WebCore/bindings/gobject/GNUmakefile.am
@@ -90,6 +90,8 @@ webkitgtk_gdom_built_sources += \
 	DerivedSources/webkit/WebKitDOMHTMLCanvasElementPrivate.h \
 	DerivedSources/webkit/WebKitDOMHTMLCollection.cpp \
 	DerivedSources/webkit/WebKitDOMHTMLCollectionPrivate.h \
+	DerivedSources/webkit/WebKitDOMHTMLDetailsElement.cpp \
+	DerivedSources/webkit/WebKitDOMHTMLDetailsElementPrivate.h \
 	DerivedSources/webkit/WebKitDOMHTMLDirectoryElement.cpp \
 	DerivedSources/webkit/WebKitDOMHTMLDirectoryElementPrivate.h \
 	DerivedSources/webkit/WebKitDOMHTMLDivElement.cpp \
@@ -305,6 +307,7 @@ webkitgtk_built_h_api += \
 	DerivedSources/webkit/WebKitDOMHTMLDivElement.h \
 	DerivedSources/webkit/WebKitDOMHTMLDListElement.h \
 	DerivedSources/webkit/WebKitDOMHTMLDocument.h \
+	DerivedSources/webkit/WebKitDOMHTMLDetailsElement.h \
 	DerivedSources/webkit/WebKitDOMHTMLElement.h \
 	DerivedSources/webkit/WebKitDOMHTMLEmbedElement.h \
 	DerivedSources/webkit/WebKitDOMHTMLFieldSetElement.h \
diff --git a/WebCore/css/html.css b/WebCore/css/html.css
index 3032302..c9ca58b 100644
--- a/WebCore/css/html.css
+++ b/WebCore/css/html.css
@@ -759,6 +759,14 @@ iframe {
     border: 2px inset
 }
 
+details {
+    display: block
+}
+
+summary {
+    display: block
+}
+
 /* page */
 
 @page {
diff --git a/WebCore/html/HTMLAttributeNames.in b/WebCore/html/HTMLAttributeNames.in
index c6792f8..e3ac153 100644
--- a/WebCore/html/HTMLAttributeNames.in
+++ b/WebCore/html/HTMLAttributeNames.in
@@ -231,6 +231,7 @@ onwebkitbeginfullscreen
 onwebkitendfullscreen
 onwebkitfullscreenchange
 onwebkittransitionend
+open
 optimum
 pattern
 placeholder
diff --git a/WebCore/html/HTMLDetailsElement.cpp b/WebCore/html/HTMLDetailsElement.cpp
new file mode 100644
index 0000000..0bcae0b
--- /dev/null
+++ b/WebCore/html/HTMLDetailsElement.cpp
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "config.h"
+#include "HTMLDetailsElement.h"
+
+#include "HTMLNames.h"
+#include "RenderDetails.h"
+
+namespace WebCore {
+
+using namespace HTMLNames;
+
+PassRefPtr<HTMLDetailsElement> HTMLDetailsElement::create(const QualifiedName& tagName, Document* document)
+{
+    return adoptRef(new HTMLDetailsElement(tagName, document));
+}
+
+HTMLDetailsElement::HTMLDetailsElement(const QualifiedName& tagName, Document* document)
+    : HTMLElement(tagName, document)
+{
+    ASSERT(hasTagName(detailsTag));
+}
+
+RenderObject* HTMLDetailsElement::createRenderer(RenderArena* arena, RenderStyle*)
+{
+    return new (arena) RenderDetails(this);
+}
+
+}
diff --git a/WebCore/html/HTMLDetailsElement.h b/WebCore/html/HTMLDetailsElement.h
new file mode 100644
index 0000000..16427ef
--- /dev/null
+++ b/WebCore/html/HTMLDetailsElement.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef HTMLDetailsElement_h
+#define HTMLDetailsElement_h
+
+#include "HTMLElement.h"
+
+namespace WebCore {
+
+class HTMLDetailsElement : public HTMLElement {
+public:
+    static PassRefPtr<HTMLDetailsElement> create(const QualifiedName& tagName, Document* document);
+
+private:
+    HTMLDetailsElement(const QualifiedName&, Document*);
+
+    virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
+
+};
+
+} // namespace WebCore
+
+#endif // HTMLDetailsElement_h
diff --git a/WebCore/html/HTMLDetailsElement.idl b/WebCore/html/HTMLDetailsElement.idl
new file mode 100644
index 0000000..5ad9508
--- /dev/null
+++ b/WebCore/html/HTMLDetailsElement.idl
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+module html {
+
+    interface HTMLDetailsElement : HTMLElement {
+        attribute [Reflect] boolean open;
+    };
+
+}
diff --git a/WebCore/html/HTMLElementsAllInOne.cpp b/WebCore/html/HTMLElementsAllInOne.cpp
index 8411188..785a94b 100644
--- a/WebCore/html/HTMLElementsAllInOne.cpp
+++ b/WebCore/html/HTMLElementsAllInOne.cpp
@@ -47,6 +47,7 @@
 #include "HTMLDataGridColElement.cpp"
 #include "HTMLDataGridRowElement.cpp"
 #include "HTMLDataListElement.cpp"
+#include "HTMLDetailsElement.cpp"
 #include "HTMLDListElement.cpp"
 #include "HTMLDirectoryElement.cpp"
 #include "HTMLDivElement.cpp"
diff --git a/WebCore/html/HTMLTagNames.in b/WebCore/html/HTMLTagNames.in
index cd4ebcc..9e2156c 100644
--- a/WebCore/html/HTMLTagNames.in
+++ b/WebCore/html/HTMLTagNames.in
@@ -36,7 +36,7 @@ dcol interfaceName=HTMLDataGridColElement, conditional=DATAGRID
 drow interfaceName=HTMLDataGridRowElement, conditional=DATAGRID
 dd interfaceName=HTMLElement
 del interfaceName=HTMLModElement
-details interfaceName=HTMLElement
+details
 dfn interfaceName=HTMLElement
 dir interfaceName=HTMLDirectoryElement
 div
diff --git a/WebCore/rendering/RenderDetails.cpp b/WebCore/rendering/RenderDetails.cpp
new file mode 100644
index 0000000..c14fdfd
--- /dev/null
+++ b/WebCore/rendering/RenderDetails.cpp
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "config.h"
+#include "RenderDetails.h"
+
+namespace WebCore {
+
+RenderDetails::RenderDetails(Node* element)
+    : RenderBlock(element)
+{
+}
+
+}
diff --git a/WebCore/rendering/RenderDetails.h b/WebCore/rendering/RenderDetails.h
new file mode 100644
index 0000000..901b197
--- /dev/null
+++ b/WebCore/rendering/RenderDetails.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef RenderDetails_h
+#define RenderDetails_h
+
+#include "RenderBlock.h"
+
+namespace WebCore {
+
+class RenderDetails : public RenderBlock {
+public:
+    explicit RenderDetails(Node*);
+
+private:
+    virtual const char* renderName() const { return "RenderDetails"; }
+    virtual bool isDetails() const { return true; }
+};
+
+inline RenderDetails* toRenderDetails(RenderObject* object)
+{
+    ASSERT(!object || object->isDetails());
+    return static_cast<RenderDetails*>(object);
+}
+
+// This will catch anyone doing an unnecessary cast.
+void toRenderDetails(const RenderDetails*);
+
+}
+
+#endif // RenderDetails_h
diff --git a/WebCore/rendering/RenderDetailsMarker.cpp b/WebCore/rendering/RenderDetailsMarker.cpp
new file mode 100644
index 0000000..26e49d9
--- /dev/null
+++ b/WebCore/rendering/RenderDetailsMarker.cpp
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "config.h"
+#include "RenderDetailsMarker.h"
+
+namespace WebCore {
+
+RenderDetailsMarker::RenderDetailsMarker(Node* element)
+    : RenderBlock(element)
+{
+}
+
+}
diff --git a/WebCore/rendering/RenderDetailsMarker.h b/WebCore/rendering/RenderDetailsMarker.h
new file mode 100644
index 0000000..08bdbd8
--- /dev/null
+++ b/WebCore/rendering/RenderDetailsMarker.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef RenderDetailsMarker_h
+#define RenderDetailsMarker_h
+
+#include "RenderBlock.h"
+
+namespace WebCore {
+
+class RenderDetailsMarker : public RenderBlock {
+public:
+    explicit RenderDetailsMarker(Node*);
+
+private:
+    virtual const char* renderName() const { return "RenderDetailsMarker"; }
+    virtual bool isDetailsMarker() const { return true; }
+};
+
+inline RenderDetailsMarker* toRenderDetailsMarker(RenderObject* object)
+{
+    ASSERT(!object || object->isDetails());
+    return static_cast<RenderDetailsMarker*>(object);
+}
+
+// This will catch anyone doing an unnecessary cast.
+void toRenderDetailsMarker(const RenderDetailsMarker*);
+
+}
+
+#endif // RenderDetailsMarker_h
+
diff --git a/WebCore/rendering/RenderObject.h b/WebCore/rendering/RenderObject.h
index e16ad46..5c68a6d 100644
--- a/WebCore/rendering/RenderObject.h
+++ b/WebCore/rendering/RenderObject.h
@@ -240,6 +240,8 @@ public:
     virtual bool isBlockFlow() const { return false; }
     virtual bool isBoxModelObject() const { return false; }
     virtual bool isCounter() const { return false; }
+    virtual bool isDetails() const { return false; }
+    virtual bool isDetailsMarker() const { return false; }
     virtual bool isEmbeddedObject() const { return false; }
     virtual bool isFieldset() const { return false; }
     virtual bool isFileUploadControl() const { return false; }
@@ -273,6 +275,7 @@ public:
     virtual bool isRubyText() const { return false; }
 
     virtual bool isSlider() const { return false; }
+    virtual bool isSummary() const { return false; }
     virtual bool isTable() const { return false; }
     virtual bool isTableCell() const { return false; }
     virtual bool isTableCol() const { return false; }
diff --git a/WebCore/rendering/RenderSummary.cpp b/WebCore/rendering/RenderSummary.cpp
new file mode 100644
index 0000000..8fccf66
--- /dev/null
+++ b/WebCore/rendering/RenderSummary.cpp
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "config.h"
+#include "RenderSummary.h"
+
+namespace WebCore {
+
+RenderSummary::RenderSummary(Node* element)
+    : RenderBlock(element)
+{
+}
+
+}
diff --git a/WebCore/rendering/RenderSummary.h b/WebCore/rendering/RenderSummary.h
new file mode 100644
index 0000000..afc18fa
--- /dev/null
+++ b/WebCore/rendering/RenderSummary.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef RenderSummary_h
+#define RenderSummary_h
+
+#include "RenderBlock.h"
+
+namespace WebCore {
+
+class RenderSummary : public RenderBlock {
+public:
+    explicit RenderSummary(Node*);
+
+private:
+    virtual const char* renderName() const { return "RenderSummary"; }
+    virtual bool isSummary() const { return true; }
+};
+
+inline RenderSummary* toRenderSummary(RenderObject* object)
+{
+    ASSERT(!object || object->isSummary());
+    return static_cast<RenderSummary*>(object);
+}
+
+// This will catch anyone doing an unnecessary cast.
+void toRenderSummary(const RenderSummary*);
+
+}
+
+#endif // RenderSummary_h
+
diff --git a/WebCore/rendering/RenderingAllInOne.cpp b/WebCore/rendering/RenderingAllInOne.cpp
index 7a3a705..37ba704 100644
--- a/WebCore/rendering/RenderingAllInOne.cpp
+++ b/WebCore/rendering/RenderingAllInOne.cpp
@@ -47,6 +47,8 @@
 #include "RenderButton.cpp"
 #include "RenderCounter.cpp"
 #include "RenderDataGrid.cpp"
+#include "RenderDetails.cpp"
+#include "RenderDetailsMarker.cpp"
 #include "RenderEmbeddedObject.cpp"
 #include "RenderFieldset.cpp"
 #include "RenderFileUploadControl.cpp"
@@ -87,6 +89,7 @@
 #include "RenderScrollbarPart.cpp"
 #include "RenderScrollbarTheme.cpp"
 #include "RenderSlider.cpp"
+#include "RenderSummary.cpp"
 #include "RenderTable.cpp"
 #include "RenderTableCell.cpp"
 #include "RenderTableCol.cpp"

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list