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

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: Applied suggested changes 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 DCHECK(!child);
1385 return ItemPositionStretch; 1387 return ItemPositionStretch;
1386 } 1388 }
1387 1389
1388 // Returns false if it could not cheaply compute the extent (e.g. fixed 1390 // Returns false if it could not cheaply compute the extent (e.g. fixed
1389 // background), in which case the returned rect may be incorrect. 1391 // background), in which case the returned rect may be incorrect.
1390 // FIXME: make this a const method once the LayoutBox reference in BoxPainter 1392 // FIXME: make this a const method once the LayoutBox reference in BoxPainter
1391 // is const. 1393 // is const.
1392 bool getBackgroundPaintedExtent(LayoutRect&) const; 1394 bool getBackgroundPaintedExtent(LayoutRect&) const;
1393 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, 1395 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
1394 unsigned maxDepthToTest) const; 1396 unsigned maxDepthToTest) const;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 breakValue == EBreakBetween::kLeft || 1698 breakValue == EBreakBetween::kLeft ||
1697 breakValue == EBreakBetween::kPage || 1699 breakValue == EBreakBetween::kPage ||
1698 breakValue == EBreakBetween::kRecto || 1700 breakValue == EBreakBetween::kRecto ||
1699 breakValue == EBreakBetween::kRight || 1701 breakValue == EBreakBetween::kRight ||
1700 breakValue == EBreakBetween::kVerso; 1702 breakValue == EBreakBetween::kVerso;
1701 } 1703 }
1702 1704
1703 } // namespace blink 1705 } // namespace blink
1704 1706
1705 #endif // LayoutBox_h 1707 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698