Changeset 96064 in webkit
- Timestamp:
- Sep 26, 2011 6:44:36 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r95919 r96064 164 164 dom/MouseEvent.idl 165 165 dom/MutationEvent.idl 166 dom/MutationRecord.idl 166 167 dom/NamedNodeMap.idl 167 168 dom/NodeFilter.idl … … 548 549 dom/MouseRelatedEvent.cpp 549 550 dom/MutationEvent.cpp 551 dom/MutationRecord.cpp 550 552 dom/NamedNodeMap.cpp 551 553 dom/NameNodeList.cpp -
trunk/Source/WebCore/ChangeLog
r96061 r96064 1 2011-09-26 Adam Klein <adamk@chromium.org> 2 3 [MutationObservers] implement MutationRecord 4 https://bugs.webkit.org/show_bug.cgi?id=68824 5 6 Reviewed by Darin Adler. 7 8 Implements MutationRecord as specified in the thread at 9 http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html, 10 including some minor naming changes from the original proposal. 11 12 This is a small part of the MutationObserver API, see 13 https://bugs.webkit.org/show_bug.cgi?id=68729 for the metabug covering 14 this feature. 15 16 No new tests as this isn't yet exposed to the platform. 17 18 * CMakeLists.txt: 19 * DerivedSources.cpp: 20 * DerivedSources.make: 21 * GNUmakefile.list.am: 22 * WebCore.gypi: 23 * WebCore.pro: 24 * WebCore.vcproj/WebCore.vcproj: 25 * WebCore.xcodeproj/project.pbxproj: 26 * dom/MutationRecord.cpp: Added. 27 (WebCore::MutationRecord::createChildList): 28 (WebCore::MutationRecord::createAttributes): 29 (WebCore::MutationRecord::createCharacterData): 30 (WebCore::MutationRecord::MutationRecord): 31 (WebCore::MutationRecord::~MutationRecord): 32 * dom/MutationRecord.h: Added. 33 (WebCore::MutationRecord::target): 34 (WebCore::MutationRecord::addedNodes): 35 (WebCore::MutationRecord::removedNodes): 36 (WebCore::MutationRecord::previousSibling): 37 (WebCore::MutationRecord::nextSibling): 38 (WebCore::MutationRecord::attributeName): 39 (WebCore::MutationRecord::attributeNamespace): 40 (WebCore::MutationRecord::oldValue): 41 (WebCore::MutationRecord::setOldValue): 42 * dom/MutationRecord.idl: Added. 43 1 44 2011-09-26 Kentaro Hara <haraken@chromium.org> 2 45 -
trunk/Source/WebCore/DerivedSources.cpp
r96023 r96064 246 246 #include "JSMouseEvent.cpp" 247 247 #include "JSMutationEvent.cpp" 248 #include "JSMutationRecord.cpp" 248 249 #include "JSNamedNodeMap.cpp" 249 250 #include "JSNavigator.cpp" -
trunk/Source/WebCore/DerivedSources.make
r95234 r96064 299 299 MouseEvent \ 300 300 MutationEvent \ 301 MutationRecord \ 301 302 NamedNodeMap \ 302 303 Navigator \ -
trunk/Source/WebCore/GNUmakefile.list.am
r95935 r96064 377 377 DerivedSources/WebCore/JSMutationEvent.cpp \ 378 378 DerivedSources/WebCore/JSMutationEvent.h \ 379 DerivedSources/WebCore/JSMutationRecord.cpp \ 380 DerivedSources/WebCore/JSMutationRecord.h \ 379 381 DerivedSources/WebCore/JSNamedNodeMap.cpp \ 380 382 DerivedSources/WebCore/JSNamedNodeMap.h \ … … 1222 1224 Source/WebCore/dom/MutationEvent.cpp \ 1223 1225 Source/WebCore/dom/MutationEvent.h \ 1226 Source/WebCore/dom/MutationRecord.cpp \ 1227 Source/WebCore/dom/MutationRecord.h \ 1224 1228 Source/WebCore/dom/NamedNodeMap.cpp \ 1225 1229 Source/WebCore/dom/NamedNodeMap.h \ -
trunk/Source/WebCore/WebCore.gypi
r95942 r96064 1186 1186 'dom/MouseEvent.idl', 1187 1187 'dom/MutationEvent.idl', 1188 'dom/MutationRecord.idl', 1188 1189 'dom/NamedNodeMap.idl', 1189 1190 'dom/Node.idl', … … 5200 5201 'dom/MutationEvent.cpp', 5201 5202 'dom/MutationEvent.h', 5203 'dom/MutationRecord.cpp', 5204 'dom/MutationRecord.h', 5202 5205 'dom/NameNodeList.cpp', 5203 5206 'dom/NameNodeList.h', … … 7466 7469 '<(PRODUCT_DIR)/DerivedSources/WebCore/JSMutationEvent.cpp', 7467 7470 '<(PRODUCT_DIR)/DerivedSources/WebCore/JSMutationEvent.h', 7471 '<(PRODUCT_DIR)/DerivedSources/WebCore/JSMutationRecord.cpp', 7472 '<(PRODUCT_DIR)/DerivedSources/WebCore/JSMutationRecord.h', 7468 7473 '<(PRODUCT_DIR)/DerivedSources/WebCore/JSNamedNodeMap.cpp', 7469 7474 '<(PRODUCT_DIR)/DerivedSources/WebCore/JSNamedNodeMap.h', -
trunk/Source/WebCore/WebCore.pro
r95920 r96064 511 511 dom/MouseRelatedEvent.cpp \ 512 512 dom/MutationEvent.cpp \ 513 dom/MutationRecord.cpp \ 513 514 dom/NamedNodeMap.cpp \ 514 515 dom/NameNodeList.cpp \ … … 1524 1525 dom/MouseRelatedEvent.h \ 1525 1526 dom/MutationEvent.h \ 1527 dom/MutationRecord.h \ 1526 1528 dom/NamedNodeMap.h \ 1527 1529 dom/NameNodeList.h \ -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r96023 r96064 11655 11655 </File> 11656 11656 <File 11657 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSMutationRecord.cpp" 11658 > 11659 <FileConfiguration 11660 Name="Debug|Win32" 11661 ExcludedFromBuild="true" 11662 > 11663 <Tool 11664 Name="VCCLCompilerTool" 11665 /> 11666 </FileConfiguration> 11667 <FileConfiguration 11668 Name="Release|Win32" 11669 ExcludedFromBuild="true" 11670 > 11671 <Tool 11672 Name="VCCLCompilerTool" 11673 /> 11674 </FileConfiguration> 11675 <FileConfiguration 11676 Name="Debug_Cairo_CFLite|Win32" 11677 ExcludedFromBuild="true" 11678 > 11679 <Tool 11680 Name="VCCLCompilerTool" 11681 /> 11682 </FileConfiguration> 11683 <FileConfiguration 11684 Name="Release_Cairo_CFLite|Win32" 11685 ExcludedFromBuild="true" 11686 > 11687 <Tool 11688 Name="VCCLCompilerTool" 11689 /> 11690 </FileConfiguration> 11691 <FileConfiguration 11692 Name="Debug_All|Win32" 11693 ExcludedFromBuild="true" 11694 > 11695 <Tool 11696 Name="VCCLCompilerTool" 11697 /> 11698 </FileConfiguration> 11699 <FileConfiguration 11700 Name="Production|Win32" 11701 ExcludedFromBuild="true" 11702 > 11703 <Tool 11704 Name="VCCLCompilerTool" 11705 /> 11706 </FileConfiguration> 11707 </File> 11708 <File 11709 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSMutationRecord.h" 11710 > 11711 </File> 11712 <File 11657 11713 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSNamedNodeMap.cpp" 11658 11714 > … … 47055 47111 </File> 47056 47112 <File 47113 RelativePath="..\dom\MutationRecord.cpp" 47114 > 47115 <FileConfiguration 47116 Name="Debug|Win32" 47117 ExcludedFromBuild="true" 47118 > 47119 <Tool 47120 Name="VCCLCompilerTool" 47121 /> 47122 </FileConfiguration> 47123 <FileConfiguration 47124 Name="Release|Win32" 47125 ExcludedFromBuild="true" 47126 > 47127 <Tool 47128 Name="VCCLCompilerTool" 47129 /> 47130 </FileConfiguration> 47131 <FileConfiguration 47132 Name="Debug_Cairo_CFLite|Win32" 47133 ExcludedFromBuild="true" 47134 > 47135 <Tool 47136 Name="VCCLCompilerTool" 47137 /> 47138 </FileConfiguration> 47139 <FileConfiguration 47140 Name="Release_Cairo_CFLite|Win32" 47141 ExcludedFromBuild="true" 47142 > 47143 <Tool 47144 Name="VCCLCompilerTool" 47145 /> 47146 </FileConfiguration> 47147 <FileConfiguration 47148 Name="Debug_All|Win32" 47149 ExcludedFromBuild="true" 47150 > 47151 <Tool 47152 Name="VCCLCompilerTool" 47153 /> 47154 </FileConfiguration> 47155 <FileConfiguration 47156 Name="Production|Win32" 47157 ExcludedFromBuild="true" 47158 > 47159 <Tool 47160 Name="VCCLCompilerTool" 47161 /> 47162 </FileConfiguration> 47163 </File> 47164 <File 47165 RelativePath="..\dom\MutationRecord.h" 47166 > 47167 </File> 47168 <File 47057 47169 RelativePath="..\dom\NamedNodeMap.cpp" 47058 47170 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r95655 r96064 5438 5438 C6D74AD509AA282E000B0A52 /* ModifySelectionListLevel.h in Headers */ = {isa = PBXBuildFile; fileRef = C6D74AD309AA282E000B0A52 /* ModifySelectionListLevel.h */; }; 5439 5439 C6D74AE409AA290A000B0A52 /* ModifySelectionListLevel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D74AE309AA290A000B0A52 /* ModifySelectionListLevel.cpp */; }; 5440 C6F08FBC1430FE8F00685849 /* MutationRecord.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6F08FB91430FE8F00685849 /* MutationRecord.cpp */; }; 5441 C6F08FBD1430FE8F00685849 /* MutationRecord.h in Headers */ = {isa = PBXBuildFile; fileRef = C6F08FBA1430FE8F00685849 /* MutationRecord.h */; }; 5442 C6F08FC91431000D00685849 /* JSMutationRecord.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6F08FC71431000D00685849 /* JSMutationRecord.cpp */; }; 5443 C6F08FCA1431000D00685849 /* JSMutationRecord.h in Headers */ = {isa = PBXBuildFile; fileRef = C6F08FC81431000D00685849 /* JSMutationRecord.h */; }; 5440 5444 C6F41047130C6E8900393DE4 /* EntryBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6F41046130C6E8900393DE4 /* EntryBase.cpp */; }; 5441 5445 CA3BF67C10D99BAE00E6CE53 /* ScrollAnimator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CA3BF67B10D99BAE00E6CE53 /* ScrollAnimator.cpp */; }; … … 12205 12209 C6D74AD309AA282E000B0A52 /* ModifySelectionListLevel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ModifySelectionListLevel.h; sourceTree = "<group>"; }; 12206 12210 C6D74AE309AA290A000B0A52 /* ModifySelectionListLevel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ModifySelectionListLevel.cpp; sourceTree = "<group>"; }; 12211 C6F08FB91430FE8F00685849 /* MutationRecord.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MutationRecord.cpp; sourceTree = "<group>"; }; 12212 C6F08FBA1430FE8F00685849 /* MutationRecord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MutationRecord.h; sourceTree = "<group>"; }; 12213 C6F08FBB1430FE8F00685849 /* MutationRecord.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MutationRecord.idl; sourceTree = "<group>"; }; 12214 C6F08FC71431000D00685849 /* JSMutationRecord.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMutationRecord.cpp; sourceTree = "<group>"; }; 12215 C6F08FC81431000D00685849 /* JSMutationRecord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSMutationRecord.h; sourceTree = "<group>"; }; 12207 12216 C6F41046130C6E8900393DE4 /* EntryBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = EntryBase.cpp; path = fileapi/EntryBase.cpp; sourceTree = "<group>"; }; 12208 12217 CA3BF67B10D99BAE00E6CE53 /* ScrollAnimator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScrollAnimator.cpp; sourceTree = "<group>"; }; … … 17419 17428 49C9F48C13D57D320052600A /* JSMediaStreamTrackList.cpp */, 17420 17429 49C9F48D13D57D320052600A /* JSMediaStreamTrackList.h */, 17430 C6F08FC71431000D00685849 /* JSMutationRecord.cpp */, 17431 C6F08FC81431000D00685849 /* JSMutationRecord.h */, 17421 17432 BCD9C2BC0C17B69E005C90A2 /* JSNamedNodeMap.cpp */, 17422 17433 BCD9C2BD0C17B69E005C90A2 /* JSNamedNodeMap.h */, … … 20025 20036 85031B340A44EFC700F992E0 /* MutationEvent.h */, 20026 20037 93EEC1F309C2877700C515D1 /* MutationEvent.idl */, 20038 C6F08FB91430FE8F00685849 /* MutationRecord.cpp */, 20039 C6F08FBA1430FE8F00685849 /* MutationRecord.h */, 20040 C6F08FBB1430FE8F00685849 /* MutationRecord.idl */, 20027 20041 BCF34A3611A231CD00C71804 /* NamedNodeMap.cpp */, 20028 20042 A81872180977D3C0005826D9 /* NamedNodeMap.h */, … … 22146 22160 A86629D109DA2B48009633A5 /* JSMouseEvent.h in Headers */, 22147 22161 65DF31FC09D1CC60000BE325 /* JSMutationEvent.h in Headers */, 22162 C6F08FCA1431000D00685849 /* JSMutationRecord.h in Headers */, 22148 22163 BCD9C2C10C17B69E005C90A2 /* JSNamedNodeMap.h in Headers */, 22149 22164 A9D247F80D757E3400FDF959 /* JSNavigator.h in Headers */, … … 22518 22533 B1AD4E6313A12A0B00846B27 /* MutableTextTrack.h in Headers */, 22519 22534 85031B4A0A44EFC700F992E0 /* MutationEvent.h in Headers */, 22535 C6F08FBD1430FE8F00685849 /* MutationRecord.h in Headers */, 22520 22536 A81872230977D3C0005826D9 /* NamedNodeMap.h in Headers */, 22521 22537 A818721E0977D3C0005826D9 /* NameNodeList.h in Headers */, … … 25168 25184 A86629D209DA2B48009633A5 /* JSMouseEvent.cpp in Sources */, 25169 25185 65DF31FB09D1CC60000BE325 /* JSMutationEvent.cpp in Sources */, 25186 C6F08FC91431000D00685849 /* JSMutationRecord.cpp in Sources */, 25170 25187 BCD9C2C00C17B69E005C90A2 /* JSNamedNodeMap.cpp in Sources */, 25171 25188 BCD9C2630C17AA67005C90A2 /* JSNamedNodeMapCustom.cpp in Sources */, … … 25567 25584 B1AD4E6213A12A0B00846B27 /* MutableTextTrack.cpp in Sources */, 25568 25585 85031B490A44EFC700F992E0 /* MutationEvent.cpp in Sources */, 25586 C6F08FBC1430FE8F00685849 /* MutationRecord.cpp in Sources */, 25569 25587 BCF34A3711A231CD00C71804 /* NamedNodeMap.cpp in Sources */, 25570 25588 A81872240977D3C0005826D9 /* NameNodeList.cpp in Sources */,
Note: See TracChangeset
for help on using the changeset viewer.