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, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 } | 298 } |
299 setNeedsLayoutAndPrefWidthsRecalc(); | 299 setNeedsLayoutAndPrefWidthsRecalc(); |
300 } | 300 } |
301 | 301 |
302 frame()->view()->recalculateScrollbarOverlayStyle(); | 302 frame()->view()->recalculateScrollbarOverlayStyle(); |
303 } | 303 } |
304 | 304 |
305 #if ENABLE(CSS_EXCLUSIONS) | 305 #if ENABLE(CSS_EXCLUSIONS) |
306 updateExclusionShapeOutsideInfoAfterStyleChange(style()->shapeOutside(), old
Style ? oldStyle->shapeOutside() : 0); | 306 updateExclusionShapeOutsideInfoAfterStyleChange(style()->shapeOutside(), old
Style ? oldStyle->shapeOutside() : 0); |
307 #endif | 307 #endif |
308 | |
309 if (oldStyle && (newStyle->boxSizing() == BORDER_BOX || oldStyle->boxSizing(
) == BORDER_BOX) | |
310 && (newStyle->paddingBox() != oldStyle->paddingBox() || newStyle->border
() != oldStyle->border())) { | |
311 for (RenderObject* child = firstChild(); child; child = child->nextSibli
ng()) | |
312 child->setChildNeedsLayout(true, MarkOnlyThis); | |
313 } | |
314 } | 308 } |
315 | 309 |
316 #if ENABLE(CSS_EXCLUSIONS) | 310 #if ENABLE(CSS_EXCLUSIONS) |
317 void RenderBox::updateExclusionShapeOutsideInfoAfterStyleChange(const ExclusionS
hapeValue* shapeOutside, const ExclusionShapeValue* oldShapeOutside) | 311 void RenderBox::updateExclusionShapeOutsideInfoAfterStyleChange(const ExclusionS
hapeValue* shapeOutside, const ExclusionShapeValue* oldShapeOutside) |
318 { | 312 { |
319 // FIXME: A future optimization would do a deep comparison for equality. (bu
g 100811) | 313 // FIXME: A future optimization would do a deep comparison for equality. (bu
g 100811) |
320 if (shapeOutside == oldShapeOutside) | 314 if (shapeOutside == oldShapeOutside) |
321 return; | 315 return; |
322 | 316 |
323 if (shapeOutside) { | 317 if (shapeOutside) { |
(...skipping 4131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4455 | 4449 |
4456 void RenderBox::reportStaticMembersMemoryUsage(MemoryInstrumentation* memoryInst
rumentation) | 4450 void RenderBox::reportStaticMembersMemoryUsage(MemoryInstrumentation* memoryInst
rumentation) |
4457 { | 4451 { |
4458 memoryInstrumentation->addRootObject(gOverrideHeightMap, WebCoreMemoryTypes:
:RenderingStructures); | 4452 memoryInstrumentation->addRootObject(gOverrideHeightMap, WebCoreMemoryTypes:
:RenderingStructures); |
4459 memoryInstrumentation->addRootObject(gOverrideWidthMap, WebCoreMemoryTypes::
RenderingStructures); | 4453 memoryInstrumentation->addRootObject(gOverrideWidthMap, WebCoreMemoryTypes::
RenderingStructures); |
4460 memoryInstrumentation->addRootObject(gOverrideContainingBlockLogicalHeightMa
p, WebCoreMemoryTypes::RenderingStructures); | 4454 memoryInstrumentation->addRootObject(gOverrideContainingBlockLogicalHeightMa
p, WebCoreMemoryTypes::RenderingStructures); |
4461 memoryInstrumentation->addRootObject(gOverrideContainingBlockLogicalWidthMap
, WebCoreMemoryTypes::RenderingStructures); | 4455 memoryInstrumentation->addRootObject(gOverrideContainingBlockLogicalWidthMap
, WebCoreMemoryTypes::RenderingStructures); |
4462 } | 4456 } |
4463 | 4457 |
4464 } // namespace WebCore | 4458 } // namespace WebCore |
OLD | NEW |