Changeset 106794 in webkit


Ignore:
Timestamp:
Feb 6, 2012 2:39:29 AM (12 years ago)
Author:
hayato@chromium.org
Message:

Add <shadow> element, which is guarded by SHADOW_DOM flag.
https://bugs.webkit.org/show_bug.cgi?id=76435

Reviewed by Dimitri Glazkov.

Test: fast/dom/shadow/shadow-element.html

Source/WebCore:

  • CMakeLists.txt:
  • DerivedSources.cpp:
  • DerivedSources.make:
  • DerivedSources.pri:
  • GNUmakefile.list.am:
  • Target.pri:
  • WebCore.gypi:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • html/HTMLElementsAllInOne.cpp:
  • html/HTMLTagNames.in:
  • html/shadow/HTMLShadowElement.cpp: Added.

(WebCore):
(WebCore::HTMLShadowElement::HTMLShadowElement):
(WebCore::HTMLShadowElement::create):
(WebCore::HTMLShadowElement::~HTMLShadowElement):

  • html/shadow/HTMLShadowElement.h: Added.

(WebCore):
(HTMLShadowElement):

  • html/shadow/HTMLShadowElement.idl: Added.

LayoutTests:

  • fast/dom/shadow/shadow-element-expected.txt: Added.
  • fast/dom/shadow/shadow-element.html: Added.
