| OLD | NEW |
| 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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2310 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out | 2310 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out |
| 2311 // along the block axis. | 2311 // along the block axis. |
| 2312 if (isOverflowPaged()) | 2312 if (isOverflowPaged()) |
| 2313 return (overflowY() == OverflowPagedX) == isHorizontalWritingMode(); | 2313 return (overflowY() == OverflowPagedX) == isHorizontalWritingMode(); |
| 2314 return false; | 2314 return false; |
| 2315 } | 2315 } |
| 2316 | 2316 |
| 2317 // Border utility functions. | 2317 // Border utility functions. |
| 2318 bool borderObscuresBackground() const; | 2318 bool borderObscuresBackground() const; |
| 2319 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; | 2319 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; |
| 2320 |
| 2320 bool hasBoxDecorations() const | 2321 bool hasBoxDecorations() const |
| 2321 { | 2322 { |
| 2322 return hasBorderDecoration() | 2323 return hasBorderDecoration() |
| 2323 || hasBorderRadius() | 2324 || hasBorderRadius() |
| 2324 || hasOutline() | 2325 || hasOutline() |
| 2325 || hasAppearance() | 2326 || hasAppearance() |
| 2326 || boxShadow() | 2327 || boxShadow() |
| 2327 || hasFilterInducingProperty() | 2328 || hasFilterInducingProperty() |
| 2328 || hasBackdropFilter() | 2329 || hasBackdropFilter() |
| 2329 || resize() != RESIZE_NONE; | 2330 || resize() != RESIZE_NONE; |
| 2330 } | 2331 } |
| 2331 | 2332 |
| 2333 // "Box decoration background" includes all box decorations and backgrounds |
| 2334 // that are painted as the background of the object. It includes borders, |
| 2335 // box-shadows, background-color and background-image, etc. |
| 2336 bool hasBoxDecorationBackground() const |
| 2337 { |
| 2338 return hasBackground() || hasBorderDecoration() || hasAppearance() || bo
xShadow(); |
| 2339 } |
| 2340 |
| 2332 // Background utility functions. | 2341 // Background utility functions. |
| 2333 FillLayer& accessBackgroundLayers() { return m_background.access()->m_backgr
ound; } | 2342 FillLayer& accessBackgroundLayers() { return m_background.access()->m_backgr
ound; } |
| 2334 const FillLayer& backgroundLayers() const { return m_background->background(
); } | 2343 const FillLayer& backgroundLayers() const { return m_background->background(
); } |
| 2335 void adjustBackgroundLayers() | 2344 void adjustBackgroundLayers() |
| 2336 { | 2345 { |
| 2337 if (backgroundLayers().next()) { | 2346 if (backgroundLayers().next()) { |
| 2338 accessBackgroundLayers().cullEmptyLayers(); | 2347 accessBackgroundLayers().cullEmptyLayers(); |
| 2339 accessBackgroundLayers().fillUnsetProperties(); | 2348 accessBackgroundLayers().fillUnsetProperties(); |
| 2340 } | 2349 } |
| 2341 } | 2350 } |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 } | 2563 } |
| 2555 | 2564 |
| 2556 inline bool ComputedStyle::hasPseudoElementStyle() const | 2565 inline bool ComputedStyle::hasPseudoElementStyle() const |
| 2557 { | 2566 { |
| 2558 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 2567 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
| 2559 } | 2568 } |
| 2560 | 2569 |
| 2561 } // namespace blink | 2570 } // namespace blink |
| 2562 | 2571 |
| 2563 #endif // ComputedStyle_h | 2572 #endif // ComputedStyle_h |
| OLD | NEW |