-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accelerated Rendering in Chrome---The Layer Model #2
Comments
导致layoutElementclientHeight, clientLeft, clientTop, clientWidth, focus(), getBoundingClientRect(), getClientRects(), innerText, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerText, scrollByLines(), scrollByPages(), scrollHeight, scrollIntoView(), scrollIntoViewIfNeeded(), scrollLeft, scrollTop, scrollWidth Frame, Imageheight, width RangegetBoundingClientRect(), getClientRects() SVGLocatablecomputeCTM(), getBBox() SVGTextContentgetCharNumAtPosition(), getComputedTextLength(), getEndPositionOfChar(), getExtentOfChar(), getNumberOfChars(), getRotationOfChar(), getStartPositionOfChar(), getSubStringLength(), selectSubString() SVGUseinstanceRoot windowgetComputedStyle(), scrollBy(), scrollTo(), scrollX, scrollY, webkitConvertPointFromNodeToPage(), webkitConvertPointFromPageToNode() |
Timeline Event ReferenceRendering eventsThis section lists events that belong to Rendering category and their properties.
|
笔记
层创建标准
实际意义
层对于移动静态 web 内容十分有效。通常,Chrome 会将一个层的内容在作为纹理上传到 GPU 前先绘制(paint)进一个位图中。如果内容不会改变,那么就没有必要重绘(repaint)。这样处理很好:花在重绘上的时间可以用来做别的事情,例如运行 JavaScript,如果绘制的时间很长,还会造成动画的故障与延迟。
层的内容变了的话,就需要repaint。
从 DOM 到屏幕
So how does Chrome turn the DOM into a screen image? Conceptually, it:
注意
ref:https://www.html5rocks.com/en/tutorials/speed/layers/
The text was updated successfully, but these errors were encountered: