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 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 } | 407 } |
408 } | 408 } |
409 return; | 409 return; |
410 } | 410 } |
411 | 411 |
412 if (descendant.isBox()) { | 412 if (descendant.isBox()) { |
413 descendant.addOutlineRects(rects, additionalOffset + toLayoutBox(descend ant).locationOffset()); | 413 descendant.addOutlineRects(rects, additionalOffset + toLayoutBox(descend ant).locationOffset()); |
414 return; | 414 return; |
415 } | 415 } |
416 | 416 |
417 if (descendant.isLayoutInline()) { | |
Xianzhu
2015/08/06 18:12:45
This is a refactor of the original LayoutInline::a
| |
418 toLayoutInline(descendant).addOutlineRectsForChildrenAndContinuations(re cts, additionalOffset); | |
419 return; | |
420 } | |
421 | |
417 descendant.addOutlineRects(rects, additionalOffset); | 422 descendant.addOutlineRects(rects, additionalOffset); |
418 } | 423 } |
419 | 424 |
420 bool LayoutBoxModelObject::calculateHasBoxDecorations() const | 425 bool LayoutBoxModelObject::calculateHasBoxDecorations() const |
421 { | 426 { |
422 const ComputedStyle& styleToUse = styleRef(); | 427 const ComputedStyle& styleToUse = styleRef(); |
423 return hasBackground() || styleToUse.hasBorderDecoration() || styleToUse.has Appearance() || styleToUse.boxShadow(); | 428 return hasBackground() || styleToUse.hasBorderDecoration() || styleToUse.has Appearance() || styleToUse.boxShadow(); |
424 } | 429 } |
425 | 430 |
426 bool LayoutBoxModelObject::hasNonEmptyLayoutSize() const | 431 bool LayoutBoxModelObject::hasNonEmptyLayoutSize() const |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1003 if (rootElementStyle->hasBackground()) | 1008 if (rootElementStyle->hasBackground()) |
1004 return false; | 1009 return false; |
1005 | 1010 |
1006 if (node() != document().firstBodyElement()) | 1011 if (node() != document().firstBodyElement()) |
1007 return false; | 1012 return false; |
1008 | 1013 |
1009 return true; | 1014 return true; |
1010 } | 1015 } |
1011 | 1016 |
1012 } // namespace blink | 1017 } // namespace blink |
OLD | NEW |