| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 public: | 322 public: |
| 323 virtual bool isBoxModelObject() const { return false; } | 323 virtual bool isBoxModelObject() const { return false; } |
| 324 virtual bool isCanvas() const { return false; } | 324 virtual bool isCanvas() const { return false; } |
| 325 virtual bool isImage() const { return false; } | 325 virtual bool isImage() const { return false; } |
| 326 virtual bool isInlineBlock() const { return false; } | 326 virtual bool isInlineBlock() const { return false; } |
| 327 virtual bool isLayerModelObject() const { return false; } | 327 virtual bool isLayerModelObject() const { return false; } |
| 328 virtual bool isMedia() const { return false; } | 328 virtual bool isMedia() const { return false; } |
| 329 virtual bool isRenderBlock() const { return false; } | 329 virtual bool isRenderBlock() const { return false; } |
| 330 virtual bool isRenderBlockFlow() const { return false; } | 330 virtual bool isRenderBlockFlow() const { return false; } |
| 331 virtual bool isRenderGrid() const { return false; } | |
| 332 virtual bool isRenderImage() const { return false; } | 331 virtual bool isRenderImage() const { return false; } |
| 333 virtual bool isRenderInline() const { return false; } | 332 virtual bool isRenderInline() const { return false; } |
| 334 virtual bool isRenderView() const { return false; } | 333 virtual bool isRenderView() const { return false; } |
| 335 virtual bool isVideo() const { return false; } | 334 virtual bool isVideo() const { return false; } |
| 336 virtual bool isWidget() const { return false; } | 335 virtual bool isWidget() const { return false; } |
| 337 | 336 |
| 338 bool isDocumentElement() const { return document().documentElement() == m_no
de; } | 337 bool isDocumentElement() const { return document().documentElement() == m_no
de; } |
| 339 | 338 |
| 340 bool everHadLayout() const { return m_bitfields.everHadLayout(); } | 339 bool everHadLayout() const { return m_bitfields.everHadLayout(); } |
| 341 | 340 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // This includes any viewport transforms and x/y offsets as well as the tran
sform="" value off the element. | 387 // This includes any viewport transforms and x/y offsets as well as the tran
sform="" value off the element. |
| 389 virtual const AffineTransform& localToParentTransform() const; | 388 virtual const AffineTransform& localToParentTransform() const; |
| 390 | 389 |
| 391 // SVG uses FloatPoint precise hit testing, and passes the point in parent | 390 // SVG uses FloatPoint precise hit testing, and passes the point in parent |
| 392 // coordinates instead of in paint invalidaiton container coordinates. Event
ually the | 391 // coordinates instead of in paint invalidaiton container coordinates. Event
ually the |
| 393 // rest of the rendering tree will move to a similar model. | 392 // rest of the rendering tree will move to a similar model. |
| 394 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction); | 393 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction); |
| 395 | 394 |
| 396 virtual bool canHaveWhitespaceChildren() const | 395 virtual bool canHaveWhitespaceChildren() const |
| 397 { | 396 { |
| 398 if (isFlexibleBox() || isRenderGrid()) | 397 return !isFlexibleBox(); |
| 399 return false; | |
| 400 return true; | |
| 401 } | 398 } |
| 402 | 399 |
| 403 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 400 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
| 404 bool isAnonymousBlock() const | 401 bool isAnonymousBlock() const |
| 405 { | 402 { |
| 406 // This function is kept in sync with anonymous block creation condition
s in | 403 // This function is kept in sync with anonymous block creation condition
s in |
| 407 // RenderBlock::createAnonymousBlock(). This includes creating an anonym
ous | 404 // RenderBlock::createAnonymousBlock(). This includes creating an anonym
ous |
| 408 // RenderBlock having a BLOCK or BOX display. See https://bugs.webkit.or
g/show_bug.cgi?id=56709. | 405 // RenderBlock having a BLOCK or BOX display. See https://bugs.webkit.or
g/show_bug.cgi?id=56709. |
| 409 return isAnonymous() && style()->display() == BLOCK && style()->styleTyp
e() == NOPSEUDO && isRenderBlock(); | 406 return isAnonymous() && style()->display() == BLOCK && style()->styleTyp
e() == NOPSEUDO && isRenderBlock(); |
| 410 } | 407 } |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 void showTree(const blink::RenderObject*); | 1330 void showTree(const blink::RenderObject*); |
| 1334 void showLineTree(const blink::RenderObject*); | 1331 void showLineTree(const blink::RenderObject*); |
| 1335 void showRenderTree(const blink::RenderObject* object1); | 1332 void showRenderTree(const blink::RenderObject* object1); |
| 1336 // We don't make object2 an optional parameter so that showRenderTree | 1333 // We don't make object2 an optional parameter so that showRenderTree |
| 1337 // can be called from gdb easily. | 1334 // can be called from gdb easily. |
| 1338 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1335 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1339 | 1336 |
| 1340 #endif | 1337 #endif |
| 1341 | 1338 |
| 1342 #endif // RenderObject_h | 1339 #endif // RenderObject_h |
| OLD | NEW |