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

Side by Side Diff: Source/core/svg/SVGIntegerOptionalInteger.cpp

Issue 803443002: Introduce InlinedGlobalMarkingVisitor Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/svg/SVGIntegerOptionalInteger.h ('k') | Source/core/svg/SVGLength.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 SVGIntegerOptionalInteger::SVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGI nteger> firstInteger, PassRefPtrWillBeRawPtr<SVGInteger> secondInteger) 39 SVGIntegerOptionalInteger::SVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGI nteger> firstInteger, PassRefPtrWillBeRawPtr<SVGInteger> secondInteger)
40 : SVGPropertyBase(classType()) 40 : SVGPropertyBase(classType())
41 , m_firstInteger(firstInteger) 41 , m_firstInteger(firstInteger)
42 , m_secondInteger(secondInteger) 42 , m_secondInteger(secondInteger)
43 { 43 {
44 } 44 }
45 45
46 void SVGIntegerOptionalInteger::trace(Visitor* visitor) 46 DEFINE_TRACE(SVGIntegerOptionalInteger)
47 { 47 {
48 visitor->trace(m_firstInteger); 48 visitor->trace(m_firstInteger);
49 visitor->trace(m_secondInteger); 49 visitor->trace(m_secondInteger);
50 SVGPropertyBase::trace(visitor); 50 SVGPropertyBase::trace(visitor);
51 } 51 }
52 52
53 PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> SVGIntegerOptionalInteger::clo ne() const 53 PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> SVGIntegerOptionalInteger::clo ne() const
54 { 54 {
55 return SVGIntegerOptionalInteger::create(m_firstInteger->clone(), m_secondIn teger->clone()); 55 return SVGIntegerOptionalInteger::create(m_firstInteger->clone(), m_secondIn teger->clone());
56 } 56 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 m_secondInteger->setValue(static_cast<int>(roundf(y))); 113 m_secondInteger->setValue(static_cast<int>(roundf(y)));
114 } 114 }
115 115
116 float SVGIntegerOptionalInteger::calculateDistance(PassRefPtrWillBeRawPtr<SVGPro pertyBase> other, SVGElement*) 116 float SVGIntegerOptionalInteger::calculateDistance(PassRefPtrWillBeRawPtr<SVGPro pertyBase> other, SVGElement*)
117 { 117 {
118 // FIXME: Distance calculation is not possible for SVGIntegerOptionalInteger right now. We need the distance for every single value. 118 // FIXME: Distance calculation is not possible for SVGIntegerOptionalInteger right now. We need the distance for every single value.
119 return -1; 119 return -1;
120 } 120 }
121 121
122 } 122 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGIntegerOptionalInteger.h ('k') | Source/core/svg/SVGLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698