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

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

Issue 2528253003: [table] Stretching tables when needed due to self-alignment properties (Closed)
Patch Set: Removed another incorrect assert. 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 1384 virtual ItemPosition selfAlignmentNormalBehavior(
1385 const LayoutBox* child = nullptr) const { 1385 const LayoutBox* child = nullptr) const {
1386 DCHECK(!child); 1386 return ItemPositionStart;
1387 return ItemPositionStretch;
1388 } 1387 }
1389 1388
1390 // Returns false if it could not cheaply compute the extent (e.g. fixed 1389 // Returns false if it could not cheaply compute the extent (e.g. fixed
1391 // background), in which case the returned rect may be incorrect. 1390 // background), in which case the returned rect may be incorrect.
1392 // FIXME: make this a const method once the LayoutBox reference in BoxPainter 1391 // FIXME: make this a const method once the LayoutBox reference in BoxPainter
1393 // is const. 1392 // is const.
1394 bool getBackgroundPaintedExtent(LayoutRect&) const; 1393 bool getBackgroundPaintedExtent(LayoutRect&) const;
1395 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, 1394 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
1396 unsigned maxDepthToTest) const; 1395 unsigned maxDepthToTest) const;
1397 bool computeBackgroundIsKnownToBeObscured() const override; 1396 bool computeBackgroundIsKnownToBeObscured() const override;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 breakValue == EBreakBetween::kLeft || 1697 breakValue == EBreakBetween::kLeft ||
1699 breakValue == EBreakBetween::kPage || 1698 breakValue == EBreakBetween::kPage ||
1700 breakValue == EBreakBetween::kRecto || 1699 breakValue == EBreakBetween::kRecto ||
1701 breakValue == EBreakBetween::kRight || 1700 breakValue == EBreakBetween::kRight ||
1702 breakValue == EBreakBetween::kVerso; 1701 breakValue == EBreakBetween::kVerso;
1703 } 1702 }
1704 1703
1705 } // namespace blink 1704 } // namespace blink
1706 1705
1707 #endif // LayoutBox_h 1706 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698