Changeset 44943 in webkit
- Timestamp:
- Jun 22, 2009 11:22:01 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 7 deleted
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r44942 r44943 1 2009-06-22 Alexey Proskuryakov <ap@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=26601 6 Remove disabled code for appcache dynamic entries 7 8 This also removes code for DOM 3 Core DOMStringList, which we don't use for anything else yet. 9 10 * DerivedSources.cpp: 11 * DerivedSources.make: 12 * GNUmakefile.am: 13 * WebCore.pro: 14 * WebCore.vcproj/WebCore.vcproj: 15 * WebCore.xcodeproj/project.pbxproj: 16 * WebCoreSources.bkl: 17 * bindings/js/JSDOMStringListCustom.cpp: Removed. 18 * bindings/v8/custom/V8CustomBinding.h: 19 * bindings/v8/custom/V8DOMStringListCustom.cpp: Removed. 20 * dom/DOMStringList.cpp: Removed. 21 * dom/DOMStringList.h: Removed. 22 * dom/DOMStringList.idl: Removed. 23 * dom/StaticStringList.cpp: Removed. 24 * dom/StaticStringList.h: Removed. 25 * loader/DocumentLoader.cpp: 26 (WebCore::DocumentLoader::shouldLoadResourceFromApplicationCache): 27 * loader/appcache/ApplicationCache.cpp: 28 (WebCore::ApplicationCache::addResource): 29 * loader/appcache/ApplicationCache.h: 30 * loader/appcache/ApplicationCacheGroup.cpp: 31 (WebCore::ApplicationCacheGroup::didFinishLoadingManifest): 32 (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete): 33 * loader/appcache/ApplicationCacheResource.cpp: 34 (WebCore::ApplicationCacheResource::dumpType): 35 * loader/appcache/ApplicationCacheResource.h: 36 (WebCore::ApplicationCacheResource::): 37 * loader/appcache/ApplicationCacheStorage.cpp: 38 (WebCore::ApplicationCacheStorage::storeUpdatedType): 39 * loader/appcache/DOMApplicationCache.cpp: 40 * loader/appcache/DOMApplicationCache.h: 41 * loader/appcache/DOMApplicationCache.idl: 42 * page/DOMWindow.idl: 43 1 44 2009-06-22 Steve Falkenburg <sfalken@apple.com> 2 45 … … 15 58 WebKit uses a per-frame input context for most editable fields, and application's global 16 59 context for password fields, manually controlling secure input state and the list of available 17 input methods.60 input sources. 18 61 19 62 We were setting TSMDocument property to disable non-Roman input methods after focus changed -
trunk/WebCore/DerivedSources.cpp
r44942 r44943 63 63 #include "JSDOMParser.cpp" 64 64 #include "JSDOMSelection.cpp" 65 #include "JSDOMStringList.cpp"66 65 #include "JSDOMWindow.cpp" 67 66 #include "JSElement.cpp" -
trunk/WebCore/DerivedSources.make
r44937 r44943 81 81 DOMParser \ 82 82 DOMSelection \ 83 DOMStringList \84 83 DOMWindow \ 85 84 Database \ -
trunk/WebCore/GNUmakefile.am
r44937 r44943 119 119 WebCore/dom/DOMCoreException.idl \ 120 120 WebCore/dom/DOMImplementation.idl \ 121 WebCore/dom/DOMStringList.idl \122 121 WebCore/dom/Document.idl \ 123 122 WebCore/dom/DocumentFragment.idl \ … … 316 315 WebCore/bindings/js/JSDOMGlobalObject.cpp \ 317 316 WebCore/bindings/js/JSDOMGlobalObject.h \ 318 WebCore/bindings/js/JSDOMStringListCustom.cpp \319 317 WebCore/bindings/js/JSDOMWindowBase.cpp \ 320 318 WebCore/bindings/js/JSDOMWindowBase.h \ … … 635 633 WebCore/dom/DOMImplementation.cpp \ 636 634 WebCore/dom/DOMImplementation.h \ 637 WebCore/dom/DOMStringList.cpp \638 WebCore/dom/DOMStringList.h \639 635 WebCore/dom/DocPtr.h \ 640 636 WebCore/dom/Document.cpp \ … … 742 738 WebCore/dom/StaticNodeList.cpp \ 743 739 WebCore/dom/StaticNodeList.h \ 744 WebCore/dom/StaticStringList.cpp \745 WebCore/dom/StaticStringList.h \746 740 WebCore/dom/StyleElement.cpp \ 747 741 WebCore/dom/StyleElement.h \ -
trunk/WebCore/WebCore.pro
r44937 r44943 297 297 dom/DOMCoreException.idl \ 298 298 dom/DOMImplementation.idl \ 299 dom/DOMStringList.idl \300 299 dom/Element.idl \ 301 300 dom/Entity.idl \ … … 464 463 bindings/js/JSDocumentFragmentCustom.cpp \ 465 464 bindings/js/JSDOMGlobalObject.cpp \ 466 bindings/js/JSDOMStringListCustom.cpp \467 465 bindings/js/JSDOMWindowBase.cpp \ 468 466 bindings/js/JSDOMWindowCustom.cpp \ … … 626 624 dom/DocumentType.cpp \ 627 625 dom/DOMImplementation.cpp \ 628 dom/DOMStringList.cpp \629 626 dom/DynamicNodeList.cpp \ 630 627 dom/EditingText.cpp \ … … 670 667 dom/SelectorNodeList.cpp \ 671 668 dom/StaticNodeList.cpp \ 672 dom/StaticStringList.cpp \673 669 dom/StyledElement.cpp \ 674 670 dom/StyleElement.cpp \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r44937 r44943 2240 2240 <File 2241 2241 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDOMSelection.h" 2242 >2243 </File>2244 <File2245 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDOMStringList.cpp"2246 >2247 <FileConfiguration2248 Name="Debug|Win32"2249 ExcludedFromBuild="true"2250 >2251 <Tool2252 Name="VCCLCompilerTool"2253 />2254 </FileConfiguration>2255 <FileConfiguration2256 Name="Release|Win32"2257 ExcludedFromBuild="true"2258 >2259 <Tool2260 Name="VCCLCompilerTool"2261 />2262 </FileConfiguration>2263 <FileConfiguration2264 Name="Debug_Internal|Win32"2265 ExcludedFromBuild="true"2266 >2267 <Tool2268 Name="VCCLCompilerTool"2269 />2270 </FileConfiguration>2271 <FileConfiguration2272 Name="Debug_Cairo|Win32"2273 ExcludedFromBuild="true"2274 >2275 <Tool2276 Name="VCCLCompilerTool"2277 />2278 </FileConfiguration>2279 <FileConfiguration2280 Name="Release_Cairo|Win32"2281 ExcludedFromBuild="true"2282 >2283 <Tool2284 Name="VCCLCompilerTool"2285 />2286 </FileConfiguration>2287 </File>2288 <File2289 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDOMStringList.h"2290 2242 > 2291 2243 </File> … … 23164 23116 </File> 23165 23117 <File 23166 RelativePath="..\dom\DOMStringList.cpp"23167 >23168 </File>23169 <File23170 RelativePath="..\dom\DOMStringList.h"23171 >23172 </File>23173 <File23174 23118 RelativePath="..\dom\DynamicNodeList.cpp" 23175 23119 > … … 23545 23489 <File 23546 23490 RelativePath="..\dom\StaticNodeList.h" 23547 >23548 </File>23549 <File23550 RelativePath="..\dom\StaticStringList.cpp"23551 >23552 </File>23553 <File23554 RelativePath="..\dom\StaticStringList.h"23555 23491 > 23556 23492 </File> … … 27928 27864 <File 27929 27865 RelativePath="..\bindings\js\JSDOMGlobalObject.h" 27930 >27931 </File>27932 <File27933 RelativePath="..\bindings\js\JSDOMStringListCustom.cpp"27934 27866 > 27935 27867 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r44937 r44943 4310 4310 E10B9CCC0B747A44003ED890 /* DOMCustomXPathNSResolver.h in Headers */ = {isa = PBXBuildFile; fileRef = E10B9CCA0B747A44003ED890 /* DOMCustomXPathNSResolver.h */; }; 4311 4311 E10B9CCD0B747A44003ED890 /* DOMCustomXPathNSResolver.mm in Sources */ = {isa = PBXBuildFile; fileRef = E10B9CCB0B747A44003ED890 /* DOMCustomXPathNSResolver.mm */; }; 4312 E10BB3780F14B62200560E13 /* DOMStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = E10BB3770F14B62200560E13 /* DOMStringList.h */; };4313 E10BB37B0F14B64100560E13 /* DOMStringList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E10BB37A0F14B64100560E13 /* DOMStringList.cpp */; };4314 E10BB3860F14B95000560E13 /* JSDOMStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = E10BB3840F14B95000560E13 /* JSDOMStringList.h */; };4315 E10BB3870F14B95000560E13 /* JSDOMStringList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E10BB3850F14B95000560E13 /* JSDOMStringList.cpp */; };4316 4312 E11C9D9B0EB3681200E409DB /* ScriptExecutionContext.h in Headers */ = {isa = PBXBuildFile; fileRef = E11C9D9A0EB3681200E409DB /* ScriptExecutionContext.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4317 4313 E11C9DB00EB3699500E409DB /* ScriptExecutionContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E11C9DAF0EB3699500E409DB /* ScriptExecutionContext.cpp */; }; … … 4326 4322 E17A4A1B0D97991D00FC10C6 /* DOMSVGAltGlyphElement.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 65AA6BAC0D974A00000541AE /* DOMSVGAltGlyphElement.h */; }; 4327 4323 E17A4A1C0D97991D00FC10C6 /* DOMSVGAltGlyphElementInternal.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 65AA6BAE0D974A00000541AE /* DOMSVGAltGlyphElementInternal.h */; }; 4328 E181B2570F14C1A600FB7847 /* JSDOMStringListCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E181B2560F14C1A600FB7847 /* JSDOMStringListCustom.cpp */; };4329 E181B3510F15008A00FB7847 /* StaticStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = E181B3500F15008A00FB7847 /* StaticStringList.h */; };4330 E181B3560F1500D700FB7847 /* StaticStringList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E181B3550F1500D700FB7847 /* StaticStringList.cpp */; };4331 4324 E182568F0EF2B02D00933242 /* JSWorkerContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E182568D0EF2B02D00933242 /* JSWorkerContext.cpp */; }; 4332 4325 E18256900EF2B02D00933242 /* JSWorkerContext.h in Headers */ = {isa = PBXBuildFile; fileRef = E182568E0EF2B02D00933242 /* JSWorkerContext.h */; }; … … 9128 9121 E10B9CCA0B747A44003ED890 /* DOMCustomXPathNSResolver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMCustomXPathNSResolver.h; sourceTree = "<group>"; }; 9129 9122 E10B9CCB0B747A44003ED890 /* DOMCustomXPathNSResolver.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMCustomXPathNSResolver.mm; sourceTree = "<group>"; }; 9130 E10BB3730F14B58500560E13 /* DOMStringList.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMStringList.idl; sourceTree = "<group>"; };9131 E10BB3770F14B62200560E13 /* DOMStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMStringList.h; sourceTree = "<group>"; };9132 E10BB37A0F14B64100560E13 /* DOMStringList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMStringList.cpp; sourceTree = "<group>"; };9133 E10BB3840F14B95000560E13 /* JSDOMStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMStringList.h; sourceTree = "<group>"; };9134 E10BB3850F14B95000560E13 /* JSDOMStringList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMStringList.cpp; sourceTree = "<group>"; };9135 9123 E11C9D9A0EB3681200E409DB /* ScriptExecutionContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptExecutionContext.h; sourceTree = "<group>"; }; 9136 9124 E11C9DAF0EB3699500E409DB /* ScriptExecutionContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptExecutionContext.cpp; sourceTree = "<group>"; }; … … 9144 9132 E12EDB7A0B308A78002704B6 /* EventTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventTarget.h; sourceTree = "<group>"; }; 9145 9133 E12EDBE90B308E0B002704B6 /* EventTarget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EventTarget.cpp; sourceTree = "<group>"; }; 9146 E181B2560F14C1A600FB7847 /* JSDOMStringListCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMStringListCustom.cpp; sourceTree = "<group>"; };9147 E181B3500F15008A00FB7847 /* StaticStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StaticStringList.h; sourceTree = "<group>"; };9148 E181B3550F1500D700FB7847 /* StaticStringList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StaticStringList.cpp; sourceTree = "<group>"; };9149 9134 E182568D0EF2B02D00933242 /* JSWorkerContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWorkerContext.cpp; sourceTree = "<group>"; }; 9150 9135 E182568E0EF2B02D00933242 /* JSWorkerContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWorkerContext.h; sourceTree = "<group>"; }; … … 12421 12406 65DF31E309D1CC60000BE325 /* JSDOMImplementation.cpp */, 12422 12407 65DF31E409D1CC60000BE325 /* JSDOMImplementation.h */, 12423 E10BB3850F14B95000560E13 /* JSDOMStringList.cpp */,12424 E10BB3840F14B95000560E13 /* JSDOMStringList.h */,12425 12408 659DDC8009E198BA001BF3C6 /* JSDocument.cpp */, 12426 12409 659DDC8109E198BA001BF3C6 /* JSDocument.h */, … … 13494 13477 1A3417C70CECFF250049CBDE /* JSCustomVoidCallback.h */, 13495 13478 1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */, 13496 E181B2560F14C1A600FB7847 /* JSDOMStringListCustom.cpp */,13497 13479 BCD9C25E0C17AA67005C90A2 /* JSDOMWindowCustom.cpp */, 13498 13480 652FBBBB0DE27CB60001D386 /* JSDOMWindowCustom.h */, … … 14426 14408 A8185F3309765765005826D9 /* DOMImplementation.h */, 14427 14409 93EEC1E909C2877700C515D1 /* DOMImplementation.idl */, 14428 E10BB37A0F14B64100560E13 /* DOMStringList.cpp */,14429 E10BB3770F14B62200560E13 /* DOMStringList.h */,14430 E10BB3730F14B58500560E13 /* DOMStringList.idl */,14431 14410 93EEC1E709C2877700C515D1 /* DocPtr.h */, 14432 14411 A8185F3409765765005826D9 /* Document.cpp */, … … 14559 14538 BC7FA62C0D1F0EFF00DB22A9 /* StaticNodeList.cpp */, 14560 14539 BC7FA62B0D1F0EFF00DB22A9 /* StaticNodeList.h */, 14561 E181B3550F1500D700FB7847 /* StaticStringList.cpp */,14562 E181B3500F15008A00FB7847 /* StaticStringList.h */,14563 14540 AA4C3A740B2B1679002334A2 /* StyleElement.cpp */, 14564 14541 AA4C3A750B2B1679002334A2 /* StyleElement.h */, … … 15464 15441 A8E544C40CA9D1C20097D09B /* DOMSVGZoomEventInternal.h in Headers */, 15465 15442 BC5A86850C33676000EEA649 /* DOMSelection.h in Headers */, 15466 E10BB3780F14B62200560E13 /* DOMStringList.h in Headers */,15467 E10BB3780F14B62200560E13 /* DOMStringList.h in Headers */,15468 15443 850657000AAB4763002D15C0 /* DOMStyleSheet.h in Headers */, 15469 15444 85B498FF0ADB348100925CBB /* DOMStyleSheetInternal.h in Headers */, … … 15800 15775 1ACE53E00A8D18810022947D /* JSDOMParser.h in Headers */, 15801 15776 BC5A86B60C3367E800EEA649 /* JSDOMSelection.h in Headers */, 15802 E10BB3860F14B95000560E13 /* JSDOMStringList.h in Headers */,15803 E10BB3860F14B95000560E13 /* JSDOMStringList.h in Headers */,15804 15777 BC6932740D7E293900AE44D1 /* JSDOMWindowBase.h in Headers */, 15805 15778 652FBBBC0DE27CB60001D386 /* JSDOMWindowCustom.h in Headers */, … … 16589 16562 9352071909BD3BA500F2038D /* StaticConstructors.h in Headers */, 16590 16563 BC7FA62D0D1F0EFF00DB22A9 /* StaticNodeList.h in Headers */, 16591 E181B3510F15008A00FB7847 /* StaticStringList.h in Headers */,16592 E181B3510F15008A00FB7847 /* StaticStringList.h in Headers */,16593 16564 51BE37E00DAEE00E001085FC /* StorageArea.h in Headers */, 16594 16565 51E0BABB0DA5547100A9E417 /* StorageEvent.h in Headers */, … … 17511 17482 859D62C60AD888EF00012995 /* DOMSVGZoomEvent.mm in Sources */, 17512 17483 BC5A86840C33676000EEA649 /* DOMSelection.cpp in Sources */, 17513 E10BB37B0F14B64100560E13 /* DOMStringList.cpp in Sources */,17514 17484 850657010AAB4763002D15C0 /* DOMStyleSheet.mm in Sources */, 17515 17485 850657030AAB4763002D15C0 /* DOMStyleSheetList.mm in Sources */, … … 17825 17795 1ACE53DF0A8D18810022947D /* JSDOMParser.cpp in Sources */, 17826 17796 BC5A86B50C3367E800EEA649 /* JSDOMSelection.cpp in Sources */, 17827 E10BB3870F14B95000560E13 /* JSDOMStringList.cpp in Sources */,17828 E181B2570F14C1A600FB7847 /* JSDOMStringListCustom.cpp in Sources */,17829 17797 1403BA0C09EB18C700797C7F /* JSDOMWindow.cpp in Sources */, 17830 17798 BC6932730D7E293900AE44D1 /* JSDOMWindowBase.cpp in Sources */, … … 18628 18596 93309E15099E64920056E581 /* SplitTextNodeContainingElementCommand.cpp in Sources */, 18629 18597 BC7FA62E0D1F0EFF00DB22A9 /* StaticNodeList.cpp in Sources */, 18630 E181B3560F1500D700FB7847 /* StaticStringList.cpp in Sources */,18631 18598 51E3F9C70DA059DC00250911 /* Storage.cpp in Sources */, 18632 18599 51BE37DF0DAEE00E001085FC /* StorageArea.cpp in Sources */, -
trunk/WebCore/WebCoreSources.bkl
r44937 r44943 74 74 bindings/js/JSDOMApplicationCacheCustom.cpp 75 75 bindings/js/JSDOMGlobalObject.cpp 76 bindings/js/JSDOMStringListCustom.cpp77 76 bindings/js/JSDOMWindowBase.cpp 78 77 bindings/js/JSDOMWindowCustom.cpp … … 273 272 DerivedSources/WebCore/JSDOMParser.cpp 274 273 DerivedSources/WebCore/JSDOMSelection.cpp 275 DerivedSources/WebCore/JSDOMStringList.cpp276 274 DerivedSources/WebCore/JSDOMWindow.cpp 277 275 DerivedSources/WebCore/JSElement.cpp … … 437 435 dom/ContainerNode.cpp 438 436 dom/DOMImplementation.cpp 439 dom/DOMStringList.cpp440 437 dom/Document.cpp 441 438 dom/DocumentFragment.cpp … … 483 480 dom/SelectorNodeList.cpp 484 481 dom/StaticNodeList.cpp 485 dom/StaticStringList.cpp486 482 dom/StyleElement.cpp 487 483 dom/StyledElement.cpp -
trunk/WebCore/bindings/v8/custom/V8CustomBinding.h
r44706 r44943 405 405 DECLARE_CALLBACK(HTMLFormElementSubmit); 406 406 407 DECLARE_INDEXED_PROPERTY_GETTER(DOMStringList);408 DECLARE_CALLBACK(DOMStringListItem);409 410 407 DECLARE_NAMED_PROPERTY_GETTER(DOMWindow); 411 408 DECLARE_INDEXED_PROPERTY_GETTER(DOMWindow); -
trunk/WebCore/loader/DocumentLoader.cpp
r44468 r44943 884 884 return false; 885 885 886 // If the resource's URL is an master entry, the manifest, an explicit entry, a fallback entry, or a dynamicentry886 // If the resource's URL is an master entry, the manifest, an explicit entry, or a fallback entry 887 887 // in the application cache, then get the resource from the cache (instead of fetching it). 888 888 resource = cache->resourceForURL(request.url()); -
trunk/WebCore/loader/appcache/ApplicationCache.cpp
-
Property
svn:eol-style
set to
native
r43932 r44943 82 82 if (m_storageID) { 83 83 ASSERT(!resource->storageID()); 84 ASSERT(resource->type() & (ApplicationCacheResource::Dynamic | ApplicationCacheResource::Master));84 ASSERT(resource->type() & ApplicationCacheResource::Master); 85 85 86 86 // Add the resource to the storage. … … 128 128 129 129 return resourceForURL(request.url()); 130 }131 132 unsigned ApplicationCache::numDynamicEntries() const133 {134 // FIXME: Implement135 return 0;136 }137 138 String ApplicationCache::dynamicEntry(unsigned) const139 {140 // FIXME: Implement141 return String();142 }143 144 bool ApplicationCache::addDynamicEntry(const String& url)145 {146 if (!equalIgnoringCase(m_group->manifestURL().protocol(), KURL(url).protocol()))147 return false;148 149 // FIXME: Implement (be sure to respect private browsing state).150 return true;151 }152 153 void ApplicationCache::removeDynamicEntry(const String&)154 {155 // FIXME: Implement (be sure to respect private browsing state).156 130 } 157 131 -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCache.h
-
Property
svn:eol-style
set to
native
r43526 r44943 66 66 ApplicationCacheResource* resourceForURL(const String& url); 67 67 68 unsigned numDynamicEntries() const;69 String dynamicEntry(unsigned index) const;70 71 bool addDynamicEntry(const String& url);72 void removeDynamicEntry(const String& url);73 74 68 void setOnlineWhitelist(const Vector<KURL>& onlineWhitelist); 75 69 const Vector<KURL>& onlineWhitelist() const { return m_onlineWhitelist; } … … 104 98 FallbackURLVector m_fallbackURLs; 105 99 106 // While an update is in progress, changes in dynamic entries are queued for later execution.107 Vector<std::pair<KURL, bool> > m_pendingDynamicEntryActions;108 109 100 unsigned m_storageID; 110 101 }; -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCacheGroup.cpp
-
Property
svn:eol-style
set to
native
r44424 r44943 632 632 for (ApplicationCache::ResourceMap::const_iterator it = m_newestCache->begin(); it != end; ++it) { 633 633 unsigned type = it->second->type(); 634 if (type & (ApplicationCacheResource::Master | ApplicationCacheResource::Dynamic))634 if (type & ApplicationCacheResource::Master) 635 635 addEntry(it->first, type); 636 636 } -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCacheGroup.h
-
Property
svn:eol-style
set to
native
-
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCacheResource.cpp
-
Property
svn:eol-style
set to
native
r40360 r44943 58 58 if (type & Fallback) 59 59 printf("fallback "); 60 if (type & Dynamic)61 printf("dynamic ");62 60 63 61 printf("\n"); -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCacheResource.h
-
Property
svn:eol-style
set to
native
r40360 r44943 40 40 Explicit = 1 << 2, 41 41 Foreign = 1 << 3, 42 Fallback = 1 << 4, 43 Dynamic = 1 << 5 42 Fallback = 1 << 4 44 43 }; 45 44 -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCacheStorage.cpp
-
Property
svn:eol-style
set to
native
r44424 r44943 616 616 ASSERT(resource->storageID()); 617 617 618 // FIXME: If the resource gained a Dynamic bit, it should be re-inserted at the end for correct order.619 ASSERT(!(resource->type() & ApplicationCacheResource::Dynamic));620 621 618 // First, insert the data 622 619 SQLiteStatement entryStatement(m_database, "UPDATE CacheEntries SET type=? WHERE resource=?"); -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ApplicationCacheStorage.h
-
Property
svn:eol-style
set to
native
-
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/DOMApplicationCache.cpp
-
Property
svn:eol-style
set to
native
r40501 r44943 39 39 #include "Frame.h" 40 40 #include "FrameLoader.h" 41 #include "StaticStringList.h"42 41 43 42 namespace WebCore { … … 126 125 if (!swapCache()) 127 126 ec = INVALID_STATE_ERR; 128 }129 130 PassRefPtr<DOMStringList> DOMApplicationCache::items()131 {132 Vector<String> result;133 if (ApplicationCache* cache = associatedCache()) {134 unsigned numEntries = cache->numDynamicEntries();135 result.reserveInitialCapacity(numEntries);136 for (unsigned i = 0; i < numEntries; ++i)137 result.append(cache->dynamicEntry(i));138 }139 return StaticStringList::adopt(result);140 }141 142 bool DOMApplicationCache::hasItem(const KURL& url, ExceptionCode& ec)143 {144 ApplicationCache* cache = associatedCache();145 if (!cache) {146 ec = INVALID_STATE_ERR;147 return false;148 }149 150 if (!url.isValid()) {151 ec = SYNTAX_ERR;152 return false;153 }154 155 ApplicationCacheResource* resource = cache->resourceForURL(url.string());156 return resource && (resource->type() & ApplicationCacheResource::Dynamic);157 }158 159 void DOMApplicationCache::add(const KURL& url, ExceptionCode& ec)160 {161 ApplicationCache* cache = associatedCache();162 if (!cache) {163 ec = INVALID_STATE_ERR;164 return;165 }166 167 if (!url.isValid()) {168 ec = SYNTAX_ERR;169 return;170 }171 172 if (!cache->addDynamicEntry(url)) {173 // This should use the (currently not specified) security exceptions in HTML5 4.3.4174 ec = SECURITY_ERR;175 }176 }177 178 void DOMApplicationCache::remove(const KURL& url, ExceptionCode& ec)179 {180 ApplicationCache* cache = associatedCache();181 if (!cache) {182 ec = INVALID_STATE_ERR;183 return;184 }185 186 cache->removeDynamicEntry(url);187 127 } 188 128 -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/DOMApplicationCache.h
-
Property
svn:eol-style
set to
native
r40032 r44943 41 41 class ApplicationCache; 42 42 class AtomicStringImpl; 43 class DOMStringList;44 43 class Frame; 45 44 class KURL; … … 65 64 void swapCache(ExceptionCode&); 66 65 67 PassRefPtr<DOMStringList> items();68 bool hasItem(const KURL&, ExceptionCode&);69 void add(const KURL&, ExceptionCode&);70 void remove(const KURL&, ExceptionCode&);71 72 66 virtual void addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture); 73 67 virtual void removeEventListener(const AtomicString& eventType, EventListener*, bool useCapture); -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/DOMApplicationCache.idl
-
Property
svn:eol-style
set to
native
r43528 r44943 44 44 raises(DOMException); 45 45 46 #if defined(ENABLE_APPLICATION_CACHE_DYNAMIC_ENTRIES) && ENABLE_APPLICATION_CACHE_DYNAMIC_ENTRIES47 // dynamic entries48 readonly attribute DOMStringList items;49 [Custom] boolean hasItem(in DOMString url)50 raises(DOMException);51 [Custom] void add(in DOMString uri)52 raises(DOMException);53 [Custom] void remove(in DOMString uri)54 raises(DOMException);55 #endif56 57 46 // events 58 47 attribute EventListener onchecking; -
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ManifestParser.cpp
-
Property
svn:eol-style
set to
native
-
Property
svn:eol-style
set to
-
trunk/WebCore/loader/appcache/ManifestParser.h
-
Property
svn:eol-style
set to
native
-
Property
svn:eol-style
set to
-
trunk/WebCore/page/DOMWindow.idl
r44906 r44943 309 309 // FIXME: Implement the commented-out global constructors for interfaces listed in DOM Level 3 Core specification. 310 310 attribute DOMCoreExceptionConstructor DOMException; 311 attribute DOMStringListConstructor DOMStringList;311 // attribute DOMStringListConstructor DOMStringList; 312 312 // attribute NameListConstructor NameList; 313 313 // attribute DOMImplementationListConstructor DOMImplementationList;
Note: See TracChangeset
for help on using the changeset viewer.