| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 } | 334 } |
| 335 | 335 |
| 336 #endif | 336 #endif |
| 337 | 337 |
| 338 // Correct version of !layoutObjectHasNoBoxEffectObsolete(). | 338 // Correct version of !layoutObjectHasNoBoxEffectObsolete(). |
| 339 bool hasBoxEffect() const | 339 bool hasBoxEffect() const |
| 340 { | 340 { |
| 341 return hasBoxDecorationBackground() || style()->hasVisualOverflowingEffe
ct(); | 341 return hasBoxDecorationBackground() || style()->hasVisualOverflowingEffe
ct(); |
| 342 } | 342 } |
| 343 | 343 |
| 344 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | |
| 345 // children. | |
| 346 virtual LayoutBlock* firstLineBlock() const; | |
| 347 | |
| 348 // LayoutObject tree manipulation | 344 // LayoutObject tree manipulation |
| 349 ////////////////////////////////////////// | 345 ////////////////////////////////////////// |
| 350 virtual bool canHaveChildren() const { return virtualChildren(); } | 346 virtual bool canHaveChildren() const { return virtualChildren(); } |
| 351 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const { ret
urn true; } | 347 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const { ret
urn true; } |
| 352 | 348 |
| 353 // This function is called whenever a child is inserted under |this|. | 349 // This function is called whenever a child is inserted under |this|. |
| 354 // | 350 // |
| 355 // The main purpose of this function is to generate a consistent layout | 351 // The main purpose of this function is to generate a consistent layout |
| 356 // tree, which means generating the missing anonymous objects. Most of the | 352 // tree, which means generating the missing anonymous objects. Most of the |
| 357 // time there'll be no anonymous objects to generate. | 353 // time there'll be no anonymous objects to generate. |
| (...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2040 void showTree(const blink::LayoutObject*); | 2036 void showTree(const blink::LayoutObject*); |
| 2041 void showLineTree(const blink::LayoutObject*); | 2037 void showLineTree(const blink::LayoutObject*); |
| 2042 void showLayoutTree(const blink::LayoutObject* object1); | 2038 void showLayoutTree(const blink::LayoutObject* object1); |
| 2043 // We don't make object2 an optional parameter so that showLayoutTree | 2039 // We don't make object2 an optional parameter so that showLayoutTree |
| 2044 // can be called from gdb easily. | 2040 // can be called from gdb easily. |
| 2045 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2041 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2046 | 2042 |
| 2047 #endif | 2043 #endif |
| 2048 | 2044 |
| 2049 #endif // LayoutObject_h | 2045 #endif // LayoutObject_h |
| OLD | NEW |