OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 RefPtr<HTMLElement> m_shadowParent; | 52 RefPtr<HTMLElement> m_shadowParent; |
53 }; | 53 }; |
54 | 54 |
55 class ShadowBlockElement : public ShadowElement<HTMLDivElement> { | 55 class ShadowBlockElement : public ShadowElement<HTMLDivElement> { |
56 public: | 56 public: |
57 static PassRefPtr<ShadowBlockElement> create(HTMLElement*); | 57 static PassRefPtr<ShadowBlockElement> create(HTMLElement*); |
58 static PassRefPtr<ShadowBlockElement> createForPart(HTMLElement*, PseudoId); | 58 static PassRefPtr<ShadowBlockElement> createForPart(HTMLElement*, PseudoId); |
59 static bool partShouldHaveStyle(const RenderObject* parentRenderer, PseudoId
pseudoId); | 59 static bool partShouldHaveStyle(const RenderObject* parentRenderer, PseudoId
pseudoId); |
60 void layoutAsPart(const IntRect& partRect); | 60 void layoutAsPart(const IntRect& partRect); |
61 void updateStyleForPart(PseudoId); | 61 virtual void updateStyleForPart(PseudoId); |
62 | 62 |
63 protected: | 63 protected: |
64 ShadowBlockElement(HTMLElement*); | 64 ShadowBlockElement(HTMLElement*); |
65 | 65 void initAsPart(PseudoId pasuedId); |
66 private: | 66 private: |
67 static PassRefPtr<RenderStyle> createStyleForPart(RenderObject*, PseudoId); | 67 static PassRefPtr<RenderStyle> createStyleForPart(RenderObject*, PseudoId); |
68 }; | 68 }; |
69 | 69 |
70 class ShadowInputElement : public ShadowElement<HTMLInputElement> { | 70 class ShadowInputElement : public ShadowElement<HTMLInputElement> { |
71 public: | 71 public: |
72 static PassRefPtr<ShadowInputElement> create(HTMLElement*); | 72 static PassRefPtr<ShadowInputElement> create(HTMLElement*); |
73 protected: | 73 protected: |
74 ShadowInputElement(HTMLElement*); | 74 ShadowInputElement(HTMLElement*); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace WebCore | 77 } // namespace WebCore |
78 | 78 |
79 #endif // ShadowElement_h | 79 #endif // ShadowElement_h |
OLD | NEW |