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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html

Issue 1478953004: Removed unnecessary SubtreeStyleChange for incrementalAttr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/input-search-incremental-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/input-search-incremental.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html
new file mode 100644
index 0000000000000000000000000000000000000000..e07439ef6abd45a138c9d0535506ae4a58bebc07
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+ input + div { color: pink }
+</style>
+<input id="searchInput" type="search"></input>
+<div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+</div>
+<script>
+description("Setting the incremental attribute on an input type=search")
+
+shouldBeDefined(window.internals);
+
+searchInput.offsetTop;
+getComputedStyle(searchInput); // Force recalc.
+searchInput.setAttribute("incremental", "");
+
+// Ideally, the expected value below should be "0", but the search control
+// button has its opacity changed unconditionally through inline style on
+// every attribute change on the input element.
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698