Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
| 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
| 9 * Copyright (C) 2012 Google Inc. | 9 * Copyright (C) 2012 Google Inc. |
| 10 * | 10 * |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 ASSERT(!m_needsPositioningValuesUpdate); | 231 ASSERT(!m_needsPositioningValuesUpdate); |
| 232 m_needsTextMetricsUpdate = false; | 232 m_needsTextMetricsUpdate = false; |
| 233 updateCachedBoundariesInParents = true; | 233 updateCachedBoundariesInParents = true; |
| 234 } | 234 } |
| 235 | 235 |
| 236 checkLayoutAttributesConsistency(this, m_layoutAttributes); | 236 checkLayoutAttributesConsistency(this, m_layoutAttributes); |
| 237 | 237 |
| 238 // Reduced version of LayoutBlock::layoutBlock(), which only takes care of S VG text. | 238 // Reduced version of LayoutBlock::layoutBlock(), which only takes care of S VG text. |
| 239 // All if branches that could cause early exit in LayoutBlocks layoutBlock() method are turned into assertions. | 239 // All if branches that could cause early exit in LayoutBlocks layoutBlock() method are turned into assertions. |
| 240 ASSERT(!isInline()); | 240 ASSERT(!isInline()); |
| 241 ASSERT(!simplifiedLayout()); | 241 ASSERT(!simplifiedLayout(nullptr)); |
|
cbiesinger
2016/04/15 17:08:08
I don't really know much about SVG but this seems
kojii
2016/04/15 17:58:44
By "weird" do you mean the original code is weird
| |
| 242 ASSERT(!scrollsOverflow()); | 242 ASSERT(!scrollsOverflow()); |
| 243 ASSERT(!hasControlClip()); | 243 ASSERT(!hasControlClip()); |
| 244 ASSERT(!positionedObjects()); | 244 ASSERT(!positionedObjects()); |
| 245 ASSERT(!isAnonymousBlock()); | 245 ASSERT(!isAnonymousBlock()); |
| 246 | 246 |
| 247 if (!firstChild()) | 247 if (!firstChild()) |
| 248 setChildrenInline(true); | 248 setChildrenInline(true); |
| 249 | 249 |
| 250 // FIXME: We need to find a way to only layout the child boxes, if needed. | 250 // FIXME: We need to find a way to only layout the child boxes, if needed. |
| 251 FloatRect oldBoundaries = objectBoundingBox(); | 251 FloatRect oldBoundaries = objectBoundingBox(); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); | 417 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); |
| 418 | 418 |
| 419 if (reason == PaintInvalidationSVGResourceChange) | 419 if (reason == PaintInvalidationSVGResourceChange) |
| 420 newPaintInvalidationState.setForceSubtreeInvalidationWithinContainer(); | 420 newPaintInvalidationState.setForceSubtreeInvalidationWithinContainer(); |
| 421 | 421 |
| 422 newPaintInvalidationState.updateForChildren(); | 422 newPaintInvalidationState.updateForChildren(); |
| 423 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); | 423 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); |
| 424 } | 424 } |
| 425 | 425 |
| 426 } // namespace blink | 426 } // namespace blink |
| OLD | NEW |