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

Side by Side Diff: WebCore/rendering/ShadowElement.h

Issue 5772004: Merge 73488 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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
« no previous file with comments | « WebCore/rendering/RenderProgress.cpp ('k') | WebCore/rendering/ShadowElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « WebCore/rendering/RenderProgress.cpp ('k') | WebCore/rendering/ShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698