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

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: Send over for review 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 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 const FillLayer& maskLayers() const { return m_rareNonInheritedData->m_mask; } 1882 const FillLayer& maskLayers() const { return m_rareNonInheritedData->m_mask; }
1883 const NinePieceImage& maskBoxImage() const { return m_rareNonInheritedData-> m_maskBoxImage; } 1883 const NinePieceImage& maskBoxImage() const { return m_rareNonInheritedData-> m_maskBoxImage; }
1884 bool maskBoxImageSlicesFill() const { return m_rareNonInheritedData->m_maskB oxImage.fill(); } 1884 bool maskBoxImageSlicesFill() const { return m_rareNonInheritedData->m_maskB oxImage.fill(); }
1885 void adjustMaskLayers() 1885 void adjustMaskLayers()
1886 { 1886 {
1887 if (maskLayers().next()) { 1887 if (maskLayers().next()) {
1888 accessMaskLayers().cullEmptyLayers(); 1888 accessMaskLayers().cullEmptyLayers();
1889 accessMaskLayers().fillUnsetProperties(); 1889 accessMaskLayers().fillUnsetProperties();
1890 } 1890 }
1891 } 1891 }
1892
1893 bool hasImage();
1894
1892 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(m_rareNonInheritedDa ta, m_maskBoxImage, b); } 1895 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(m_rareNonInheritedDa ta, m_maskBoxImage, b); }
1893 void setMaskBoxImageSlicesFill(bool fill) 1896 void setMaskBoxImageSlicesFill(bool fill)
1894 { 1897 {
1895 m_rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); 1898 m_rareNonInheritedData.access()->m_maskBoxImage.setFill(fill);
1896 } 1899 }
1897 1900
1898 // Text-combine utility functions. 1901 // Text-combine utility functions.
1899 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; } 1902 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; }
1900 1903
1901 // Grid utility functions. 1904 // Grid utility functions.
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 } 2618 }
2616 2619
2617 inline bool ComputedStyle::hasPseudoElementStyle() const 2620 inline bool ComputedStyle::hasPseudoElementStyle() const
2618 { 2621 {
2619 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2622 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2620 } 2623 }
2621 2624
2622 } // namespace blink 2625 } // namespace blink
2623 2626
2624 #endif // ComputedStyle_h 2627 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698