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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2722613003: [css-grid] "normal" alignment is "start" for replaced elements (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 1374
1375 void willBeDestroyed() override; 1375 void willBeDestroyed() override;
1376 1376
1377 void insertedIntoTree() override; 1377 void insertedIntoTree() override;
1378 void willBeRemovedFromTree() override; 1378 void willBeRemovedFromTree() override;
1379 1379
1380 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) override; 1380 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) override;
1381 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 1381 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
1382 void updateFromStyle() override; 1382 void updateFromStyle() override;
1383 1383
1384 virtual ItemPosition selfAlignmentNormalBehavior() const { 1384 virtual ItemPosition selfAlignmentNormalBehavior(
1385 const LayoutBox* child = nullptr) const {
1386 if (child && child->isLayoutReplaced())
jfernandez 2017/03/01 12:46:49 I think this logic is grid specific, so it should
Manuel Rego 2017/03/01 17:57:07 Yeah, good point, it's grid layout specific so I'v
1387 return ItemPositionStart;
1385 return ItemPositionStretch; 1388 return ItemPositionStretch;
1386 } 1389 }
1387 1390
1388 // Returns false if it could not cheaply compute the extent (e.g. fixed 1391 // Returns false if it could not cheaply compute the extent (e.g. fixed
1389 // background), in which case the returned rect may be incorrect. 1392 // background), in which case the returned rect may be incorrect.
1390 // FIXME: make this a const method once the LayoutBox reference in BoxPainter 1393 // FIXME: make this a const method once the LayoutBox reference in BoxPainter
1391 // is const. 1394 // is const.
1392 bool getBackgroundPaintedExtent(LayoutRect&) const; 1395 bool getBackgroundPaintedExtent(LayoutRect&) const;
1393 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, 1396 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
1394 unsigned maxDepthToTest) const; 1397 unsigned maxDepthToTest) const;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 breakValue == EBreakBetween::kLeft || 1699 breakValue == EBreakBetween::kLeft ||
1697 breakValue == EBreakBetween::kPage || 1700 breakValue == EBreakBetween::kPage ||
1698 breakValue == EBreakBetween::kRecto || 1701 breakValue == EBreakBetween::kRecto ||
1699 breakValue == EBreakBetween::kRight || 1702 breakValue == EBreakBetween::kRight ||
1700 breakValue == EBreakBetween::kVerso; 1703 breakValue == EBreakBetween::kVerso;
1701 } 1704 }
1702 1705
1703 } // namespace blink 1706 } // namespace blink
1704 1707
1705 #endif // LayoutBox_h 1708 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698