| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 // SVG text layout code expects us to be a block-level style element. | 505 // SVG text layout code expects us to be a block-level style element. |
| 506 if ((isSVGForeignObjectElement(*element) || isSVGTextElement(*element)) && | 506 if ((isSVGForeignObjectElement(*element) || isSVGTextElement(*element)) && |
| 507 style.IsDisplayInlineType()) | 507 style.IsDisplayInlineType()) |
| 508 style.SetDisplay(EDisplay::kBlock); | 508 style.SetDisplay(EDisplay::kBlock); |
| 509 | 509 |
| 510 // Columns don't apply to svg text elements. | 510 // Columns don't apply to svg text elements. |
| 511 if (isSVGTextElement(*element)) | 511 if (isSVGTextElement(*element)) |
| 512 style.ClearMultiCol(); | 512 style.ClearMultiCol(); |
| 513 } | 513 } |
| 514 AdjustStyleForAlignment(style, layout_parent_style); | 514 AdjustStyleForAlignment(style, layout_parent_style); |
| 515 |
| 516 // If this node is sticky it marks the creation of a sticky subtree, which we |
| 517 // must track to properly handle document lifecycle in some cases. |
| 518 // |
| 519 // It is possible that this node is already in a sticky subtree (i.e. we have |
| 520 // nested sticky nodes) - in that case the bit will already be set via |
| 521 // inheritance from the ancestor and there is no harm to setting it again. |
| 522 if (style.GetPosition() == EPosition::kSticky) |
| 523 style.SetSubtreeIsSticky(true); |
| 515 } | 524 } |
| 516 | 525 |
| 517 } // namespace blink | 526 } // namespace blink |
| OLD | NEW |