OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
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 27 matching lines...) Expand all Loading... |
38 #include "core/dom/ExceptionCode.h" | 38 #include "core/dom/ExceptionCode.h" |
39 #include "core/dom/NodeTraversal.h" | 39 #include "core/dom/NodeTraversal.h" |
40 #include "core/dom/Text.h" | 40 #include "core/dom/Text.h" |
41 #include "core/editing/markup.h" | 41 #include "core/editing/markup.h" |
42 #include "core/events/EventListener.h" | 42 #include "core/events/EventListener.h" |
43 #include "core/events/KeyboardEvent.h" | 43 #include "core/events/KeyboardEvent.h" |
44 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
45 #include "core/html/HTMLBRElement.h" | 45 #include "core/html/HTMLBRElement.h" |
46 #include "core/html/HTMLFormElement.h" | 46 #include "core/html/HTMLFormElement.h" |
47 #include "core/html/HTMLInputElement.h" | 47 #include "core/html/HTMLInputElement.h" |
| 48 #include "core/html/HTMLMenuElement.h" |
48 #include "core/html/HTMLTemplateElement.h" | 49 #include "core/html/HTMLTemplateElement.h" |
49 #include "core/html/HTMLTextFormControlElement.h" | 50 #include "core/html/HTMLTextFormControlElement.h" |
50 #include "core/html/parser/HTMLParserIdioms.h" | 51 #include "core/html/parser/HTMLParserIdioms.h" |
51 #include "core/rendering/RenderObject.h" | 52 #include "core/rendering/RenderObject.h" |
52 #include "platform/text/BidiResolver.h" | 53 #include "platform/text/BidiResolver.h" |
53 #include "platform/text/BidiTextRun.h" | 54 #include "platform/text/BidiTextRun.h" |
54 #include "platform/text/TextRunIterator.h" | 55 #include "platform/text/TextRunIterator.h" |
55 #include "wtf/StdLibExtras.h" | 56 #include "wtf/StdLibExtras.h" |
56 #include "wtf/text/CString.h" | 57 #include "wtf/text/CString.h" |
57 | 58 |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); | 897 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); |
897 | 898 |
898 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); | 899 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); |
899 } | 900 } |
900 | 901 |
901 bool HTMLElement::isInteractiveContent() const | 902 bool HTMLElement::isInteractiveContent() const |
902 { | 903 { |
903 return false; | 904 return false; |
904 } | 905 } |
905 | 906 |
| 907 HTMLMenuElement* HTMLElement::menuElement() const |
| 908 { |
| 909 Element* element = treeScope().getElementById(fastGetAttribute(contextmenuAt
tr)); |
| 910 return isHTMLMenuElement(element) ? toHTMLMenuElement(element) : 0; |
| 911 } |
| 912 |
906 void HTMLElement::defaultEventHandler(Event* event) | 913 void HTMLElement::defaultEventHandler(Event* event) |
907 { | 914 { |
908 if (event->type() == EventTypeNames::keypress && event->isKeyboardEvent()) { | 915 if (event->type() == EventTypeNames::keypress && event->isKeyboardEvent()) { |
909 handleKeypressEvent(toKeyboardEvent(event)); | 916 handleKeypressEvent(toKeyboardEvent(event)); |
910 if (event->defaultHandled()) | 917 if (event->defaultHandled()) |
911 return; | 918 return; |
912 } | 919 } |
913 | 920 |
914 Element::defaultEventHandler(event); | 921 Element::defaultEventHandler(event); |
915 } | 922 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 #ifndef NDEBUG | 962 #ifndef NDEBUG |
956 | 963 |
957 // For use in the debugger | 964 // For use in the debugger |
958 void dumpInnerHTML(WebCore::HTMLElement*); | 965 void dumpInnerHTML(WebCore::HTMLElement*); |
959 | 966 |
960 void dumpInnerHTML(WebCore::HTMLElement* element) | 967 void dumpInnerHTML(WebCore::HTMLElement* element) |
961 { | 968 { |
962 printf("%s\n", element->innerHTML().ascii().data()); | 969 printf("%s\n", element->innerHTML().ascii().data()); |
963 } | 970 } |
964 #endif | 971 #endif |
OLD | NEW |