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

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

Issue 1405293012: [Variables] Enable get/setProperty and similar APIs from the CSSOM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CSSPropertyMetadata::isEnabledProperty Created 5 years, 1 month 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
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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu eInternal(CSSPropertyID propertyID) 670 PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu eInternal(CSSPropertyID propertyID)
671 { 671 {
672 return getPropertyCSSValue(propertyID); 672 return getPropertyCSSValue(propertyID);
673 } 673 }
674 674
675 String CSSComputedStyleDeclaration::getPropertyValueInternal(CSSPropertyID prope rtyID) 675 String CSSComputedStyleDeclaration::getPropertyValueInternal(CSSPropertyID prope rtyID)
676 { 676 {
677 return getPropertyValue(propertyID); 677 return getPropertyValue(propertyID);
678 } 678 }
679 679
680 void CSSComputedStyleDeclaration::setPropertyInternal(CSSPropertyID id, const St ring&, bool, ExceptionState& exceptionState) 680 void CSSComputedStyleDeclaration::setPropertyInternal(CSSPropertyID id, const St ring&, const String&, bool, ExceptionState& exceptionState)
681 { 681 {
682 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only."); 682 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only.");
Timothy Loh 2015/11/14 02:21:05 this might do something weird for custom propertie
leviw_travelin_and_unemployed 2015/11/17 01:25:07 Added a case for this to my test.
683 } 683 }
684 684
685 DEFINE_TRACE(CSSComputedStyleDeclaration) 685 DEFINE_TRACE(CSSComputedStyleDeclaration)
686 { 686 {
687 visitor->trace(m_node); 687 visitor->trace(m_node);
688 CSSStyleDeclaration::trace(visitor); 688 CSSStyleDeclaration::trace(visitor);
689 } 689 }
690 690
691 } // namespace blink 691 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698