Changeset 87292 in webkit
- Timestamp:
- May 25, 2011 4:55:13 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r87197 r87292 878 878 html/parser/XSSFilter.cpp 879 879 880 html/shadow/ElementWithPseudoId.cpp 880 881 html/shadow/DetailsMarkerControl.cpp 881 882 html/shadow/MediaControls.cpp -
trunk/Source/WebCore/ChangeLog
r87290 r87292 1 2011-05-25 Keishi Hattori <keishi@webkit.org> 2 3 Reviewed by Kent Tamura. 4 5 Move ElementWithPseudoId to separate file 6 https://bugs.webkit.org/show_bug.cgi?id=61430 7 8 No new tests because no behavior changes. 9 10 * CMakeLists.txt: Added ElementWithPseudoId.cpp 11 * GNUmakefile.list.am: Added ElementWithPseudoId.{h,cpp} 12 * WebCore.gypi: Added ElementWithPseudoId.{h,cpp} 13 * WebCore.pro: Added ElementWithPseudoId.{h,cpp} 14 * WebCore.vcproj/WebCore.vcproj: Added ElementWithPseudoId.{h,cpp} 15 * WebCore.xcodeproj/project.pbxproj: Added ElementWithPseudoId.{h,cpp} 16 * html/ValidationMessage.cpp: Removed ElementWithPseudoId definition. 17 * html/shadow/ElementWithPseudoId.cpp: Added. 18 (WebCore::ElementWithPseudoId::shadowPseudoId): 19 * html/shadow/ElementWithPseudoId.h: Added. 20 (WebCore::ElementWithPseudoId::create): 21 (WebCore::ElementWithPseudoId::ElementWithPseudoId): 22 1 23 2011-05-25 Alexis Menard <alexis.menard@openbossa.org> 2 24 -
trunk/Source/WebCore/GNUmakefile.list.am
r87228 r87292 1829 1829 Source/WebCore/html/parser/XSSFilter.cpp \ 1830 1830 Source/WebCore/html/parser/XSSFilter.h \ 1831 Source/WebCore/html/shadow/ElementWithPseudoId.cpp \ 1832 Source/WebCore/html/shadow/ElementWithPseudoId.h \ 1831 1833 Source/WebCore/html/shadow/DetailsMarkerControl.cpp \ 1832 1834 Source/WebCore/html/shadow/DetailsMarkerControl.h \ -
trunk/Source/WebCore/WebCore.gypi
r87228 r87292 3176 3176 'html/parser/XSSFilter.cpp', 3177 3177 'html/parser/XSSFilter.h', 3178 'html/shadow/ElementWithPseudoId.cpp', 3179 'html/shadow/ElementWithPseudoId.h', 3178 3180 'html/shadow/DetailsMarkerControl.cpp', 3179 3181 'html/shadow/DetailsMarkerControl.h', -
trunk/Source/WebCore/WebCore.pro
r87276 r87292 797 797 html/parser/TextViewSourceParser.cpp \ 798 798 html/parser/XSSFilter.cpp \ 799 html/shadow/ElementWithPseudoId.cpp \ 799 800 html/shadow/DetailsMarkerControl.cpp \ 800 801 html/shadow/MediaControls.cpp \ … … 1747 1748 html/shadow/MediaControlElements.h \ 1748 1749 html/shadow/DetailsMarkerControl.h \ 1750 html/shadow/ElementWithPseudoId.h \ 1749 1751 inspector/ConsoleMessage.h \ 1750 1752 inspector/DOMNodeHighlighter.h \ -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r87228 r87292 56874 56874 > 56875 56875 <File 56876 RelativePath="..\html\shadow\ElementWithPseudoId.cpp" 56877 > 56878 </File> 56879 <File 56880 RelativePath="..\html\shadow\ElementWithPseudoId.h" 56881 > 56882 </File> 56883 <File 56876 56884 RelativePath="..\html\shadow\DetailsMarkerControl.cpp" 56877 56885 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r87231 r87292 5339 5339 C105DA620F3AA68F001DD44F /* TextEncodingDetectorICU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C105DA610F3AA68F001DD44F /* TextEncodingDetectorICU.cpp */; }; 5340 5340 C105DA640F3AA6B8001DD44F /* TextEncodingDetector.h in Headers */ = {isa = PBXBuildFile; fileRef = C105DA630F3AA6B8001DD44F /* TextEncodingDetector.h */; }; 5341 C39509B6138D05D400912E52 /* ElementWithPseudoId.h in Headers */ = {isa = PBXBuildFile; fileRef = C39509B4138D05D400912E52 /* ElementWithPseudoId.h */; }; 5342 C39509B7138D05D400912E52 /* ElementWithPseudoId.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C39509B5138D05D400912E52 /* ElementWithPseudoId.cpp */; }; 5341 5343 C50B561612119D23008B46E0 /* GroupSettings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C50B561412119D23008B46E0 /* GroupSettings.cpp */; }; 5342 5344 C50B561712119D23008B46E0 /* GroupSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = C50B561512119D23008B46E0 /* GroupSettings.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 11832 11834 C105DA610F3AA68F001DD44F /* TextEncodingDetectorICU.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextEncodingDetectorICU.cpp; sourceTree = "<group>"; }; 11833 11835 C105DA630F3AA6B8001DD44F /* TextEncodingDetector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextEncodingDetector.h; sourceTree = "<group>"; }; 11836 C39509B4138D05D400912E52 /* ElementWithPseudoId.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ElementWithPseudoId.h; sourceTree = "<group>"; }; 11837 C39509B5138D05D400912E52 /* ElementWithPseudoId.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ElementWithPseudoId.cpp; sourceTree = "<group>"; }; 11834 11838 C50B561412119D23008B46E0 /* GroupSettings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GroupSettings.cpp; sourceTree = "<group>"; }; 11835 11839 C50B561512119D23008B46E0 /* GroupSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GroupSettings.h; sourceTree = "<group>"; }; … … 13526 13530 A7C9ABF61357A3BF00F5503F /* DetailsMarkerControl.cpp */, 13527 13531 A7C9ABF71357A3BF00F5503F /* DetailsMarkerControl.h */, 13532 C39509B5138D05D400912E52 /* ElementWithPseudoId.cpp */, 13533 C39509B4138D05D400912E52 /* ElementWithPseudoId.h */, 13528 13534 417253A81354BBBC00360F2A /* MediaControlElements.cpp */, 13529 13535 417253A91354BBBC00360F2A /* MediaControlElements.h */, … … 20987 20993 63F5D4F70E8C4B7100C0BD04 /* ElementRareData.h in Headers */, 20988 20994 E415F1840D9A1A830033CE97 /* ElementTimeControl.h in Headers */, 20995 C39509B6138D05D400912E52 /* ElementWithPseudoId.h in Headers */, 20989 20996 A8CFF6BE0A156118000A4234 /* EllipsisBox.h in Headers */, 20990 20997 F55B3DBC1251F12D003EF269 /* EmailInputType.h in Headers */, … … 23846 23853 ED501DC60B249F2900AE18D9 /* EditorMac.mm in Sources */, 23847 23854 A8C4A80809D563270003AC8D /* Element.cpp in Sources */, 23855 C39509B7138D05D400912E52 /* ElementWithPseudoId.cpp in Sources */, 23848 23856 A8CFF6CB0A1561CD000A4234 /* EllipsisBox.cpp in Sources */, 23849 23857 F55B3DBB1251F12D003EF269 /* EmailInputType.cpp in Sources */, -
trunk/Source/WebCore/html/ValidationMessage.cpp
r86224 r87292 35 35 #include "CSSStyleSelector.h" 36 36 #include "CSSValueKeywords.h" 37 #include "ElementWithPseudoId.h" 37 38 #include "FormAssociatedElement.h" 38 39 #include "HTMLBRElement.h" … … 105 106 } 106 107 107 class ElementWithPseudoId : public HTMLElement {108 public:109 static PassRefPtr<HTMLElement> create(Document* doc, const AtomicString& pseudoName)110 {111 return adoptRef(new ElementWithPseudoId(doc, pseudoName));112 }113 114 protected:115 ElementWithPseudoId(Document* doc, const AtomicString& pseudoName)116 : HTMLElement(divTag, doc)117 , m_pseudoName(pseudoName) { };118 virtual const AtomicString& shadowPseudoId() const { return m_pseudoName; }119 120 private:121 AtomicString m_pseudoName;122 };123 124 108 static void adjustBubblePosition(const IntRect& hostRect, HTMLElement* bubble) 125 109 {
Note: See TracChangeset
for help on using the changeset viewer.