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

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

Issue 1949343002: [Obsolete] Typed CSSOM: Prefix LengthValue, CalcLength and SimpleLength with "CSS" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename layout test files Created 4 years, 7 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
OLDNEW
1 // Copyright 2016 the chromium authors. All rights reserved. 1 // Copyright 2016 the chromium authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/cssom/StylePropertyMap.h" 5 #include "core/css/cssom/StylePropertyMap.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/css/cssom/SimpleLength.h" 8 #include "core/css/cssom/CSSSimpleLength.h"
9 #include "core/css/cssom/StyleValue.h" 9 #include "core/css/cssom/StyleValue.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 StyleValue* StylePropertyMap::get(const String& propertyName, ExceptionState& ex ceptionState) 13 StyleValue* StylePropertyMap::get(const String& propertyName, ExceptionState& ex ceptionState)
14 { 14 {
15 CSSPropertyID propertyID = cssPropertyID(propertyName); 15 CSSPropertyID propertyID = cssPropertyID(propertyName);
16 if (propertyID != CSSPropertyInvalid) 16 if (propertyID != CSSPropertyInvalid)
17 return get(propertyID); 17 return get(propertyID);
18 18
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 CSSPropertyID propertyID = cssPropertyID(propertyName); 70 CSSPropertyID propertyID = cssPropertyID(propertyName);
71 if (propertyID != CSSPropertyInvalid) { 71 if (propertyID != CSSPropertyInvalid) {
72 remove(propertyID, exceptionState); 72 remove(propertyID, exceptionState);
73 return; 73 return;
74 } 74 }
75 // TODO(meade): Handle custom properties here. 75 // TODO(meade): Handle custom properties here.
76 exceptionState.throwTypeError("Invalid propertyName: " + propertyName); 76 exceptionState.throwTypeError("Invalid propertyName: " + propertyName);
77 } 77 }
78 78
79 } // namespace blink 79 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698