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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutButton.h

Issue 2177563003: Button experiment Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutButton.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutButton.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutButton.h b/third_party/WebKit/Source/core/layout/LayoutButton.h
index 685b0925f8b5401cdd93eb7b831b4f82067bb851..6c227a8ea39035536429dca07fac733e032d2a8a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutButton.h
+++ b/third_party/WebKit/Source/core/layout/LayoutButton.h
@@ -22,20 +22,20 @@
#define LayoutButton_h
#include "core/html/HTMLInputElement.h"
-#include "core/layout/LayoutFlexibleBox.h"
+#include "core/layout/LayoutBlockFlow.h"
namespace blink {
// LayoutButtons are just like normal flexboxes except that they will generate an anonymous block child.
// For inputs, they will also generate an anonymous LayoutText and keep its style and content up
// to date as the button changes.
-class LayoutButton final : public LayoutFlexibleBox {
+class LayoutButton final : public LayoutBlockFlow {
public:
explicit LayoutButton(Element*);
~LayoutButton() override;
const char* name() const override { return "LayoutButton"; }
- bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutButton || LayoutFlexibleBox::isOfType(type); }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutButton || LayoutBlockFlow::isOfType(type); }
bool canBeSelectionLeaf() const override { return node() && hasEditableStyle(*node()); }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698