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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html

Issue 1372823002: No need to recalc style before StyleResolver::computeFont. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html
new file mode 100644
index 0000000000000000000000000000000000000000..cbf46e9d877b247187c00324c69adb68c8cc7d10
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+ .x { color: green }
+</style>
+<div id="x">
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+</div>
+<script>
+ description("Check that FontFaceSet.load() does not trigger a style recalc");
+
+ x.offsetTop;
+ x.className = "x";
+ document.fonts.load("40px dummy");
+
+ if (window.internals)
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5");
+
+ shouldBeEqualToString("getComputedStyle(x).color", "rgb(0, 128, 0)");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698