| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 419 |
| 420 void StyleRuleRegion::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const | 420 void StyleRuleRegion::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const |
| 421 { | 421 { |
| 422 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 422 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 423 info.addMember(m_selectorList, "selectorList"); | 423 info.addMember(m_selectorList, "selectorList"); |
| 424 } | 424 } |
| 425 | 425 |
| 426 StyleRuleViewport::StyleRuleViewport() | 426 StyleRuleViewport::StyleRuleViewport() |
| 427 : StyleRuleBase(Viewport, 0) | 427 : StyleRuleBase(Viewport, 0) |
| 428 { | 428 { |
| 429 ASSERT(RuntimeEnabledFeatures::cssViewportEnabled()); | |
| 430 } | 429 } |
| 431 | 430 |
| 432 StyleRuleViewport::StyleRuleViewport(const StyleRuleViewport& o) | 431 StyleRuleViewport::StyleRuleViewport(const StyleRuleViewport& o) |
| 433 : StyleRuleBase(o) | 432 : StyleRuleBase(o) |
| 434 , m_properties(o.m_properties->mutableCopy()) | 433 , m_properties(o.m_properties->mutableCopy()) |
| 435 { | 434 { |
| 436 ASSERT(RuntimeEnabledFeatures::cssViewportEnabled()); | |
| 437 } | 435 } |
| 438 | 436 |
| 439 StyleRuleViewport::~StyleRuleViewport() | 437 StyleRuleViewport::~StyleRuleViewport() |
| 440 { | 438 { |
| 441 } | 439 } |
| 442 | 440 |
| 443 MutableStylePropertySet* StyleRuleViewport::mutableProperties() | 441 MutableStylePropertySet* StyleRuleViewport::mutableProperties() |
| 444 { | 442 { |
| 445 if (!m_properties->isMutable()) | 443 if (!m_properties->isMutable()) |
| 446 m_properties = m_properties->mutableCopy(); | 444 m_properties = m_properties->mutableCopy(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 } | 486 } |
| 489 | 487 |
| 490 void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const | 488 void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const |
| 491 { | 489 { |
| 492 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 490 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 493 info.addMember(m_filterName); | 491 info.addMember(m_filterName); |
| 494 info.addMember(m_properties); | 492 info.addMember(m_properties); |
| 495 } | 493 } |
| 496 | 494 |
| 497 } // namespace WebCore | 495 } // namespace WebCore |
| OLD | NEW |