Changeset 69539 in webkit
- Timestamp:
- Oct 11, 2010 5:05:21 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r69530 r69539 1 2010-10-11 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 Add ability to convert from a JSObjectRef back to a WKBundleNodeHandleRef 6 https://bugs.webkit.org/show_bug.cgi?id=47509 7 8 * WebCore.exp.in: Export toNode. 9 1 10 2010-10-11 Martin Robinson <mrobinson@igalia.com> 2 11 -
trunk/WebCore/WebCore.exp.in
r69437 r69539 673 673 __ZN7WebCore6WidgetC2EP6NSView 674 674 __ZN7WebCore6WidgetD2Ev 675 __ZN7WebCore6toNodeEN3JSC7JSValueE 675 676 __ZN7WebCore7Console21shouldPrintExceptionsEv 676 677 __ZN7WebCore7Console24setShouldPrintExceptionsEb … … 734 735 __ZN7WebCore8Settings25setDeveloperExtrasEnabledEb 735 736 __ZN7WebCore8Settings25setFrameFlatteningEnabledEb 736 __ZN7WebCore8Settings27setSpatialNavigationEnabledEb737 737 __ZN7WebCore8Settings25setMinimumLogicalFontSizeEi 738 738 __ZN7WebCore8Settings25setNeedsLeopardMailQuirksEb … … 745 745 __ZN7WebCore8Settings27setLoadsImagesAutomaticallyEb 746 746 __ZN7WebCore8Settings27setLocalStorageDatabasePathERKN3WTF6StringE 747 __ZN7WebCore8Settings27setSpatialNavigationEnabledEb 747 748 __ZN7WebCore8Settings28setForceFTPDirectoryListingsEb 748 749 __ZN7WebCore8Settings29setAccelerated2dCanvasEnabledEb -
trunk/WebKit2/ChangeLog
r69538 r69539 1 2010-10-11 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 Add ability to convert from a JSObjectRef back to a WKBundleNodeHandleRef 6 https://bugs.webkit.org/show_bug.cgi?id=47509 7 8 Add SPI to convert a JSObjectRef to a WKBundleNodeHandleRef. 9 10 * DerivedSources.pro: 11 * WebKit2.pro: 12 * WebKit2.xcodeproj/project.pbxproj: 13 * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp: 14 (WKBundleNodeHandleCreate): 15 * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h: Added. 16 * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: 17 (WebKit::InjectedBundleNodeHandle::getOrCreate): 18 * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: 19 * win/WebKit2.vcproj: 20 * win/WebKit2Generated.make: 21 1 22 2010-10-11 Brady Eidson <beidson@apple.com> 2 23 -
trunk/WebKit2/DerivedSources.pro
r69488 r69539 10 10 $$OUTPUT_DIR/WebCore/generated/JSElement.h \ 11 11 $$OUTPUT_DIR/WebCore/generated/JSHTMLElement.h \ 12 $$OUTPUT_DIR/WebCore/generated/JSNode.h \ 12 13 $$OUTPUT_DIR/WebCore/generated/JSRange.h \ 13 14 -
trunk/WebKit2/WebKit2.pro
r69457 r69539 258 258 UIProcess/WebProcessProxy.h \ 259 259 UIProcess/WebUIClient.h \ 260 WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h \ 261 WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h \ 262 WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h \ 260 263 WebProcess/InjectedBundle/API/c/WKBundlePage.h \ 261 WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h \262 264 WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h \ 263 265 WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h \ -
trunk/WebKit2/WebKit2.xcodeproj/project.pbxproj
r69538 r69539 284 284 BC4BEFE1120A1A4C00FBA0C7 /* WKBundleNodeHandle.h in Headers */ = {isa = PBXBuildFile; fileRef = BC4BEFDF120A1A4C00FBA0C7 /* WKBundleNodeHandle.h */; settings = {ATTRIBUTES = (Public, ); }; }; 285 285 BC4BEFE2120A1A4C00FBA0C7 /* WKBundleNodeHandle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC4BEFE0120A1A4C00FBA0C7 /* WKBundleNodeHandle.cpp */; }; 286 BC57450C1263B155006F0F12 /* WKBundleNodeHandlePrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = BC57450B1263B155006F0F12 /* WKBundleNodeHandlePrivate.h */; }; 286 287 BC59534210FC04520098F82D /* WebLoaderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = BC59534010FC04520098F82D /* WebLoaderClient.h */; }; 287 288 BC597075116591D000551FCA /* ProcessModel.h in Headers */ = {isa = PBXBuildFile; fileRef = BC597074116591D000551FCA /* ProcessModel.h */; }; … … 747 748 BC4BEFDF120A1A4C00FBA0C7 /* WKBundleNodeHandle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKBundleNodeHandle.h; sourceTree = "<group>"; }; 748 749 BC4BEFE0120A1A4C00FBA0C7 /* WKBundleNodeHandle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKBundleNodeHandle.cpp; sourceTree = "<group>"; }; 750 BC57450B1263B155006F0F12 /* WKBundleNodeHandlePrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKBundleNodeHandlePrivate.h; sourceTree = "<group>"; }; 749 751 BC59534010FC04520098F82D /* WebLoaderClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebLoaderClient.h; sourceTree = "<group>"; }; 750 752 BC597074116591D000551FCA /* ProcessModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProcessModel.h; sourceTree = "<group>"; }; … … 1557 1559 BC4BEFE0120A1A4C00FBA0C7 /* WKBundleNodeHandle.cpp */, 1558 1560 BC4BEFDF120A1A4C00FBA0C7 /* WKBundleNodeHandle.h */, 1561 BC57450B1263B155006F0F12 /* WKBundleNodeHandlePrivate.h */, 1559 1562 BC20528011C94284008F3375 /* WKBundlePage.cpp */, 1560 1563 BC20527F11C94284008F3375 /* WKBundlePage.h */, … … 1984 1987 1A3DD206125E5A2F004515E6 /* APIClient.h in Headers */, 1985 1988 BCC8B374125FB69000DE46A4 /* WKGeometry.h in Headers */, 1989 BC57450C1263B155006F0F12 /* WKBundleNodeHandlePrivate.h in Headers */, 1986 1990 ); 1987 1991 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
r69214 r69539 25 25 26 26 #include "WKBundleNodeHandle.h" 27 #include "WKBundleNodeHandlePrivate.h" 27 28 28 29 #include "InjectedBundleNodeHandle.h" … … 36 37 return toAPI(InjectedBundleNodeHandle::APIType); 37 38 } 39 40 WKBundleNodeHandleRef WKBundleNodeHandleCreate(JSContextRef contextRef, JSObjectRef objectRef) 41 { 42 RefPtr<InjectedBundleNodeHandle> nodeHandle = InjectedBundleNodeHandle::getOrCreate(contextRef, objectRef); 43 return toAPI(nodeHandle.release().releaseRef()); 44 } -
trunk/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
r67813 r69539 26 26 #include "InjectedBundleNodeHandle.h" 27 27 28 #include <JavaScriptCore/APICast.h> 29 #include <WebCore/JSNode.h> 28 30 #include <WebCore/Node.h> 29 31 #include <wtf/HashMap.h> … … 39 41 DEFINE_STATIC_LOCAL(DOMHandleCache, cache, ()); 40 42 return cache; 43 } 44 45 PassRefPtr<InjectedBundleNodeHandle> InjectedBundleNodeHandle::getOrCreate(JSContextRef, JSObjectRef object) 46 { 47 Node* node = toNode(toJS(object)); 48 return getOrCreate(node); 41 49 } 42 50 -
trunk/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
r67813 r69539 25 25 26 26 #include "APIObject.h" 27 #include <JavaScriptCore/JSBase.h> 27 28 #include <wtf/PassRefPtr.h> 28 29 #include <wtf/RefPtr.h> … … 40 41 static const Type APIType = TypeBundleNodeHandle; 41 42 43 static PassRefPtr<InjectedBundleNodeHandle> getOrCreate(JSContextRef context, JSObjectRef object); 42 44 static PassRefPtr<InjectedBundleNodeHandle> getOrCreate(WebCore::Node*); 45 43 46 ~InjectedBundleNodeHandle(); 44 47 -
trunk/WebKit2/win/WebKit2.vcproj
r69538 r69539 1183 1183 </File> 1184 1184 <File 1185 RelativePath="..\WebProcess\InjectedBundle\API\c\WKBundleNodeHandlePrivate.h" 1186 > 1187 </File> 1188 <File 1185 1189 RelativePath="..\WebProcess\InjectedBundle\API\c\WKBundlePage.cpp" 1186 1190 > -
trunk/WebKit2/win/WebKit2Generated.make
r69457 r69539 49 49 xcopy /y /d "..\WebProcess\InjectedBundle\API\c\WKBundleInitialize.h" "$(WEBKITOUTPUTDIR)\include\WebKit2" 50 50 xcopy /y /d "..\WebProcess\InjectedBundle\API\c\WKBundleNodeHandle.h" "$(WEBKITOUTPUTDIR)\include\WebKit2" 51 xcopy /y /d "..\WebProcess\InjectedBundle\API\c\WKBundleNodeHandlePrivate.h" "$(WEBKITOUTPUTDIR)\include\WebKit2" 51 52 xcopy /y /d "..\WebProcess\InjectedBundle\API\c\WKBundlePage.h" "$(WEBKITOUTPUTDIR)\include\WebKit2" 52 53 xcopy /y /d "..\WebProcess\InjectedBundle\API\c\WKBundlePagePrivate.h" "$(WEBKITOUTPUTDIR)\include\WebKit2"
Note: See TracChangeset
for help on using the changeset viewer.