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

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

Powered by Google App Engine
This is Rietveld 408576698