Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Unified Diff: third_party/WebKit/Source/modules/csspaint/README.md

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: rebase. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/csspaint/README.md
diff --git a/third_party/WebKit/Source/modules/csspaint/README.md b/third_party/WebKit/Source/modules/csspaint/README.md
index 926274472e6b4981aadbef3fbbcebc131f799f92..860623bbe5e8c18aa3aaef7e77be6eb1658951b1 100644
--- a/third_party/WebKit/Source/modules/csspaint/README.md
+++ b/third_party/WebKit/Source/modules/csspaint/README.md
@@ -49,6 +49,15 @@ This method returns the `PaintGeneratedImage`.
The `SkPicture` is produced from a `RecordingImageBufferSurface`.
+### Style Invalidation
+
+The `CSSPaintDefinition` keeps a list of both native and custom properties it will invalidate on.
+During style invalidation `ComputedStyle` checks if it has any `CSSPaintValue`s, and if any of their
+properties have changed; if so it will invalidate paint for that `ComputedStyle`.
+
+If the `CSSPaintValue` doesn't have a corresponding `CSSPaintDefinition` yet, it doesn't invalidate
+paint.
+
## Testing
Tests live [here](../../../LayoutTests/csspaint/).
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698