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

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

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 StyleRuleRegion::StyleRuleRegion(const StyleRuleRegion& o) 335 StyleRuleRegion::StyleRuleRegion(const StyleRuleRegion& o)
336 : StyleRuleGroup(o) 336 : StyleRuleGroup(o)
337 , m_selectorList(o.m_selectorList) 337 , m_selectorList(o.m_selectorList)
338 { 338 {
339 ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled()); 339 ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled());
340 } 340 }
341 341
342 StyleRuleViewport::StyleRuleViewport() 342 StyleRuleViewport::StyleRuleViewport()
343 : StyleRuleBase(Viewport) 343 : StyleRuleBase(Viewport)
344 { 344 {
345 ASSERT(RuntimeEnabledFeatures::cssViewportEnabled());
346 } 345 }
347 346
348 StyleRuleViewport::StyleRuleViewport(const StyleRuleViewport& o) 347 StyleRuleViewport::StyleRuleViewport(const StyleRuleViewport& o)
349 : StyleRuleBase(o) 348 : StyleRuleBase(o)
350 , m_properties(o.m_properties->mutableCopy()) 349 , m_properties(o.m_properties->mutableCopy())
351 { 350 {
352 ASSERT(RuntimeEnabledFeatures::cssViewportEnabled());
353 } 351 }
354 352
355 StyleRuleViewport::~StyleRuleViewport() 353 StyleRuleViewport::~StyleRuleViewport()
356 { 354 {
357 } 355 }
358 356
359 MutableStylePropertySet* StyleRuleViewport::mutableProperties() 357 MutableStylePropertySet* StyleRuleViewport::mutableProperties()
360 { 358 {
361 if (!m_properties->isMutable()) 359 if (!m_properties->isMutable())
362 m_properties = m_properties->mutableCopy(); 360 m_properties = m_properties->mutableCopy();
(...skipping 28 matching lines...) Expand all
391 m_properties = m_properties->mutableCopy(); 389 m_properties = m_properties->mutableCopy();
392 return static_cast<MutableStylePropertySet*>(m_properties.get()); 390 return static_cast<MutableStylePropertySet*>(m_properties.get());
393 } 391 }
394 392
395 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) 393 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties)
396 { 394 {
397 m_properties = properties; 395 m_properties = properties;
398 } 396 }
399 397
400 } // namespace WebCore 398 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698