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

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

Issue 2786463004: Paint backgrounds of a table section/row in one display item (Closed)
Patch Set: First round of rebaseline-cl Created 3 years, 8 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 // writing-mode:vertical-rl). 482 // writing-mode:vertical-rl).
483 virtual bool hasTopOverflow() const; 483 virtual bool hasTopOverflow() const;
484 virtual bool hasLeftOverflow() const; 484 virtual bool hasLeftOverflow() const;
485 485
486 void addLayoutOverflow(const LayoutRect&); 486 void addLayoutOverflow(const LayoutRect&);
487 void addSelfVisualOverflow(const LayoutRect&); 487 void addSelfVisualOverflow(const LayoutRect&);
488 void addContentsVisualOverflow(const LayoutRect&); 488 void addContentsVisualOverflow(const LayoutRect&);
489 489
490 void addVisualEffectOverflow(); 490 void addVisualEffectOverflow();
491 LayoutRectOutsets computeVisualEffectOverflowOutsets(); 491 LayoutRectOutsets computeVisualEffectOverflowOutsets();
492 void addOverflowFromChild(LayoutBox* child) { 492 void addOverflowFromChild(const LayoutBox* child) {
wkorman 2017/03/31 22:15:41 If modifying signature and it won't be null perhap
Xianzhu 2017/03/31 23:26:30 Done.
493 addOverflowFromChild(child, child->locationOffset()); 493 addOverflowFromChild(child, child->locationOffset());
494 } 494 }
495 void addOverflowFromChild(LayoutBox* child, const LayoutSize& delta); 495 void addOverflowFromChild(const LayoutBox* child, const LayoutSize& delta);
Xianzhu 2017/03/31 23:26:30 Done.
496 void clearLayoutOverflow(); 496 void clearLayoutOverflow();
497 void clearAllOverflows() { m_overflow.reset(); } 497 void clearAllOverflows() { m_overflow.reset(); }
498 498
499 void updateLayerTransformAfterLayout(); 499 void updateLayerTransformAfterLayout();
500 500
501 DISABLE_CFI_PERF LayoutUnit contentWidth() const { 501 DISABLE_CFI_PERF LayoutUnit contentWidth() const {
502 // We're dealing with LayoutUnit and saturated arithmetic here, so we need 502 // We're dealing with LayoutUnit and saturated arithmetic here, so we need
503 // to guard against negative results. The value returned from clientWidth() 503 // to guard against negative results. The value returned from clientWidth()
504 // may in itself be a victim of saturated arithmetic; e.g. if both border 504 // may in itself be a victim of saturated arithmetic; e.g. if both border
505 // sides were sufficiently wide (close to LayoutUnit::max()). Here we 505 // sides were sufficiently wide (close to LayoutUnit::max()). Here we
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 breakValue == EBreakBetween::kLeft || 1702 breakValue == EBreakBetween::kLeft ||
1703 breakValue == EBreakBetween::kPage || 1703 breakValue == EBreakBetween::kPage ||
1704 breakValue == EBreakBetween::kRecto || 1704 breakValue == EBreakBetween::kRecto ||
1705 breakValue == EBreakBetween::kRight || 1705 breakValue == EBreakBetween::kRight ||
1706 breakValue == EBreakBetween::kVerso; 1706 breakValue == EBreakBetween::kVerso;
1707 } 1707 }
1708 1708
1709 } // namespace blink 1709 } // namespace blink
1710 1710
1711 #endif // LayoutBox_h 1711 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698