| 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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 } | 913 } |
| 914 | 914 |
| 915 LayoutBoxModelObject* LayoutBoxModelObject::continuation() const | 915 LayoutBoxModelObject* LayoutBoxModelObject::continuation() const |
| 916 { | 916 { |
| 917 return (!continuationMap) ? nullptr : continuationMap->get(this); | 917 return (!continuationMap) ? nullptr : continuationMap->get(this); |
| 918 } | 918 } |
| 919 | 919 |
| 920 void LayoutBoxModelObject::setContinuation(LayoutBoxModelObject* continuation) | 920 void LayoutBoxModelObject::setContinuation(LayoutBoxModelObject* continuation) |
| 921 { | 921 { |
| 922 if (continuation) { | 922 if (continuation) { |
| 923 ASSERT(continuation->isLayoutInline() || continuation->isLayoutBlockFlow
()); |
| 923 if (!continuationMap) | 924 if (!continuationMap) |
| 924 continuationMap = new ContinuationMap; | 925 continuationMap = new ContinuationMap; |
| 925 continuationMap->set(this, continuation); | 926 continuationMap->set(this, continuation); |
| 926 } else { | 927 } else { |
| 927 if (continuationMap) | 928 if (continuationMap) |
| 928 continuationMap->remove(this); | 929 continuationMap->remove(this); |
| 929 } | 930 } |
| 930 } | 931 } |
| 931 | 932 |
| 932 void LayoutBoxModelObject::computeLayerHitTestRects(LayerHitTestRects& rects) co
nst | 933 void LayoutBoxModelObject::computeLayerHitTestRects(LayerHitTestRects& rects) co
nst |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 if (rootElementStyle->hasBackground()) | 1135 if (rootElementStyle->hasBackground()) |
| 1135 return false; | 1136 return false; |
| 1136 | 1137 |
| 1137 if (node() != document().firstBodyElement()) | 1138 if (node() != document().firstBodyElement()) |
| 1138 return false; | 1139 return false; |
| 1139 | 1140 |
| 1140 return true; | 1141 return true; |
| 1141 } | 1142 } |
| 1142 | 1143 |
| 1143 } // namespace blink | 1144 } // namespace blink |
| OLD | NEW |