Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 1113013002: CSSStyleDeclaration.cssFloat is not enumerated property (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.h ('k') | Source/core/css/CSSStyleDeclaration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.h ('k') | Source/core/css/CSSStyleDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698