forked from mirrors/gecko-dev
		
	 0598921a5f
			
		
	
	
		0598921a5f
		
	
	
	
	
		
			
			Extract CSSFontFeatureValuesRule from nsCSSFontFeatureValuesRule class. This is necessary because we will create a FontFeatureValues rule for Servo side. MozReview-Commit-ID: GKy5wa6JLv9 --HG-- extra : rebase_source : 015f13da9a776c4ece8aa13655395afbb347b870
		
			
				
	
	
		
			51 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 | |
| /* vim: set ts=8 sts=2 et sw=2 tw=80: */
 | |
| /* This Source Code Form is subject to the terms of the Mozilla Public
 | |
|  * License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | |
| 
 | |
| #include "mozilla/dom/CSSFontFeatureValuesRule.h"
 | |
| #include "mozilla/dom/CSSFontFeatureValuesRuleBinding.h"
 | |
| 
 | |
| namespace mozilla {
 | |
| namespace dom {
 | |
| 
 | |
| NS_IMPL_ADDREF_INHERITED(CSSFontFeatureValuesRule, css::Rule)
 | |
| NS_IMPL_RELEASE_INHERITED(CSSFontFeatureValuesRule, css::Rule)
 | |
| 
 | |
| // QueryInterface implementation for CSSFontFeatureValuesRule
 | |
| // If this ever gets its own cycle-collection bits, reevaluate our IsCCLeaf
 | |
| // implementation.
 | |
| NS_INTERFACE_MAP_BEGIN(CSSFontFeatureValuesRule)
 | |
|   NS_INTERFACE_MAP_ENTRY(nsIDOMCSSFontFeatureValuesRule)
 | |
| NS_INTERFACE_MAP_END_INHERITING(mozilla::css::Rule)
 | |
| 
 | |
| void
 | |
| CSSFontFeatureValuesRule::SetFontFamily(const nsAString& aFamily,
 | |
|                                               ErrorResult& aRv)
 | |
| {
 | |
|   aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
 | |
| }
 | |
| 
 | |
| void
 | |
| CSSFontFeatureValuesRule::SetValueText(const nsAString& aFamily,
 | |
|                                              ErrorResult& aRv)
 | |
| {
 | |
|   aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
 | |
| }
 | |
| 
 | |
| bool
 | |
| CSSFontFeatureValuesRule::IsCCLeaf() const
 | |
| {
 | |
|   return Rule::IsCCLeaf();
 | |
| }
 | |
| 
 | |
| /* virtual */ JSObject*
 | |
| CSSFontFeatureValuesRule::WrapObject(JSContext* aCx,
 | |
|                                        JS::Handle<JSObject*> aGivenProto)
 | |
| {
 | |
|   return CSSFontFeatureValuesRuleBinding::Wrap(aCx, this, aGivenProto);
 | |
| }
 | |
| 
 | |
| } // namespace dom
 | |
| } // namespace mozilla
 |