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

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

Issue 170283019: Change various helper classes to transition types to get CSSValue entirely onto the gc heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 void StyleRuleGroup::wrapperInsertRule(unsigned index, PassRefPtr<StyleRuleBase> rule) 352 void StyleRuleGroup::wrapperInsertRule(unsigned index, PassRefPtr<StyleRuleBase> rule)
353 { 353 {
354 m_childRules.insert(index, rule); 354 m_childRules.insert(index, rule);
355 } 355 }
356 356
357 void StyleRuleGroup::wrapperRemoveRule(unsigned index) 357 void StyleRuleGroup::wrapperRemoveRule(unsigned index)
358 { 358 {
359 m_childRules.remove(index); 359 m_childRules.remove(index);
360 } 360 }
361 361
362 StyleRuleMedia::StyleRuleMedia(PassRefPtr<MediaQuerySet> media, Vector<RefPtr<St yleRuleBase> >& adoptRules) 362 StyleRuleMedia::StyleRuleMedia(PassRefPtrWillBeRawPtr<MediaQuerySet> media, Vect or<RefPtr<StyleRuleBase> >& adoptRules)
363 : StyleRuleGroup(Media, adoptRules) 363 : StyleRuleGroup(Media, adoptRules)
364 , m_mediaQueries(media) 364 , m_mediaQueries(media)
365 { 365 {
366 } 366 }
367 367
368 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o) 368 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o)
369 : StyleRuleGroup(o) 369 : StyleRuleGroup(o)
370 { 370 {
371 if (o.m_mediaQueries) 371 if (o.m_mediaQueries)
372 m_mediaQueries = o.m_mediaQueries->copy(); 372 m_mediaQueries = o.m_mediaQueries->copy();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 m_properties = m_properties->mutableCopy(); 436 m_properties = m_properties->mutableCopy();
437 return toMutableStylePropertySet(m_properties); 437 return toMutableStylePropertySet(m_properties);
438 } 438 }
439 439
440 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) 440 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties)
441 { 441 {
442 m_properties = properties; 442 m_properties = properties;
443 } 443 }
444 444
445 } // namespace WebCore 445 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698