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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp

Issue 2851123002: Merge "Form validation: Do not show validation bubble during printing." to M59. (Closed)
Patch Set: Created 3 years, 8 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/Source/core/html/HTMLFormControlElementTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index a7ec2d0046c6ddb25b4ee17642157c0ea2e24750..39b949f26a268a65da3ac75d1157cd1e78642379 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -465,6 +465,8 @@ void HTMLFormControlElement::UpdateVisibleValidationMessage() {
Page* page = GetDocument().GetPage();
if (!page || !page->IsPageVisible() || GetDocument().UnloadStarted())
return;
+ if (GetDocument().GetFrame()->ShouldUsePrintingLayout())
+ return;
String message;
if (GetLayoutObject() && willValidate())
message = validationMessage().StripWhiteSpace();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFormControlElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698