| 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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2988 | 2988 |
| 2989 UniqueElementData::UniqueElementData() | 2989 UniqueElementData::UniqueElementData() |
| 2990 { | 2990 { |
| 2991 } | 2991 } |
| 2992 | 2992 |
| 2993 UniqueElementData::UniqueElementData(const UniqueElementData& other) | 2993 UniqueElementData::UniqueElementData(const UniqueElementData& other) |
| 2994 : ElementData(other, true) | 2994 : ElementData(other, true) |
| 2995 , m_presentationAttributeStyle(other.m_presentationAttributeStyle) | 2995 , m_presentationAttributeStyle(other.m_presentationAttributeStyle) |
| 2996 , m_attributeVector(other.m_attributeVector) | 2996 , m_attributeVector(other.m_attributeVector) |
| 2997 { | 2997 { |
| 2998 m_inlineStyle = other.m_inlineStyle ? other.m_inlineStyle->copy() : 0; | 2998 m_inlineStyle = other.m_inlineStyle ? other.m_inlineStyle->mutableCopy() : 0
; |
| 2999 } | 2999 } |
| 3000 | 3000 |
| 3001 UniqueElementData::UniqueElementData(const ShareableElementData& other) | 3001 UniqueElementData::UniqueElementData(const ShareableElementData& other) |
| 3002 : ElementData(other, true) | 3002 : ElementData(other, true) |
| 3003 { | 3003 { |
| 3004 // An ShareableElementData should never have a mutable inline StylePropertyS
et attached. | 3004 // An ShareableElementData should never have a mutable inline StylePropertyS
et attached. |
| 3005 ASSERT(!other.m_inlineStyle || !other.m_inlineStyle->isMutable()); | 3005 ASSERT(!other.m_inlineStyle || !other.m_inlineStyle->isMutable()); |
| 3006 m_inlineStyle = other.m_inlineStyle; | 3006 m_inlineStyle = other.m_inlineStyle; |
| 3007 | 3007 |
| 3008 m_attributeVector.reserveCapacity(other.length()); | 3008 m_attributeVector.reserveCapacity(other.length()); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3107 return 0; | 3107 return 0; |
| 3108 } | 3108 } |
| 3109 | 3109 |
| 3110 Attribute* UniqueElementData::attributeItem(unsigned index) | 3110 Attribute* UniqueElementData::attributeItem(unsigned index) |
| 3111 { | 3111 { |
| 3112 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3112 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
| 3113 return &m_attributeVector.at(index); | 3113 return &m_attributeVector.at(index); |
| 3114 } | 3114 } |
| 3115 | 3115 |
| 3116 } // namespace WebCore | 3116 } // namespace WebCore |
| OLD | NEW |