Chromium Code Reviews| OLD | NEW |
|---|---|
| 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, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 LayoutObject* beforeChild, LayoutBoxModelObject* oldCont); | 221 LayoutObject* beforeChild, LayoutBoxModelObject* oldCont); |
| 222 void splitFlow(LayoutObject* beforeChild, LayoutBlock* newBlockBox, | 222 void splitFlow(LayoutObject* beforeChild, LayoutBlock* newBlockBox, |
| 223 LayoutObject* newChild, LayoutBoxModelObject* oldCont); | 223 LayoutObject* newChild, LayoutBoxModelObject* oldCont); |
| 224 | 224 |
| 225 void layout() final { ASSERT_NOT_REACHED(); } // Do nothing for layout() | 225 void layout() final { ASSERT_NOT_REACHED(); } // Do nothing for layout() |
| 226 | 226 |
| 227 void paint(const PaintInfo&, const LayoutPoint&) const final; | 227 void paint(const PaintInfo&, const LayoutPoint&) const final; |
| 228 | 228 |
| 229 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) final; | 229 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) final; |
| 230 | 230 |
| 231 PaintLayerType layerTypeRequired() const override { return isInFlowPositione d() || createsGroup() || hasClipPath() || style()->shouldCompositeForCurrentAnim ations() || style()->hasCompositorProxy() ? NormalPaintLayer : NoPaintLayer; } | 231 PaintLayerType layerTypeRequired() const override |
|
chrishtr
2015/12/09 01:41:46
I think this method should be un-inlined at this p
leviw_travelin_and_unemployed
2015/12/09 21:09:24
Done and...
| |
| 232 { | |
| 233 // TODO(leviw): Should this create an OverflowPaintLayer with containsPa int()? | |
|
chrishtr
2015/12/09 01:41:46
I think no. Stacking contexts should be self-paint
leviw_travelin_and_unemployed
2015/12/09 21:09:24
... done.
| |
| 234 return isInFlowPositioned() || createsGroup() || hasClipPath() || style( )->shouldCompositeForCurrentAnimations() | |
| 235 || style()->hasCompositorProxy() || style()->containsPaint() ? Norm alPaintLayer : NoPaintLayer; | |
| 236 } | |
| 232 | 237 |
| 233 LayoutUnit offsetLeft() const final; | 238 LayoutUnit offsetLeft() const final; |
| 234 LayoutUnit offsetTop() const final; | 239 LayoutUnit offsetTop() const final; |
| 235 LayoutUnit offsetWidth() const final { return linesBoundingBox().width(); } | 240 LayoutUnit offsetWidth() const final { return linesBoundingBox().width(); } |
| 236 LayoutUnit offsetHeight() const final { return linesBoundingBox().height(); } | 241 LayoutUnit offsetHeight() const final { return linesBoundingBox().height(); } |
| 237 | 242 |
| 238 LayoutRect absoluteClippedOverflowRect() const override; | 243 LayoutRect absoluteClippedOverflowRect() const override; |
| 239 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; | 244 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; |
| 240 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final; | 245 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final; |
| 241 | 246 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 | 281 |
| 277 LayoutObjectChildList m_children; | 282 LayoutObjectChildList m_children; |
| 278 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. | 283 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. |
| 279 }; | 284 }; |
| 280 | 285 |
| 281 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); | 286 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); |
| 282 | 287 |
| 283 } // namespace blink | 288 } // namespace blink |
| 284 | 289 |
| 285 #endif // LayoutInline_h | 290 #endif // LayoutInline_h |
| OLD | NEW |