Location:
trunk
Files:
5 added
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r106792 r106794  
     12012-02-06  Hayato Ito  <hayato@chromium.org>
     2
     3        Add <shadow> element, which is guarded by SHADOW_DOM flag.
     4        https://bugs.webkit.org/show_bug.cgi?id=76435
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        Test: fast/dom/shadow/shadow-element.html
     9
     10        * fast/dom/shadow/shadow-element-expected.txt: Added.
     11        * fast/dom/shadow/shadow-element.html: Added.
     12
    1132012-02-06  Joe Thomas  <joethomas@motorola.com>
    214
  • trunk/Source/WebCore/CMakeLists.txt

    r106772 r106794  
    308308
    309309    html/shadow/HTMLContentElement.idl
     310    html/shadow/HTMLShadowElement.idl
    310311
    311312    html/track/TextTrackList.idl
     
    867868    html/shadow/DetailsMarkerControl.cpp
    868869    html/shadow/HTMLContentElement.cpp
     870    html/shadow/HTMLShadowElement.cpp
    869871    html/shadow/MediaControls.cpp
    870872    html/shadow/MediaControlRootElement.cpp
  • trunk/Source/WebCore/ChangeLog

    r106792 r106794  
     12012-02-06  Hayato Ito  <hayato@chromium.org>
     2
     3        Add <shadow> element, which is guarded by SHADOW_DOM flag.
     4        https://bugs.webkit.org/show_bug.cgi?id=76435
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        Test: fast/dom/shadow/shadow-element.html
     9
     10        * CMakeLists.txt:
     11        * DerivedSources.cpp:
     12        * DerivedSources.make:
     13        * DerivedSources.pri:
     14        * GNUmakefile.list.am:
     15        * Target.pri:
     16        * WebCore.gypi:
     17        * WebCore.vcproj/WebCore.vcproj:
     18        * WebCore.xcodeproj/project.pbxproj:
     19        * html/HTMLElementsAllInOne.cpp:
     20        * html/HTMLTagNames.in:
     21        * html/shadow/HTMLShadowElement.cpp: Added.
     22        (WebCore):
     23        (WebCore::HTMLShadowElement::HTMLShadowElement):
     24        (WebCore::HTMLShadowElement::create):
     25        (WebCore::HTMLShadowElement::~HTMLShadowElement):
     26        * html/shadow/HTMLShadowElement.h: Added.
     27        (WebCore):
     28        (HTMLShadowElement):
     29        * html/shadow/HTMLShadowElement.idl: Added.
     30
    1312012-02-06  Joe Thomas  <joethomas@motorola.com>
    232
  • trunk/Source/WebCore/DerivedSources.cpp

    r106373 r106794  
    194194#include "JSHTMLScriptElement.cpp"
    195195#include "JSHTMLSelectElement.cpp"
     196#if ENABLE(SHADOW_DOM)
     197#include "JSHTMLShadowElement.cpp"
     198#endif
    196199#include "JSHTMLSourceElement.cpp"
    197200#include "JSHTMLSpanElement.cpp"
  • trunk/Source/WebCore/DerivedSources.make

    r106373 r106794  
    300300    $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \
    301301    $(WebCore)/html/shadow/HTMLContentElement.idl \
     302    $(WebCore)/html/shadow/HTMLShadowElement.idl \
    302303    $(WebCore)/html/track/TextTrackList.idl \
    303304    $(WebCore)/html/track/TrackEvent.idl \
  • trunk/Source/WebCore/DerivedSources.pri

    r106377 r106794  
    328328    $$PWD/html/VoidCallback.idl \
    329329    $$PWD/html/shadow/HTMLContentElement.idl \
     330    $$PWD/html/shadow/HTMLShadowElement.idl \
    330331    $$PWD/inspector/InjectedScriptHost.idl \
    331332    $$PWD/inspector/InspectorFrontendHost.idl \
  • trunk/Source/WebCore/GNUmakefile.list.am

    r106782 r106794  
    57625762endif  # END USE_TEXTURE_MAPPER_GL
    57635763endif  # USE_ACCELERATED_COMPOSITING
     5764
     5765# ---
     5766# Shadow DOM support
     5767# ---
     5768if ENABLE_SHADOW_DOM
     5769webcore_built_sources += \
     5770        DerivedSources/WebCore/JSHTMLShadowElement.cpp \
     5771        DerivedSources/WebCore/JSHTMLShadowElement.h
     5772dom_binding_idls += \
     5773        $(WebCore)/html/shadow/HTMLShadowElement.idl
     5774
     5775endif  # END ENABLE_SHADOW_DOM
  • trunk/Source/WebCore/Target.pri

    r106756 r106794  
    847847    html/shadow/DetailsMarkerControl.cpp \
    848848    html/shadow/HTMLContentElement.cpp \
     849    html/shadow/HTMLShadowElement.cpp \
    849850    html/shadow/MediaControls.cpp \
    850851    html/shadow/MediaControlRootElement.cpp \
     
    19071908    html/shadow/ContentInclusionSelector.h \
    19081909    html/shadow/HTMLContentElement.h \
     1910    html/shadow/HTMLShadowElement.h \
    19091911    html/shadow/MediaControlElements.h \
    19101912    html/shadow/DetailsMarkerControl.h \
  • trunk/Source/WebCore/WebCore.gypi

    r106770 r106794  
    977977            'html/canvas/WebGLVertexArrayObjectOES.idl',
    978978            'html/shadow/HTMLContentElement.idl',
     979            'html/shadow/HTMLShadowElement.idl',
    979980            'html/track/TextTrackList.idl',
    980981            'html/track/TrackEvent.idl',
     
    55335534            'html/shadow/HTMLContentElement.cpp',
    55345535            'html/shadow/HTMLContentElement.h',
     5536            'html/shadow/HTMLShadowElement.cpp',
     5537            'html/shadow/HTMLShadowElement.h',
    55355538            'html/shadow/MediaControls.cpp',
    55365539            'html/shadow/MediaControls.h',
  • trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj

    r106770 r106794  
    88318831                        </File>
    88328832                        <File
     8833                                RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSHTMLShadowElement.cpp"
     8834                                >
     8835                                <FileConfiguration
     8836                                        Name="Debug|Win32"
     8837                                        ExcludedFromBuild="true"
     8838                                        >
     8839                                        <Tool
     8840                                                Name="VCCLCompilerTool"
     8841                                        />
     8842                                </FileConfiguration>
     8843                                <FileConfiguration
     8844                                        Name="Release|Win32"
     8845                                        ExcludedFromBuild="true"
     8846                                        >
     8847                                        <Tool
     8848                                                Name="VCCLCompilerTool"
     8849                                        />
     8850                                </FileConfiguration>
     8851                                <FileConfiguration
     8852                                        Name="Debug_Cairo_CFLite|Win32"
     8853                                        ExcludedFromBuild="true"
     8854                                        >
     8855                                        <Tool
     8856                                                Name="VCCLCompilerTool"
     8857                                        />
     8858                                </FileConfiguration>
     8859                                <FileConfiguration
     8860                                        Name="Release_Cairo_CFLite|Win32"
     8861                                        ExcludedFromBuild="true"
     8862                                        >
     8863                                        <Tool
     8864                                                Name="VCCLCompilerTool"
     8865                                        />
     8866                                </FileConfiguration>
     8867                                <FileConfiguration
     8868                                        Name="Debug_All|Win32"
     8869                                        ExcludedFromBuild="true"
     8870                                        >
     8871                                        <Tool
     8872                                                Name="VCCLCompilerTool"
     8873                                        />
     8874                                </FileConfiguration>
     8875                                <FileConfiguration
     8876                                        Name="Production|Win32"
     8877                                        ExcludedFromBuild="true"
     8878                                        >
     8879                                        <Tool
     8880                                                Name="VCCLCompilerTool"
     8881                                        />
     8882                                </FileConfiguration>
     8883                        </File>
     8884                        <File
     8885                                RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSHTMLShadowElement.h"
     8886                                >
     8887                        </File>
     8888                        <File
    88338889                                RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSHTMLSourceElement.cpp"
    88348890                                >
     
    6083460890                                </File>
    6083560891                                <File
     60892                                        RelativePath="..\html\shadow\HTMLShadowElement.cpp"
     60893                                        >
     60894                                        <FileConfiguration
     60895                                                Name="Debug|Win32"
     60896                                                ExcludedFromBuild="true"
     60897                                                >
     60898                                                <Tool
     60899                                                        Name="VCCLCompilerTool"
     60900                                                />
     60901                                        </FileConfiguration>
     60902                                        <FileConfiguration
     60903                                                Name="Release|Win32"
     60904                                                ExcludedFromBuild="true"
     60905                                                >
     60906                                                <Tool
     60907                                                        Name="VCCLCompilerTool"
     60908                                                />
     60909                                        </FileConfiguration>
     60910                                        <FileConfiguration
     60911                                                Name="Debug_Cairo_CFLite|Win32"
     60912                                                ExcludedFromBuild="true"
     60913                                                >
     60914                                                <Tool
     60915                                                        Name="VCCLCompilerTool"
     60916                                                />
     60917                                        </FileConfiguration>
     60918                                        <FileConfiguration
     60919                                                Name="Release_Cairo_CFLite|Win32"
     60920                                                ExcludedFromBuild="true"
     60921                                                >
     60922                                                <Tool
     60923                                                        Name="VCCLCompilerTool"
     60924                                                />
     60925                                        </FileConfiguration>
     60926                                        <FileConfiguration
     60927                                                Name="Debug_All|Win32"
     60928                                                ExcludedFromBuild="true"
     60929                                                >
     60930                                                <Tool
     60931                                                        Name="VCCLCompilerTool"
     60932                                                />
     60933                                        </FileConfiguration>
     60934                                        <FileConfiguration
     60935                                                Name="Production|Win32"
     60936                                                ExcludedFromBuild="true"
     60937                                                >
     60938                                                <Tool
     60939                                                        Name="VCCLCompilerTool"
     60940                                                />
     60941                                        </FileConfiguration>
     60942                                </File>
     60943                                <File
     60944                                        RelativePath="..\html\shadow\HTMLShadowElement.h"
     60945                                        >
     60946                                </File>
     60947                                <File
    6083660948                                        RelativePath="..\html\shadow\MediaControlElements.cpp"
    6083760949                                        >
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r106770 r106794  
    13601360                4A6E9FC813C17D570046A7F8 /* FontFeatureSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A6E9FC613C17D570046A7F8 /* FontFeatureSettings.h */; settings = {ATTRIBUTES = (Private, ); }; };
    13611361                4A8C96EB0BE69032004EEFF0 /* FrameSelectionMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4A8C96EA0BE69032004EEFF0 /* FrameSelectionMac.mm */; };
     1362                4ABDFF0B14DBE385004D117D /* HTMLShadowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ABDFF0714DBE312004D117D /* HTMLShadowElement.cpp */; };
     1363                4ABDFF0C14DBE385004D117D /* HTMLShadowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ABDFF0814DBE312004D117D /* HTMLShadowElement.h */; };
    13621364                4ACBC0BE12713CBD0094F9B2 /* ClassList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ACBC0BC12713CBD0094F9B2 /* ClassList.cpp */; };
    13631365                4ACBC0BF12713CBD0094F9B2 /* ClassList.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ACBC0BD12713CBD0094F9B2 /* ClassList.h */; };
     
    81868188                4A6E9FC613C17D570046A7F8 /* FontFeatureSettings.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 4; path = FontFeatureSettings.h; sourceTree = "<group>"; };
    81878189                4A8C96EA0BE69032004EEFF0 /* FrameSelectionMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; name = FrameSelectionMac.mm; path = mac/FrameSelectionMac.mm; sourceTree = "<group>"; };
     8190                4ABDFF0714DBE312004D117D /* HTMLShadowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLShadowElement.cpp; sourceTree = "<group>"; };
     8191                4ABDFF0814DBE312004D117D /* HTMLShadowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLShadowElement.h; sourceTree = "<group>"; };
     8192                4ABDFF0914DBE312004D117D /* HTMLShadowElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLShadowElement.idl; sourceTree = "<group>"; };
    81888193                4ACBC0BC12713CBD0094F9B2 /* ClassList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ClassList.cpp; sourceTree = "<group>"; };
    81898194                4ACBC0BD12713CBD0094F9B2 /* ClassList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ClassList.h; sourceTree = "<group>"; };
     
    1431214317                                57B791A814C6A63300F202D1 /* HTMLContentElement.h */,
    1431314318                                A7B7749614CF6353004044BB /* HTMLContentElement.idl */,
     14319                                4ABDFF0714DBE312004D117D /* HTMLShadowElement.cpp */,
     14320                                4ABDFF0814DBE312004D117D /* HTMLShadowElement.h */,
     14321                                4ABDFF0914DBE312004D117D /* HTMLShadowElement.idl */,
    1431414322                                417253A81354BBBC00360F2A /* MediaControlElements.cpp */,
    1431514323                                417253A91354BBBC00360F2A /* MediaControlElements.h */,
     
    2232222330                                977B3876122883E900B81FF8 /* HTMLScriptRunnerHost.h in Headers */,
    2232322331                                A81369D8097374F600D74463 /* HTMLSelectElement.h in Headers */,
     22332                                4ABDFF0C14DBE385004D117D /* HTMLShadowElement.h in Headers */,
    2232422333                                E44613A80CD6331000FADA75 /* HTMLSourceElement.h in Headers */,
    2232522334                                977E2DCE12F0E28300C13379 /* HTMLSourceTracker.h in Headers */,
     
    2536625375                                977B3874122883E900B81FF8 /* HTMLScriptRunner.cpp in Sources */,
    2536725376                                A81369D9097374F600D74463 /* HTMLSelectElement.cpp in Sources */,
     25377                                4ABDFF0B14DBE385004D117D /* HTMLShadowElement.cpp in Sources */,
    2536825378                                E44613A70CD6331000FADA75 /* HTMLSourceElement.cpp in Sources */,
    2536925379                                977E2DCD12F0E28300C13379 /* HTMLSourceTracker.cpp in Sources */,
  • trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp

    r106373 r106794  
    9191#include "HTMLScriptElement.cpp"
    9292#include "HTMLSelectElement.cpp"
     93#include "HTMLShadowElement.cpp"
    9394#include "HTMLSourceElement.cpp"
    9495#include "HTMLSpanElement.cpp"
  • trunk/Source/WebCore/html/HTMLTagNames.in

    r106373 r106794  
    9494option constructorNeedsFormElement
    9595output constructorNeedsFormElement
     96shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM
    9697p interfaceName=HTMLParagraphElement
    9798param
Note: See TracChangeset for help on using the changeset viewer.