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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1690493002: Switch to LayoutThemeMobile when emulating mobile device in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed the flag Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 private: 351 private:
352 ALWAYS_INLINE ComputedStyle(); 352 ALWAYS_INLINE ComputedStyle();
353 353
354 enum InitialStyleTag { 354 enum InitialStyleTag {
355 InitialStyle 355 InitialStyle
356 }; 356 };
357 ALWAYS_INLINE explicit ComputedStyle(InitialStyleTag); 357 ALWAYS_INLINE explicit ComputedStyle(InitialStyleTag);
358 ALWAYS_INLINE ComputedStyle(const ComputedStyle&); 358 ALWAYS_INLINE ComputedStyle(const ComputedStyle&);
359 359
360 static PassRefPtr<ComputedStyle> createInitialStyle(); 360 static PassRefPtr<ComputedStyle> createInitialStyle();
361 static inline ComputedStyle* initialStyle() 361 static inline ComputedStyle* initialStyle() { return *initialStylePointer(); }
362 static inline ComputedStyle** initialStylePointer()
362 { 363 {
363 LEAK_SANITIZER_DISABLED_SCOPE; 364 LEAK_SANITIZER_DISABLED_SCOPE;
364 DEFINE_STATIC_REF(ComputedStyle, s_initialStyle, (ComputedStyle::createI nitialStyle())); 365 DEFINE_STATIC_REF(ComputedStyle, s_initialStyle, (ComputedStyle::createI nitialStyle()));
365 return s_initialStyle; 366 return &s_initialStyle;
366 } 367 }
367 368
368 public: 369 public:
369 static PassRefPtr<ComputedStyle> create(); 370 static PassRefPtr<ComputedStyle> create();
370 static PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const Compu tedStyle& parentStyle, EDisplay); 371 static PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const Compu tedStyle& parentStyle, EDisplay);
371 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&); 372 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&);
373 static void clearInitialStyle();
372 374
373 // Computes how the style change should be propagated down the tree. 375 // Computes how the style change should be propagated down the tree.
374 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle); 376 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle);
375 377
376 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa ta& normalValueBehavior) const; 378 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa ta& normalValueBehavior) const;
377 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const; 379 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten tAlignmentData& normalValueBehavior) const;
378 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const; 380 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData & normalValueBehavior) const;
379 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const; 381 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA lignmentData& normalValueBehavior) const;
380 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt yle, ItemPosition resolvedAutoPositionForLayoutObject) const; 382 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt yle, ItemPosition resolvedAutoPositionForLayoutObject) const;
381 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject); 383 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject);
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 } 2027 }
2026 2028
2027 inline bool ComputedStyle::hasPseudoElementStyle() const 2029 inline bool ComputedStyle::hasPseudoElementStyle() const
2028 { 2030 {
2029 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2031 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2030 } 2032 }
2031 2033
2032 } // namespace blink 2034 } // namespace blink
2033 2035
2034 #endif // ComputedStyle_h 2036 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698