| 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, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // http://www.w3.org/TR/css3-background/#body-background | 297 // http://www.w3.org/TR/css3-background/#body-background |
| 298 // <html> root element with no background steals background from its first <
body> child. | 298 // <html> root element with no background steals background from its first <
body> child. |
| 299 // The used background for such body element should be the initial value. (i
.e. transparent) | 299 // The used background for such body element should be the initial value. (i
.e. transparent) |
| 300 bool backgroundStolenForBeingBody(const ComputedStyle* rootElementStyle = nu
llptr) const; | 300 bool backgroundStolenForBeingBody(const ComputedStyle* rootElementStyle = nu
llptr) const; |
| 301 | 301 |
| 302 protected: | 302 protected: |
| 303 void willBeDestroyed() override; | 303 void willBeDestroyed() override; |
| 304 | 304 |
| 305 LayoutPoint adjustedPositionRelativeTo(const LayoutPoint&, const Element*) c
onst; | 305 LayoutPoint adjustedPositionRelativeTo(const LayoutPoint&, const Element*) c
onst; |
| 306 | 306 |
| 307 bool calculateHasBoxDecorations() const; | |
| 308 | |
| 309 // Returns the continuation associated with |this|. | 307 // Returns the continuation associated with |this|. |
| 310 // Returns nullptr if no continuation is associated with |this|. | 308 // Returns nullptr if no continuation is associated with |this|. |
| 311 // | 309 // |
| 312 // See the section about CONTINUATIONS AND ANONYMOUS LAYOUTBLOCKFLOWS in | 310 // See the section about CONTINUATIONS AND ANONYMOUS LAYOUTBLOCKFLOWS in |
| 313 // LayoutInline for more details about them. | 311 // LayoutInline for more details about them. |
| 314 // | 312 // |
| 315 // Our implementation uses a HashMap to store them to avoid paying the cost | 313 // Our implementation uses a HashMap to store them to avoid paying the cost |
| 316 // for each LayoutBoxModelObject (|continuationMap| in the cpp file). | 314 // for each LayoutBoxModelObject (|continuationMap| in the cpp file). |
| 317 LayoutBoxModelObject* continuation() const; | 315 LayoutBoxModelObject* continuation() const; |
| 318 | 316 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 std::unique_ptr<PaintLayer> m_layer; | 381 std::unique_ptr<PaintLayer> m_layer; |
| 384 | 382 |
| 385 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; | 383 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; |
| 386 }; | 384 }; |
| 387 | 385 |
| 388 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 386 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 389 | 387 |
| 390 } // namespace blink | 388 } // namespace blink |
| 391 | 389 |
| 392 #endif // LayoutBoxModelObject_h | 390 #endif // LayoutBoxModelObject_h |
| OLD | NEW |