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

Unified Diff: Source/core/layout/LayoutButton.cpp

Issue 1006023002: Button elements are clipping overflow by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 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 | « Source/core/layout/LayoutButton.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutButton.cpp
diff --git a/Source/core/layout/LayoutButton.cpp b/Source/core/layout/LayoutButton.cpp
index 1efc126791e89e34f8f165cc17f0232452061c0d..f9f454ae1058af7f0adb942f322775e01d525b38 100644
--- a/Source/core/layout/LayoutButton.cpp
+++ b/Source/core/layout/LayoutButton.cpp
@@ -103,4 +103,10 @@ int LayoutButton::baselinePosition(FontBaseline baseline, bool firstLine, LineDi
return LayoutFlexibleBox::baselinePosition(baseline, firstLine, direction, linePositionMode);
}
+
+// For compatibility with IE/FF we only clip overflow on input elements.
+bool LayoutButton::hasControlClip() const
+{
+ return !isHTMLButtonElement(node());
+}
} // namespace blink
« no previous file with comments | « Source/core/layout/LayoutButton.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698