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

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

Issue 2722613003: [css-grid] "normal" alignment is "start" for replaced elements (Closed)
Patch Set: New version Created 3 years, 10 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
Index: third_party/WebKit/Source/core/layout/LayoutReplaced.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.h b/third_party/WebKit/Source/core/layout/LayoutReplaced.h
index 18e8e1507ecd4309baa0c9ceae2067ba0c181d19..61f8c003cc8c59cf0a649e2d50ced7e1238337f6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutReplaced.h
+++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.h
@@ -141,6 +141,10 @@ class CORE_EXPORT LayoutReplaced : public LayoutBox {
PositionWithAffinity positionForPoint(const LayoutPoint&) override;
+ bool isOfType(LayoutObjectType type) const override {
+ return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type);
+ }
+
private:
void computePreferredLogicalWidths() final;

Powered by Google App Engine
This is Rietveld 408576698