공장 이야기
-
Webkit bug!!!공장 이야기 2012. 10. 25. 14:35
가장 안전할줄 알았든 100000 버전에 버그가 있다. Release모드에서 스크립트를 실행하면 죽는 Webkit 버그가 있어 찾아 본 결과 115483 버전에서 수정한 이력이 있다. http://www.mail-archive.com/webkit-changes@lists.webkit.org/msg25530.html#trunkSourceJavaScriptCoreinterpreterInterpretercpp inline void* lazyLinkFor(JITStackFrame& sta..
-
Webkit에서 HTML Tag를 문자열로 입력 받았을 때 IDOMElement 바꾸는 방법공장 이야기 2012. 7. 16. 16:24
아래에서 this는 Document* 이다. PassRefPtr<Element> Document::createHTMLTagElement(const String& html) { unsigned uLoop = 0; Node* pChildNode = NULL; unsigned uBodyChild = 0; Node* nodeBodyChild = NULL; unsigned uLoopBody = 0; bool bFindParse = false; if(0 >= html.length()) return 0; RefPtr<DocumentFragment> fragment = DocumentFragment::create(this); if(N..
-
HTML 형태로 클립보드에 올릴 때...공장 이야기 2012. 4. 1. 13:50
BOOL SetClipboardHTML(CComBSTR szHTML) { UINT uClipBoard = 0; char* pszStartHTML = NULL; char* pszEndHTML = NULL; char* pszInsertTag = NULL; int nStartLen = 0; int nEndLen = 0; int nInsertLen = 0; BOOL bResult = FALSE; char* pszFinishHTML = NULL; int nFinishLen = 0; BOOL bClipboard = FALSE; HANDLE hHTMLData = NULL; char* pszClipboard = NULL; TCHAR* pszHTML = 0; UINT uHTMLLengt..
-
Webkit을 이용하여 CSS에서 정의된 LonghandProperties 얻어오기...공장 이야기 2011. 9. 8. 10:39
CSS에서 정의된 기본 LonghandProperties 속성을 얻어 온다. 실제 사용되지 않아도 가지고 온다. String CSSStyleDeclaration::getLonghandProperties(const String& propertyName) { int propID = 0; PassRefPtr<CSSMutableStyleDeclaration> pCSSMSDPropertie; unsigned nCount = 0; String strProperties; int* piProperties = NULL; int nLoop = 0; propID = cssPropertyID(propertyName..