| 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, 2012 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights |
| 4 * reserved. | 4 * 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 case UnitType::CalcPercentageWithLengthAndNumber: | 585 case UnitType::CalcPercentageWithLengthAndNumber: |
| 586 break; | 586 break; |
| 587 }; | 587 }; |
| 588 ASSERT_NOT_REACHED(); | 588 ASSERT_NOT_REACHED(); |
| 589 return ""; | 589 return ""; |
| 590 } | 590 } |
| 591 | 591 |
| 592 String CSSPrimitiveValue::customCSSText() const { | 592 String CSSPrimitiveValue::customCSSText() const { |
| 593 if (m_hasCachedCSSText) { | 593 if (m_hasCachedCSSText) { |
| 594 ASSERT(cssTextCache().contains(this)); | 594 ASSERT(cssTextCache().contains(this)); |
| 595 return cssTextCache().get(this); | 595 return cssTextCache().at(this); |
| 596 } | 596 } |
| 597 | 597 |
| 598 String text; | 598 String text; |
| 599 switch (type()) { | 599 switch (type()) { |
| 600 case UnitType::Unknown: | 600 case UnitType::Unknown: |
| 601 // FIXME | 601 // FIXME |
| 602 break; | 602 break; |
| 603 case UnitType::Integer: | 603 case UnitType::Integer: |
| 604 text = String::format("%d", getIntValue()); | 604 text = String::format("%d", getIntValue()); |
| 605 break; | 605 break; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 case UnitType::Calc: | 708 case UnitType::Calc: |
| 709 visitor->trace(m_value.calc); | 709 visitor->trace(m_value.calc); |
| 710 break; | 710 break; |
| 711 default: | 711 default: |
| 712 break; | 712 break; |
| 713 } | 713 } |
| 714 CSSValue::traceAfterDispatch(visitor); | 714 CSSValue::traceAfterDispatch(visitor); |
| 715 } | 715 } |
| 716 | 716 |
| 717 } // namespace blink | 717 } // namespace blink |
| OLD | NEW |