OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 static Length convertToIntLength(CSSPrimitiveValue*, RenderStyle*, RenderSty
le* rootStyle, double multiplier = 1); | 413 static Length convertToIntLength(CSSPrimitiveValue*, RenderStyle*, RenderSty
le* rootStyle, double multiplier = 1); |
414 static Length convertToFloatLength(CSSPrimitiveValue*, RenderStyle*, RenderS
tyle* rootStyle, double multiplier = 1); | 414 static Length convertToFloatLength(CSSPrimitiveValue*, RenderStyle*, RenderS
tyle* rootStyle, double multiplier = 1); |
415 | 415 |
416 CSSToStyleMap* styleMap() { return &m_styleMap; } | 416 CSSToStyleMap* styleMap() { return &m_styleMap; } |
417 | 417 |
418 void reportMemoryUsage(MemoryObjectInfo*) const; | 418 void reportMemoryUsage(MemoryObjectInfo*) const; |
419 | 419 |
420 private: | 420 private: |
421 static RenderStyle* s_styleNotYetAvailable; | 421 static RenderStyle* s_styleNotYetAvailable; |
422 | 422 |
423 void addAuthorRulesAndCollectUserRulesFromSheets(const Vector<RefPtr<CSSStyl
eSheet> >*, RuleSet& userStyle); | 423 void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&,
RuleSet& userStyle); |
424 | 424 |
425 void cacheBorderAndBackground(); | 425 void cacheBorderAndBackground(); |
426 | 426 |
427 private: | 427 private: |
428 bool canShareStyleWithControl(StyledElement*) const; | 428 bool canShareStyleWithControl(StyledElement*) const; |
429 | 429 |
430 void applyProperty(CSSPropertyID, CSSValue*); | 430 void applyProperty(CSSPropertyID, CSSValue*); |
431 | 431 |
432 #if ENABLE(SVG) | 432 #if ENABLE(SVG) |
433 void applySVGProperty(CSSPropertyID, CSSValue*); | 433 void applySVGProperty(CSSPropertyID, CSSValue*); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 friend class StyleBuilder; | 513 friend class StyleBuilder; |
514 friend bool operator==(const MatchedProperties&, const MatchedProperties&); | 514 friend bool operator==(const MatchedProperties&, const MatchedProperties&); |
515 friend bool operator!=(const MatchedProperties&, const MatchedProperties&); | 515 friend bool operator!=(const MatchedProperties&, const MatchedProperties&); |
516 friend bool operator==(const MatchRanges&, const MatchRanges&); | 516 friend bool operator==(const MatchRanges&, const MatchRanges&); |
517 friend bool operator!=(const MatchRanges&, const MatchRanges&); | 517 friend bool operator!=(const MatchRanges&, const MatchRanges&); |
518 }; | 518 }; |
519 | 519 |
520 } // namespace WebCore | 520 } // namespace WebCore |
521 | 521 |
522 #endif // StyleResolver_h | 522 #endif // StyleResolver_h |
OLD | NEW |