Changeset 145471 in webkit
- Timestamp:
- Mar 11, 2013 8:00:16 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r145466 r145471 1 2013-03-11 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r145462. 4 http://trac.webkit.org/changeset/145462 5 https://bugs.webkit.org/show_bug.cgi?id=112097 6 7 Compilation failure in PluginView.cpp (Requested by jamesr_ on 8 #webkit). 9 10 * accessibility/AccessibilityMenuList.cpp: 11 (WebCore::AccessibilityMenuList::canSetFocusAttribute): 12 * bindings/objc/DOM.mm: 13 (kitClass): 14 * bindings/v8/V8LazyEventListener.cpp: 15 (WebCore::V8LazyEventListener::prepareListenerObject): 16 * css/SelectorChecker.cpp: 17 (WebCore::SelectorChecker::checkOne): 18 * editing/ApplyStyleCommand.cpp: 19 (WebCore::isLegacyAppleStyleSpan): 20 (WebCore::isEmptyFontTag): 21 (WebCore::ApplyStyleCommand::applyBlockStyle): 22 * editing/FormatBlockCommand.cpp: 23 (WebCore::isElementForFormatBlock): 24 * editing/ReplaceSelectionCommand.cpp: 25 (WebCore::isMailPasteAsQuotationNode): 26 (WebCore::haveSameTagName): 27 (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline): 28 (WebCore::ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder): 29 * history/CachedPage.cpp: 30 (WebCore::CachedPage::restore): 31 * html/ColorInputType.cpp: 32 (WebCore::ColorInputType::suggestions): 33 * html/HTMLTableRowsCollection.cpp: 34 (WebCore::isInHead): 35 (WebCore::isInBody): 36 (WebCore::isInFoot): 37 * inspector/DOMPatchSupport.cpp: 38 (WebCore::DOMPatchSupport::innerPatchNode): 39 * page/PageSerializer.cpp: 40 (WebCore::SerializerMarkupAccumulator::appendCustomAttributes): 41 * plugins/PluginView.cpp: 42 (WebCore::PluginView::getValue): 43 * rendering/RenderEmbeddedObject.cpp: 44 (WebCore::RenderEmbeddedObject::paintContents): 45 (WebCore::RenderEmbeddedObject::handleUnavailablePluginIndicatorEvent): 46 * rendering/RenderLayer.cpp: 47 (WebCore::RenderLayer::name): 48 * rendering/RenderMedia.cpp: 49 (WebCore::RenderMedia::mediaElement): 50 * rendering/RenderSearchField.cpp: 51 (WebCore::RenderSearchField::autosaveName): 52 * rendering/RenderTextControl.cpp: 53 (WebCore::RenderTextControl::textFormControlElement): 54 (WebCore::updateUserModifyProperty): 55 * rendering/mathml/RenderMathMLFenced.cpp: 56 (WebCore::RenderMathMLFenced::updateFromElement): 57 * rendering/mathml/RenderMathMLFraction.cpp: 58 (WebCore::RenderMathMLFraction::updateFromElement): 59 * xml/parser/XMLDocumentParserLibxml2.cpp: 60 (WebCore::XMLDocumentParser::XMLDocumentParser): 61 (WebCore::XMLDocumentParser::endElementNs): 62 1 63 2013-03-11 Alexey Proskuryakov <ap@apple.com> 2 64 -
trunk/Source/WebCore/accessibility/AccessibilityMenuList.cpp
r145462 r145471 93 93 return false; 94 94 95 return toElement(node())->isEnabledFormControl();95 return static_cast<Element*>(node())->isEnabledFormControl(); 96 96 } 97 97 -
trunk/Source/WebCore/bindings/objc/DOM.mm
r145462 r145471 296 296 case WebCore::Node::ELEMENT_NODE: 297 297 if (impl->isHTMLElement()) 298 return WebCore::elementClass( toHTMLElement(impl)->tagQName(), [DOMHTMLElement class]);298 return WebCore::elementClass(static_cast<WebCore::HTMLElement*>(impl)->tagQName(), [DOMHTMLElement class]); 299 299 #if ENABLE(SVG_DOM_OBJC_BINDINGS) 300 300 if (impl->isSVGElement()) -
trunk/Source/WebCore/bindings/v8/V8LazyEventListener.cpp
r145462 r145471 178 178 HTMLFormElement* formElement = 0; 179 179 if (m_node && m_node->isHTMLElement()) 180 formElement = toHTMLElement(m_node)->form();180 formElement = static_cast<HTMLElement*>(m_node)->form(); 181 181 182 182 v8::Handle<v8::Object> nodeWrapper = toObjectWrapper<Node>(m_node, isolate); -
trunk/Source/WebCore/css/SelectorChecker.cpp
r145462 r145471 657 657 #if ENABLE(PROGRESS_ELEMENT) 658 658 if (element->hasTagName(progressTag)) { 659 HTMLProgressElement* progress = toHTMLProgressElement(element);659 HTMLProgressElement* progress = static_cast<HTMLProgressElement*>(element); 660 660 if (progress && !progress->isDeterminate()) 661 661 return true; -
trunk/Source/WebCore/editing/ApplyStyleCommand.cpp
r145462 r145471 68 68 return false; 69 69 70 const HTMLElement* elem = toHTMLElement(node);70 const HTMLElement* elem = static_cast<const HTMLElement*>(node); 71 71 return elem->hasLocalName(spanAttr) && elem->getAttribute(classAttr) == styleSpanClassString(); 72 72 } … … 107 107 return false; 108 108 109 return hasNoAttributeOrOnlyStyleAttribute( toHTMLElement(element), shouldStyleAttributeBeEmpty);109 return hasNoAttributeOrOnlyStyleAttribute(static_cast<const HTMLElement*>(element), shouldStyleAttributeBeEmpty); 110 110 } 111 111 … … 291 291 } 292 292 293 startRange = TextIterator::rangeFromLocationAndLength( toElement(scope), startIndex, 0, true);294 endRange = TextIterator::rangeFromLocationAndLength( toElement(scope), endIndex, 0, true);293 startRange = TextIterator::rangeFromLocationAndLength(static_cast<Element*>(scope), startIndex, 0, true); 294 endRange = TextIterator::rangeFromLocationAndLength(static_cast<Element*>(scope), endIndex, 0, true); 295 295 if (startRange && endRange) 296 296 updateStartEnd(startRange->startPosition(), endRange->startPosition()); -
trunk/Source/WebCore/editing/FormatBlockCommand.cpp
r145462 r145471 43 43 static inline bool isElementForFormatBlock(Node* node) 44 44 { 45 return node->isElementNode() && isElementForFormatBlock( toElement(node)->tagQName());45 return node->isElementNode() && isElementForFormatBlock(static_cast<Element*>(node)->tagQName()); 46 46 } 47 47 -
trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp
r145462 r145471 427 427 static bool isMailPasteAsQuotationNode(const Node* node) 428 428 { 429 return node && node->hasTagName(blockquoteTag) && node->isElementNode() && toElement(node)->getAttribute(classAttr) == ApplePasteAsQuotation;429 return node && node->hasTagName(blockquoteTag) && node->isElementNode() && static_cast<const Element*>(node)->getAttribute(classAttr) == ApplePasteAsQuotation; 430 430 } 431 431 … … 445 445 static bool haveSameTagName(Node* a, Node* b) 446 446 { 447 return a && b && a->isElementNode() && b->isElementNode() && toElement(a)->tagName() == static_cast<Element*>(b)->tagName();447 return a && b && a->isElementNode() && b->isElementNode() && static_cast<Element*>(a)->tagName() == static_cast<Element*>(b)->tagName(); 448 448 } 449 449 … … 487 487 if (element->isHTMLElement()) { 488 488 Vector<QualifiedName> attributes; 489 HTMLElement* htmlElement = toHTMLElement(element);489 HTMLElement* htmlElement = static_cast<HTMLElement*>(element); 490 490 491 491 if (newInlineStyle->conflictsWithImplicitStyleOfElement(htmlElement)) { … … 626 626 continue; 627 627 628 if (isProhibitedParagraphChild( toHTMLElement(node.get())->localName())) {629 if (HTMLElement* paragraphElement = toHTMLElement(enclosingNodeWithTag(positionInParentBeforeNode(node.get()), pTag)))628 if (isProhibitedParagraphChild(static_cast<const HTMLElement*>(node.get())->localName())) { 629 if (HTMLElement* paragraphElement = static_cast<HTMLElement*>(enclosingNodeWithTag(positionInParentBeforeNode(node.get()), pTag))) 630 630 moveNodeOutOfAncestor(node, paragraphElement); 631 631 } -
trunk/Source/WebCore/history/CachedPage.cpp
r145462 r145471 84 84 if (Node* node = focusedDocument->focusedNode()) { 85 85 if (node->isElementNode()) 86 toElement(node)->updateFocusAppearance(true);86 static_cast<Element*>(node)->updateFocusAppearance(true); 87 87 } 88 88 -
trunk/Source/WebCore/html/ColorInputType.cpp
r145462 r145471 234 234 if (dataList) { 235 235 RefPtr<HTMLCollection> options = dataList->options(); 236 for (unsigned i = 0; HTMLOptionElement* option = toHTMLOptionElement(options->item(i)); i++) {236 for (unsigned i = 0; HTMLOptionElement* option = static_cast<HTMLOptionElement*>(options->item(i)); i++) { 237 237 if (!element()->isValidValue(option->value())) 238 238 continue; -
trunk/Source/WebCore/html/HTMLTableRowsCollection.cpp
r145462 r145471 40 40 static bool isInHead(Element* row) 41 41 { 42 return row->parentNode() && toElement(row->parentNode())->hasLocalName(theadTag);42 return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(theadTag); 43 43 } 44 44 45 45 static bool isInBody(Element* row) 46 46 { 47 return row->parentNode() && toElement(row->parentNode())->hasLocalName(tbodyTag);47 return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(tbodyTag); 48 48 } 49 49 50 50 static bool isInFoot(Element* row) 51 51 { 52 return row->parentNode() && toElement(row->parentNode())->hasLocalName(tfootTag);52 return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(tfootTag); 53 53 } 54 54 -
trunk/Source/WebCore/inspector/DOMPatchSupport.cpp
r145462 r145471 171 171 172 172 // Patch attributes 173 Element* oldElement = toElement(oldNode);174 Element* newElement = toElement(newNode);173 Element* oldElement = static_cast<Element*>(oldNode); 174 Element* newElement = static_cast<Element*>(newNode); 175 175 if (oldDigest->m_attrsSHA1 != newDigest->m_attrsSHA1) { 176 176 // FIXME: Create a function in Element for removing all properties. Take in account whether did/willModifyAttribute are important. -
trunk/Source/WebCore/page/PageSerializer.cpp
r145462 r145471 151 151 return; 152 152 153 HTMLFrameOwnerElement* frameOwner = toFrameOwnerElement(element);153 HTMLFrameOwnerElement* frameOwner = static_cast<HTMLFrameOwnerElement*>(element); 154 154 Frame* frame = frameOwner->contentFrame(); 155 155 if (!frame) -
trunk/Source/WebCore/plugins/PluginView.cpp
r145462 r145471 1375 1375 1376 1376 if (m_element->hasTagName(appletTag) || m_element->hasTagName(embedTag) || m_element->hasTagName(objectTag)) 1377 pluginScriptObject = toHTMLPlugInElement(m_element)->getNPObject();1377 pluginScriptObject = static_cast<HTMLPlugInElement*>(m_element)->getNPObject(); 1378 1378 1379 1379 // Return value is expected to be retained, as described here: <http://www.mozilla.org/projects/plugin/npruntime.html> -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp
r145462 r145471 172 172 void RenderEmbeddedObject::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 173 173 { 174 Element* element = toElement(node());174 Element* element = static_cast<Element*>(node()); 175 175 if (!element || !element->isPluginElement()) 176 176 return; 177 177 178 HTMLPlugInElement* plugInElement = toHTMLPlugInElement(element);178 HTMLPlugInElement* plugInElement = static_cast<HTMLPlugInElement*>(element); 179 179 if (plugInElement->displayState() > HTMLPlugInElement::DisplayingSnapshot) { 180 180 RenderPart::paintContents(paintInfo, paintOffset); … … 185 185 return; 186 186 187 Image* snapshot = toHTMLPlugInImageElement(plugInElement)->snapshotImage();187 Image* snapshot = static_cast<HTMLPlugInImageElement*>(plugInElement)->snapshotImage(); 188 188 if (snapshot) 189 189 paintSnapshotImage(paintInfo, paintOffset, snapshot); … … 418 418 419 419 MouseEvent* mouseEvent = static_cast<MouseEvent*>(event); 420 HTMLPlugInElement* element = toHTMLPlugInElement(node());420 HTMLPlugInElement* element = static_cast<HTMLPlugInElement*>(node()); 421 421 if (event->type() == eventNames().mousedownEvent && static_cast<MouseEvent*>(event)->button() == LeftButton) { 422 422 m_mouseDownWasInUnavailablePluginIndicator = isInUnavailablePluginIndicator(mouseEvent); -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r145462 r145471 277 277 if (node->isElementNode()) { 278 278 name.append(' '); 279 name.append( toElement(node)->tagName());279 name.append(static_cast<Element*>(node)->tagName()); 280 280 } 281 281 if (node->hasID()) { 282 282 name.appendLiteral(" id=\'"); 283 name.append( toElement(node)->getIdAttribute());283 name.append(static_cast<Element*>(node)->getIdAttribute()); 284 284 name.append('\''); 285 285 } -
trunk/Source/WebCore/rendering/RenderMedia.cpp
r145462 r145471 54 54 HTMLMediaElement* RenderMedia::mediaElement() const 55 55 { 56 return toMediaElement(node());56 return static_cast<HTMLMediaElement*>(node()); 57 57 } 58 58 -
trunk/Source/WebCore/rendering/RenderSearchField.cpp
r145462 r145471 200 200 const AtomicString& RenderSearchField::autosaveName() const 201 201 { 202 return toElement(node())->getAttribute(autosaveAttr);202 return static_cast<Element*>(node())->getAttribute(autosaveAttr); 203 203 } 204 204 -
trunk/Source/WebCore/rendering/RenderTextControl.cpp
r145462 r145471 49 49 HTMLTextFormControlElement* RenderTextControl::textFormControlElement() const 50 50 { 51 return toHTMLTextFormControlElement(node());51 return static_cast<HTMLTextFormControlElement*>(node()); 52 52 } 53 53 … … 81 81 82 82 if (node->isElementNode()) { 83 Element* element = toElement(node);83 Element* element = static_cast<Element*>(node); 84 84 isEnabled = element->isEnabledFormControl(); 85 isReadOnlyControl = element->isTextFormControl() && toHTMLTextFormControlElement(element)->readOnly();85 isReadOnlyControl = element->isTextFormControl() && static_cast<HTMLTextFormControlElement*>(element)->readOnly(); 86 86 } 87 87 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp
r145462 r145471 56 56 void RenderMathMLFenced::updateFromElement() 57 57 { 58 Element* fenced = toElement(node());58 Element* fenced = static_cast<Element*>(node()); 59 59 60 60 // FIXME: Handle open/close values with more than one character (they should be treated like text). -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
r145462 r145471 64 64 return; 65 65 66 Element* fraction = toElement(node());66 Element* fraction = static_cast<Element*>(node()); 67 67 68 68 RenderObject* numeratorWrapper = firstChild(); -
trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
r145462 r145471 600 600 if (!n || !n->isElementNode()) 601 601 break; 602 parentElement = toElement(n);602 parentElement = static_cast<Element*>(n); 603 603 } 604 604 … … 864 864 setDepthTriggeringEntityExpansion(-1); 865 865 866 if (!scriptingContentIsAllowed(m_scriptingPermission) && n->isElementNode() && toScriptElement( toElement(n.get()))) {866 if (!scriptingContentIsAllowed(m_scriptingPermission) && n->isElementNode() && toScriptElement(static_cast<Element*>(n.get()))) { 867 867 popCurrentNode(); 868 868 n->remove(IGNORE_EXCEPTION); … … 875 875 } 876 876 877 Element* element = toElement(n.get());877 Element* element = static_cast<Element*>(n.get()); 878 878 879 879 // The element's parent may have already been removed from document. -
trunk/Source/WebKit/chromium/ChangeLog
r145462 r145471 1 2013-03-11 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r145462. 4 http://trac.webkit.org/changeset/145462 5 https://bugs.webkit.org/show_bug.cgi?id=112097 6 7 Compilation failure in PluginView.cpp (Requested by jamesr_ on 8 #webkit). 9 10 * src/ChromeClientImpl.cpp: 11 (WebKit::ChromeClientImpl::focusedNodeChanged): 12 * src/ContextMenuClientImpl.cpp: 13 (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 14 * src/DOMUtilitiesPrivate.cpp: 15 (WebCore::toHTMLElement): 16 * src/WebSearchableFormData.cpp: 17 (HTMLNames::IsSelectInDefaultState): 18 1 19 2013-03-11 Abhishek Arya <inferno@chromium.org> 2 20 -
trunk/Source/WebKit/chromium/src/ChromeClientImpl.cpp
r145462 r145471 232 232 HitTestResult hitTest(IntPoint(0, 0)); 233 233 // This cast must be valid because of the isLink() check. 234 hitTest.setURLElement( toElement(node));234 hitTest.setURLElement(static_cast<Element*>(node)); 235 235 if (hitTest.isLiveLink()) 236 236 focusURL = hitTest.absoluteLinkURL(); -
trunk/Source/WebKit/chromium/src/ContextMenuClientImpl.cpp
r145462 r145471 227 227 // is a media element. 228 228 HTMLMediaElement* mediaElement = 229 toMediaElement(r.innerNonSharedNode());229 static_cast<HTMLMediaElement*>(r.innerNonSharedNode()); 230 230 if (mediaElement->hasTagName(HTMLNames::videoTag)) 231 231 data.mediaType = WebContextMenuData::MediaTypeVideo; … … 267 267 data.mediaFlags |= WebContextMenuData::MediaCanPrint; 268 268 269 HTMLPlugInImageElement* pluginElement = toHTMLPlugInImageElement(r.innerNonSharedNode());269 HTMLPlugInImageElement* pluginElement = static_cast<HTMLPlugInImageElement*>(r.innerNonSharedNode()); 270 270 data.srcURL = pluginElement->document()->completeURL(pluginElement->url()); 271 271 data.mediaFlags |= WebContextMenuData::MediaCanSave; -
trunk/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
r145462 r145471 48 48 { 49 49 if (node->isHTMLElement() 50 && toHTMLElement(node)->hasTagName(name)) {50 && static_cast<HTMLElement*>(node)->hasTagName(name)) { 51 51 return static_cast<HTMLNodeType*>(node); 52 52 } -
trunk/Source/WebKit/chromium/src/WebSearchableFormData.cpp
r145462 r145471 107 107 if (!(*i)->hasLocalName(HTMLNames::optionTag)) 108 108 continue; 109 HTMLOptionElement* optionElement = toHTMLOptionElement(*i);109 HTMLOptionElement* optionElement = static_cast<HTMLOptionElement*>(*i); 110 110 if (optionElement->selected() != optionElement->hasAttribute(selectedAttr)) 111 111 return false; … … 120 120 if (!(*i)->hasLocalName(HTMLNames::optionTag)) 121 121 continue; 122 HTMLOptionElement* optionElement = toHTMLOptionElement(*i);122 HTMLOptionElement* optionElement = static_cast<HTMLOptionElement*>(*i); 123 123 if (optionElement->hasAttribute(selectedAttr)) { 124 124 // The page specified the option to select. -
trunk/Source/WebKit/mac/ChangeLog
r145462 r145471 1 2013-03-11 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r145462. 4 http://trac.webkit.org/changeset/145462 5 https://bugs.webkit.org/show_bug.cgi?id=112097 6 7 Compilation failure in PluginView.cpp (Requested by jamesr_ on 8 #webkit). 9 10 * WebView/WebView.mm: 11 (-[WebView _enterFullscreenForNode:WebCore::]): 12 1 13 2013-03-11 Abhishek Arya <inferno@chromium.org> 2 14 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r145462 r145471 6467 6467 { 6468 6468 ASSERT(node->hasTagName(WebCore::HTMLNames::videoTag)); 6469 HTMLMediaElement* videoElement = toMediaElement(node);6469 HTMLMediaElement* videoElement = static_cast<HTMLMediaElement*>(node); 6470 6470 6471 6471 if (_private->fullscreenController) {
Note: See TracChangeset
for help on using the changeset viewer.