RenderObject树
RenderObject基础类
为了解释本章的内容,首先使用一个网页示例代码来说明。
<html>
<head></head>
<body>
<div>abc</div>
<canvas id="webgl" width="80" height="80"></canvas>
<a href="http://thisaaa"></a>
<input type="button"></input>
<select></select>
<table width="100" height="50">
<tr>
<td>d0</td>
</tr>
</table>
<script type="text/javascript">
var canvas = document.getElememtByID('webgl')
var gl = canvas.getContext("exprimental-webgl")
if(!gl) {
alert('there is no webGL context available')
return;
}
<script>
</body>
</html>