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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 | 403 |
404 void invalidateTreeIfNeeded(const PaintInvalidationState&) override; | 404 void invalidateTreeIfNeeded(const PaintInvalidationState&) override; |
405 | 405 |
406 // http://www.w3.org/TR/css3-background/#body-background | 406 // http://www.w3.org/TR/css3-background/#body-background |
407 // <html> root element with no background steals background from its first | 407 // <html> root element with no background steals background from its first |
408 // <body> child. The used background for such body element should be the | 408 // <body> child. The used background for such body element should be the |
409 // initial value. (i.e. transparent) | 409 // initial value. (i.e. transparent) |
410 bool backgroundStolenForBeingBody( | 410 bool backgroundStolenForBeingBody( |
411 const ComputedStyle* rootElementStyle = nullptr) const; | 411 const ComputedStyle* rootElementStyle = nullptr) const; |
412 | 412 |
413 void absoluteQuads(Vector<FloatQuad>& quads) const override; | 413 void absoluteQuads(Vector<FloatQuad>& quads, |
| 414 MapCoordinatesFlags mode = 0) const override; |
414 | 415 |
415 protected: | 416 protected: |
416 // Compute absolute quads for |this|, but not any continuations. May only be | 417 // Compute absolute quads for |this|, but not any continuations. May only be |
417 // called for objects which can be or have continuations, i.e. LayoutInline or | 418 // called for objects which can be or have continuations, i.e. LayoutInline or |
418 // LayoutBlockFlow. | 419 // LayoutBlockFlow. |
419 virtual void absoluteQuadsForSelf(Vector<FloatQuad>& quads) const; | 420 virtual void absoluteQuadsForSelf(Vector<FloatQuad>& quads, |
| 421 MapCoordinatesFlags mode = 0) const; |
420 | 422 |
421 void willBeDestroyed() override; | 423 void willBeDestroyed() override; |
422 | 424 |
423 LayoutPoint adjustedPositionRelativeTo(const LayoutPoint&, | 425 LayoutPoint adjustedPositionRelativeTo(const LayoutPoint&, |
424 const Element*) const; | 426 const Element*) const; |
425 | 427 |
426 // Returns the continuation associated with |this|. | 428 // Returns the continuation associated with |this|. |
427 // Returns nullptr if no continuation is associated with |this|. | 429 // Returns nullptr if no continuation is associated with |this|. |
428 // | 430 // |
429 // See the section about CONTINUATIONS AND ANONYMOUS LAYOUTBLOCKFLOWS in | 431 // See the section about CONTINUATIONS AND ANONYMOUS LAYOUTBLOCKFLOWS in |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 std::unique_ptr<PaintLayer> m_layer; | 526 std::unique_ptr<PaintLayer> m_layer; |
525 | 527 |
526 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; | 528 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; |
527 }; | 529 }; |
528 | 530 |
529 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 531 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
530 | 532 |
531 } // namespace blink | 533 } // namespace blink |
532 | 534 |
533 #endif // LayoutBoxModelObject_h | 535 #endif // LayoutBoxModelObject_h |
OLD | NEW |