OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 virtual bool isTableCaption() const { return false; } | 382 virtual bool isTableCaption() const { return false; } |
383 virtual bool isTableCell() const { return false; } | 383 virtual bool isTableCell() const { return false; } |
384 virtual bool isTableRow() const { return false; } | 384 virtual bool isTableRow() const { return false; } |
385 virtual bool isTableSection() const { return false; } | 385 virtual bool isTableSection() const { return false; } |
386 virtual bool isTextArea() const { return false; } | 386 virtual bool isTextArea() const { return false; } |
387 virtual bool isTextControl() const { return false; } | 387 virtual bool isTextControl() const { return false; } |
388 virtual bool isTextField() const { return false; } | 388 virtual bool isTextField() const { return false; } |
389 virtual bool isVideo() const { return false; } | 389 virtual bool isVideo() const { return false; } |
390 virtual bool isWidget() const { return false; } | 390 virtual bool isWidget() const { return false; } |
391 | 391 |
| 392 // The background of the root element or the body element could propagate up
to the canvas. |
| 393 bool backgroundCanBleedToCanvas() const { return isBody() || isDocumentEleme
nt(); } |
| 394 |
392 bool isDocumentElement() const { return document().documentElement() == m_no
de; } | 395 bool isDocumentElement() const { return document().documentElement() == m_no
de; } |
393 // isBody is called from RenderBox::styleWillChange and is thus quite hot. | 396 // isBody is called from RenderBox::styleWillChange and is thus quite hot. |
394 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag
); } | 397 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag
); } |
395 bool isHR() const; | 398 bool isHR() const; |
396 bool isLegend() const; | 399 bool isLegend() const; |
397 | 400 |
398 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT
ableCaption() || isTableRow() || isTableSection(); } | 401 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT
ableCaption() || isTableRow() || isTableSection(); } |
399 | 402 |
400 inline bool isBeforeContent() const; | 403 inline bool isBeforeContent() const; |
401 inline bool isAfterContent() const; | 404 inline bool isAfterContent() const; |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 void showTree(const blink::RenderObject*); | 1495 void showTree(const blink::RenderObject*); |
1493 void showLineTree(const blink::RenderObject*); | 1496 void showLineTree(const blink::RenderObject*); |
1494 void showRenderTree(const blink::RenderObject* object1); | 1497 void showRenderTree(const blink::RenderObject* object1); |
1495 // We don't make object2 an optional parameter so that showRenderTree | 1498 // We don't make object2 an optional parameter so that showRenderTree |
1496 // can be called from gdb easily. | 1499 // can be called from gdb easily. |
1497 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1500 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
1498 | 1501 |
1499 #endif | 1502 #endif |
1500 | 1503 |
1501 #endif // RenderObject_h | 1504 #endif // RenderObject_h |
OLD | NEW |