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 2528253003: [table] Stretching tables when needed due to self-alignment properties (Closed)
Patch Set: Created 4 years 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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 void willBeDestroyed() override; 1310 void willBeDestroyed() override;
1311 1311
1312 void insertedIntoTree() override; 1312 void insertedIntoTree() override;
1313 void willBeRemovedFromTree() override; 1313 void willBeRemovedFromTree() override;
1314 1314
1315 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) override; 1315 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) override;
1316 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 1316 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
1317 void updateFromStyle() override; 1317 void updateFromStyle() override;
1318 1318
1319 virtual ItemPosition selfAlignmentNormalBehavior() const { 1319 virtual ItemPosition selfAlignmentNormalBehavior() const {
1320 return ItemPositionStretch; 1320 return ItemPositionStart;
1321 } 1321 }
1322 1322
1323 // Returns false if it could not cheaply compute the extent (e.g. fixed 1323 // Returns false if it could not cheaply compute the extent (e.g. fixed
1324 // background), in which case the returned rect may be incorrect. 1324 // background), in which case the returned rect may be incorrect.
1325 // FIXME: make this a const method once the LayoutBox reference in BoxPainter 1325 // FIXME: make this a const method once the LayoutBox reference in BoxPainter
1326 // is const. 1326 // is const.
1327 bool getBackgroundPaintedExtent(LayoutRect&) const; 1327 bool getBackgroundPaintedExtent(LayoutRect&) const;
1328 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, 1328 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
1329 unsigned maxDepthToTest) const; 1329 unsigned maxDepthToTest) const;
1330 bool computeBackgroundIsKnownToBeObscured() const override; 1330 bool computeBackgroundIsKnownToBeObscured() const override;
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 1623
1624 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1624 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1625 return breakValue == BreakColumn || breakValue == BreakLeft || 1625 return breakValue == BreakColumn || breakValue == BreakLeft ||
1626 breakValue == BreakPage || breakValue == BreakRecto || 1626 breakValue == BreakPage || breakValue == BreakRecto ||
1627 breakValue == BreakRight || breakValue == BreakVerso; 1627 breakValue == BreakRight || breakValue == BreakVerso;
1628 } 1628 }
1629 1629
1630 } // namespace blink 1630 } // namespace blink
1631 1631
1632 #endif // LayoutBox_h 1632 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698