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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Sending for Bugs' input Created 4 years, 3 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 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 const FillLayer& maskLayers() const { return m_rareNonInheritedData->m_mask; } 1831 const FillLayer& maskLayers() const { return m_rareNonInheritedData->m_mask; }
1832 const NinePieceImage& maskBoxImage() const { return m_rareNonInheritedData-> m_maskBoxImage; } 1832 const NinePieceImage& maskBoxImage() const { return m_rareNonInheritedData-> m_maskBoxImage; }
1833 bool maskBoxImageSlicesFill() const { return m_rareNonInheritedData->m_maskB oxImage.fill(); } 1833 bool maskBoxImageSlicesFill() const { return m_rareNonInheritedData->m_maskB oxImage.fill(); }
1834 void adjustMaskLayers() 1834 void adjustMaskLayers()
1835 { 1835 {
1836 if (maskLayers().next()) { 1836 if (maskLayers().next()) {
1837 accessMaskLayers().cullEmptyLayers(); 1837 accessMaskLayers().cullEmptyLayers();
1838 accessMaskLayers().fillUnsetProperties(); 1838 accessMaskLayers().fillUnsetProperties();
1839 } 1839 }
1840 } 1840 }
1841
1842 bool hasImage();
1843
1841 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(m_rareNonInheritedDa ta, m_maskBoxImage, b); } 1844 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(m_rareNonInheritedDa ta, m_maskBoxImage, b); }
1842 void setMaskBoxImageSlicesFill(bool fill) 1845 void setMaskBoxImageSlicesFill(bool fill)
1843 { 1846 {
1844 m_rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); 1847 m_rareNonInheritedData.access()->m_maskBoxImage.setFill(fill);
1845 } 1848 }
1846 1849
1847 // Text-combine utility functions. 1850 // Text-combine utility functions.
1848 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; } 1851 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; }
1849 1852
1850 // Grid utility functions. 1853 // Grid utility functions.
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 } 2567 }
2565 2568
2566 inline bool ComputedStyle::hasPseudoElementStyle() const 2569 inline bool ComputedStyle::hasPseudoElementStyle() const
2567 { 2570 {
2568 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2571 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2569 } 2572 }
2570 2573
2571 } // namespace blink 2574 } // namespace blink
2572 2575
2573 #endif // ComputedStyle_h 2576 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698