摘要: Introduction1.Statistics Macro"ANDROID_INSTRUMENT"2.Classes for statisticsa.TimeCounterb.TimeCounterAuto3. method for statisticsa. counting the time used for a single function.b. counting the total time used by a kind of Timer.TimerCounter1.TimerCounter type.One counter type stands for one 阅读全文
posted @ 2012-05-30 23:52 cascais 阅读(291) 评论(3) 推荐(0) 编辑
摘要: There are code in webkit that can dump the dom tree and render tree."RenderObject::showRenderTreeAndMark" and "Node::showTreeAndMark"You can use it or change it. But it will take a lot of time to compile, and the log function doesn't work very well in Windows environment.Belo 阅读全文
posted @ 2012-05-30 23:52 cascais 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1.KURL:it's the type of String in WTF,we use[html]view plaincopyKURL.string().utf8().data();to return the char * in the KURL.And how does it come out? a KURL is defined in WebCore/Platform/KURL.h, it has a member function string(). b KURL.string(), return a class of String, which was defined in 阅读全文
posted @ 2012-05-30 23:51 cascais 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 1、二叉排序树二叉排序树是这样一棵树a.空树b.1)如果左子树不空,左子树的所有节点的值小于其根节点的值2)如果右子树不空,右子树所有节点的值大于其根节点的值3)其左右子树都是二叉排序树2、遍历对于拥有指针next的数据结构,遍历的时候,一般都是以指针p作为游标进行遍历一般有2种方式判断游标p是否到尽头a p==NULLb p->next==NULLb的好处是遍历条件结束后,p依然指向最后一个有效节点,但是初始的时候,要对p进行非空判断。3、查找查找一般有几种目的a 简单查找只为获取一个节点的值。b 查找并且删除,一般这种情况下,不但要获取该节点的指针,还要获取该节点的前驱节点。c 查找 阅读全文
posted @ 2012-05-30 23:50 cascais 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1. Introductiona. Language can be written in HTML and XML.b. define processing detail for implementation.c. Improve markup for document.d. Introduced markup and API for merging idioms.The HTML5 specification will not be considered finished before there are at least two complete implementations of th 阅读全文
posted @ 2012-05-30 23:49 cascais 阅读(210) 评论(0) 推荐(0) 编辑
摘要: script1.DOM object in jsWindows object, the biggest object.Screen,Navigaor,Location,History2.document.frames[0]document.frames[1]return the frame of the Document.(to be continued)webkit1.HTMLDocumentPareser's membershipOwnPtr<HTMLTokenizer> m_tokenizer;OwnPtr<HTMLScriptRunner> m_scri 阅读全文
posted @ 2012-05-30 23:48 cascais 阅读(342) 评论(0) 推荐(0) 编辑
摘要: JavaScript简介1.jsJavaScript 可以将动态的文本放入 HTML 页面JavaScript 可以对事件作出响应JavaScript 可以读写 HTML 元素JavaScript 可被用来验证数据JavaScript 可被用来检测访问者的浏览器JavaScript 可被用来创建 cookiesJavaScript 的正式名称是 "ECMAScript"2.实现<html><body><script type="text/javascript">document.write("Hello Wo 阅读全文
posted @ 2012-05-30 23:25 cascais 阅读(392) 评论(0) 推荐(0) 编辑
摘要: DOM level 2 coreNode object hierarchy:DocumentDocumentFragmentDocumentTypeEntityReferenceElementAttrProcessingInstructionCommentTextCDATASectionEntityNotationChanges between DOM Level 1 Core and DOM Level 2 CoreInterface AttrThe Attr interface has one new attribute: ownerElement.Interface DocumentTh 阅读全文
posted @ 2012-05-06 09:55 cascais 阅读(259) 评论(0) 推荐(0) 编辑
摘要: script1.DOM object in jsWindows object, the biggest object.Screen,Navigaor,Location,History2.document.frames[0]document.frames[1]return the frame of the Document.(to be continued)webkit1.HTMLDocumentPareser's membershipOwnPtr<HTMLTokenizer> m_tokenizer;OwnPtr<HTMLScriptRunner> m_scri 阅读全文
posted @ 2012-05-06 09:55 cascais 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Introduction1.DOM levelDom level 1specified in 1998.DOM level 2includes Core Specification, Events Specification, Style Specification, Tranversal and Range Specification, View Specification (2000.11)and also HTML Specification(2003.1)DOM level 3includesValidation Specification, Core Specification, L 阅读全文
posted @ 2012-05-06 09:54 cascais 阅读(208) 评论(0) 推荐(0) 编辑