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

Unified Diff: LayoutTests/svg/repaint/transform-changed-state.html

Issue 401883004: Extract RenderSVGModelObject::invalidatePaintIfNeeded() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 6 years, 5 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/transform-changed-state-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/repaint/transform-changed-state.html
diff --git a/LayoutTests/svg/repaint/transform-changed-state.html b/LayoutTests/svg/repaint/transform-changed-state.html
new file mode 100644
index 0000000000000000000000000000000000000000..98ee22889c551316b0a7190a54deca568db11b3a
--- /dev/null
+++ b/LayoutTests/svg/repaint/transform-changed-state.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementsByTagName('rect')[0].setAttribute('y', '50');
+};
+
+window.onload = function() {
+ // Change parent transform and position at the same time, to check if the next
+ // position change in repaintTest() can repaint the old location correctly.
+ document.getElementsByTagName('g')[0].setAttribute('transform', 'scale(2)');
+ document.getElementsByTagName('rect')[0].setAttribute('x', '50');
+ runRepaintTest();
+}
+
+</script>
+<svg width="400" height="400">
+ <g>
+ <rect width="50" height="50" fill="green"/>
+ </g>
+</svg>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/transform-changed-state-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698