| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer | 232 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer |
| 233 // from the style. | 233 // from the style. |
| 234 layer()->setLayerType(type); | 234 layer()->setLayerType(type); |
| 235 | 235 |
| 236 layer()->styleChanged(diff, oldStyle); | 236 layer()->styleChanged(diff, oldStyle); |
| 237 if (hadLayer && layer()->isSelfPaintingLayer() != layerWasSelfPainting) | 237 if (hadLayer && layer()->isSelfPaintingLayer() != layerWasSelfPainting) |
| 238 setChildNeedsLayout(); | 238 setChildNeedsLayout(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 if (oldStyle && wasHorizontalWritingMode != isHorizontalWritingMode()) { | 241 if (oldStyle && wasHorizontalWritingMode != isHorizontalWritingMode()) { |
| 242 // Changing the writingMode() may change isOrthogonalWritingModeRoot() | 242 // Changing the getWritingMode() may change isOrthogonalWritingModeRoot(
) |
| 243 // of children. Make sure all children are marked/unmarked as orthogonal | 243 // of children. Make sure all children are marked/unmarked as orthogonal |
| 244 // writing-mode roots. | 244 // writing-mode roots. |
| 245 bool newHorizontalWritingMode = isHorizontalWritingMode(); | 245 bool newHorizontalWritingMode = isHorizontalWritingMode(); |
| 246 for (LayoutObject* child = slowFirstChild(); child; child = child->nextS
ibling()) { | 246 for (LayoutObject* child = slowFirstChild(); child; child = child->nextS
ibling()) { |
| 247 if (!child->isBox()) | 247 if (!child->isBox()) |
| 248 continue; | 248 continue; |
| 249 if (newHorizontalWritingMode != child->isHorizontalWritingMode()) | 249 if (newHorizontalWritingMode != child->isHorizontalWritingMode()) |
| 250 toLayoutBox(child)->markOrthogonalWritingModeRoot(); | 250 toLayoutBox(child)->markOrthogonalWritingModeRoot(); |
| 251 else | 251 else |
| 252 toLayoutBox(child)->unmarkOrthogonalWritingModeRoot(); | 252 toLayoutBox(child)->unmarkOrthogonalWritingModeRoot(); |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 if (rootElementStyle->hasBackground()) | 1079 if (rootElementStyle->hasBackground()) |
| 1080 return false; | 1080 return false; |
| 1081 | 1081 |
| 1082 if (node() != document().firstBodyElement()) | 1082 if (node() != document().firstBodyElement()) |
| 1083 return false; | 1083 return false; |
| 1084 | 1084 |
| 1085 return true; | 1085 return true; |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 } // namespace blink | 1088 } // namespace blink |
| OLD | NEW |