| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 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 Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 542 |
| 543 // The style recalc could have caused the styled node to be discarded or rep
laced | 543 // The style recalc could have caused the styled node to be discarded or rep
laced |
| 544 // if it was a PseudoElement so we need to update it. | 544 // if it was a PseudoElement so we need to update it. |
| 545 styledNode = this->styledNode(); | 545 styledNode = this->styledNode(); |
| 546 layoutObject = styledNode->layoutObject(); | 546 layoutObject = styledNode->layoutObject(); |
| 547 | 547 |
| 548 style = computeComputedStyle(); | 548 style = computeComputedStyle(); |
| 549 | 549 |
| 550 bool forceFullLayout = isLayoutDependent(propertyID, style, layoutObject) | 550 bool forceFullLayout = isLayoutDependent(propertyID, style, layoutObject) |
| 551 || styledNode->isInShadowTree() | 551 || styledNode->isInShadowTree() |
| 552 || (document.ownerElement() && document.ensureStyleResolver().hasViewpor
tDependentMediaQueries()); | 552 || (document.localOwnerElement() && document.ensureStyleResolver().hasVi
ewportDependentMediaQueries()); |
| 553 | 553 |
| 554 if (forceFullLayout) { | 554 if (forceFullLayout) { |
| 555 document.updateLayoutIgnorePendingStylesheetsForNode(styledNode); | 555 document.updateLayoutIgnorePendingStylesheetsForNode(styledNode); |
| 556 styledNode = this->styledNode(); | 556 styledNode = this->styledNode(); |
| 557 style = computeComputedStyle(); | 557 style = computeComputedStyle(); |
| 558 layoutObject = styledNode->layoutObject(); | 558 layoutObject = styledNode->layoutObject(); |
| 559 } | 559 } |
| 560 | 560 |
| 561 if (!style) | 561 if (!style) |
| 562 return nullptr; | 562 return nullptr; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 689 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
| 690 } | 690 } |
| 691 | 691 |
| 692 DEFINE_TRACE(CSSComputedStyleDeclaration) | 692 DEFINE_TRACE(CSSComputedStyleDeclaration) |
| 693 { | 693 { |
| 694 visitor->trace(m_node); | 694 visitor->trace(m_node); |
| 695 CSSStyleDeclaration::trace(visitor); | 695 CSSStyleDeclaration::trace(visitor); |
| 696 } | 696 } |
| 697 | 697 |
| 698 } // namespace blink | 698 } // namespace blink |
| OLD | NEW |