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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 } | 396 } |
397 | 397 |
398 return result.toString(); | 398 return result.toString(); |
399 } | 399 } |
400 | 400 |
401 void CSSComputedStyleDeclaration::setCSSText(const String&, ExceptionState& exce
ptionState) | 401 void CSSComputedStyleDeclaration::setCSSText(const String&, ExceptionState& exce
ptionState) |
402 { | 402 { |
403 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore read-only."); | 403 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore read-only."); |
404 } | 404 } |
405 | 405 |
| 406 String CSSComputedStyleDeclaration::cssFloat() const |
| 407 { |
| 408 return getPropertyValue(CSSPropertyFloat); |
| 409 } |
| 410 |
| 411 void CSSComputedStyleDeclaration::setCSSFloat(const String&, ExceptionState& exc
eptionState) |
| 412 { |
| 413 } |
| 414 |
406 static CSSValueID cssIdentifierForFontSizeKeyword(int keywordSize) | 415 static CSSValueID cssIdentifierForFontSizeKeyword(int keywordSize) |
407 { | 416 { |
408 ASSERT_ARG(keywordSize, keywordSize); | 417 ASSERT_ARG(keywordSize, keywordSize); |
409 ASSERT_ARG(keywordSize, keywordSize <= 8); | 418 ASSERT_ARG(keywordSize, keywordSize <= 8); |
410 return static_cast<CSSValueID>(CSSValueXxSmall + keywordSize - 1); | 419 return static_cast<CSSValueID>(CSSValueXxSmall + keywordSize - 1); |
411 } | 420 } |
412 | 421 |
413 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedPixelValue(d
ouble value, const ComputedStyle& style) | 422 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedPixelValue(d
ouble value, const ComputedStyle& style) |
414 { | 423 { |
415 return cssValuePool().createValue(adjustFloatForAbsoluteZoom(value, style),
CSSPrimitiveValue::CSS_PX); | 424 return cssValuePool().createValue(adjustFloatForAbsoluteZoom(value, style),
CSSPrimitiveValue::CSS_PX); |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 701 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
693 } | 702 } |
694 | 703 |
695 DEFINE_TRACE(CSSComputedStyleDeclaration) | 704 DEFINE_TRACE(CSSComputedStyleDeclaration) |
696 { | 705 { |
697 visitor->trace(m_node); | 706 visitor->trace(m_node); |
698 CSSStyleDeclaration::trace(visitor); | 707 CSSStyleDeclaration::trace(visitor); |
699 } | 708 } |
700 | 709 |
701 } // namespace blink | 710 } // namespace blink |
OLD | NEW |