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

Side by Side Diff: Source/core/html/HTMLElement.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLDocument.cpp ('k') | Source/core/html/HTMLFieldSetElement.h » ('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) 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 return LTR; 840 return LTR;
841 } 841 }
842 842
843 isAuto = true; 843 isAuto = true;
844 return directionality(); 844 return directionality();
845 } 845 }
846 846
847 TextDirection HTMLElement::directionality(Node** strongDirectionalityTextNode) c onst 847 TextDirection HTMLElement::directionality(Node** strongDirectionalityTextNode) c onst
848 { 848 {
849 if (isHTMLTextFormControlElement(this)) { 849 if (isHTMLTextFormControlElement(this)) {
850 HTMLTextFormControlElement* textElement = toHTMLTextFormControlElement(c onst_cast<HTMLElement*>(this)); 850 Handle<HTMLTextFormControlElement> textElement = toHTMLTextFormControlEl ement(const_cast<HTMLElement*>(this));
851 bool hasStrongDirectionality; 851 bool hasStrongDirectionality;
852 Unicode::Direction textDirection = textElement->value().defaultWritingDi rection(&hasStrongDirectionality); 852 Unicode::Direction textDirection = textElement->value().defaultWritingDi rection(&hasStrongDirectionality);
853 if (strongDirectionalityTextNode) 853 if (strongDirectionalityTextNode)
854 *strongDirectionalityTextNode = hasStrongDirectionality ? textElemen t : 0; 854 *strongDirectionalityTextNode = hasStrongDirectionality ? textElemen t.raw() : 0;
855 return (textDirection == Unicode::LeftToRight) ? LTR : RTL; 855 return (textDirection == Unicode::LeftToRight) ? LTR : RTL;
856 } 856 }
857 857
858 Node* node = firstChild(); 858 Node* node = firstChild();
859 while (node) { 859 while (node) {
860 // Skip bdi, script, style and text form controls. 860 // Skip bdi, script, style and text form controls.
861 if (equalIgnoringCase(node->nodeName(), "bdi") || node->hasTagName(scrip tTag) || node->hasTagName(styleTag) 861 if (equalIgnoringCase(node->nodeName(), "bdi") || node->hasTagName(scrip tTag) || node->hasTagName(styleTag)
862 || (node->isElementNode() && toElement(node)->isTextFormControl())) { 862 || (node->isElementNode() && toElement(node)->isTextFormControl())) {
863 node = NodeTraversal::nextSkippingChildren(node, this); 863 node = NodeTraversal::nextSkippingChildren(node, this);
864 continue; 864 continue;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 #ifndef NDEBUG 1042 #ifndef NDEBUG
1043 1043
1044 // For use in the debugger 1044 // For use in the debugger
1045 void dumpInnerHTML(WebCore::HTMLElement*); 1045 void dumpInnerHTML(WebCore::HTMLElement*);
1046 1046
1047 void dumpInnerHTML(WebCore::HTMLElement* element) 1047 void dumpInnerHTML(WebCore::HTMLElement* element)
1048 { 1048 {
1049 printf("%s\n", element->innerHTML().ascii().data()); 1049 printf("%s\n", element->innerHTML().ascii().data());
1050 } 1050 }
1051 #endif 1051 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDocument.cpp ('k') | Source/core/html/HTMLFieldSetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698