| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 PassRefPtrWillBeRawPtr<MutableStylePropertySet> MutableStylePropertySet::create(
CSSParserMode cssParserMode) | 548 PassRefPtrWillBeRawPtr<MutableStylePropertySet> MutableStylePropertySet::create(
CSSParserMode cssParserMode) |
| 549 { | 549 { |
| 550 return adoptRefWillBeNoop(new MutableStylePropertySet(cssParserMode)); | 550 return adoptRefWillBeNoop(new MutableStylePropertySet(cssParserMode)); |
| 551 } | 551 } |
| 552 | 552 |
| 553 PassRefPtrWillBeRawPtr<MutableStylePropertySet> MutableStylePropertySet::create(
const CSSProperty* properties, unsigned count) | 553 PassRefPtrWillBeRawPtr<MutableStylePropertySet> MutableStylePropertySet::create(
const CSSProperty* properties, unsigned count) |
| 554 { | 554 { |
| 555 return adoptRefWillBeNoop(new MutableStylePropertySet(properties, count)); | 555 return adoptRefWillBeNoop(new MutableStylePropertySet(properties, count)); |
| 556 } | 556 } |
| 557 | 557 |
| 558 String StylePropertySet::PropertyReference::cssName() const | |
| 559 { | |
| 560 return getPropertyNameString(id()); | |
| 561 } | |
| 562 | |
| 563 String StylePropertySet::PropertyReference::cssText() const | |
| 564 { | |
| 565 StringBuilder result; | |
| 566 result.append(cssName()); | |
| 567 result.appendLiteral(": "); | |
| 568 result.append(propertyValue()->cssText()); | |
| 569 if (isImportant()) | |
| 570 result.appendLiteral(" !important"); | |
| 571 result.append(';'); | |
| 572 return result.toString(); | |
| 573 } | |
| 574 | |
| 575 | |
| 576 } // namespace blink | 558 } // namespace blink |
| OLD | NEW |