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

Side by Side Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 19096009: Use isHTMLTextAreaElement and toHTMLTextAreaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "core/dom/NodeRenderStyle.h" 75 #include "core/dom/NodeRenderStyle.h"
76 #include "core/dom/NodeRenderingContext.h" 76 #include "core/dom/NodeRenderingContext.h"
77 #include "core/dom/Text.h" 77 #include "core/dom/Text.h"
78 #include "core/dom/WebCoreMemoryInstrumentation.h" 78 #include "core/dom/WebCoreMemoryInstrumentation.h"
79 #include "core/dom/shadow/ShadowRoot.h" 79 #include "core/dom/shadow/ShadowRoot.h"
80 #include "core/html/HTMLHtmlElement.h" 80 #include "core/html/HTMLHtmlElement.h"
81 #include "core/html/HTMLIFrameElement.h" 81 #include "core/html/HTMLIFrameElement.h"
82 #include "core/html/HTMLInputElement.h" 82 #include "core/html/HTMLInputElement.h"
83 #include "core/html/HTMLOptGroupElement.h" 83 #include "core/html/HTMLOptGroupElement.h"
84 #include "core/html/HTMLTableElement.h" 84 #include "core/html/HTMLTableElement.h"
85 #include "core/html/HTMLTextAreaElement.h"
85 #include "core/html/track/WebVTTElement.h" 86 #include "core/html/track/WebVTTElement.h"
86 #include "core/inspector/InspectorInstrumentation.h" 87 #include "core/inspector/InspectorInstrumentation.h"
87 #include "core/loader/cache/CachedDocument.h" 88 #include "core/loader/cache/CachedDocument.h"
88 #include "core/loader/cache/CachedSVGDocumentReference.h" 89 #include "core/loader/cache/CachedSVGDocumentReference.h"
89 #include "core/page/Frame.h" 90 #include "core/page/Frame.h"
90 #include "core/page/FrameView.h" 91 #include "core/page/FrameView.h"
91 #include "core/page/Page.h" 92 #include "core/page/Page.h"
92 #include "core/page/Settings.h" 93 #include "core/page/Settings.h"
93 #include "core/platform/LinkHash.h" 94 #include "core/platform/LinkHash.h"
94 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h" 95 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h"
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 || style->boxReflect() 1518 || style->boxReflect()
1518 || style->hasFilter() 1519 || style->hasFilter()
1519 || style->hasBlendMode() 1520 || style->hasBlendMode()
1520 || style->position() == StickyPosition 1521 || style->position() == StickyPosition
1521 || (style->position() == FixedPosition && e && e->document()->page() && e->document()->page()->settings()->fixedPositionCreatesStackingContext()) 1522 || (style->position() == FixedPosition && e && e->document()->page() && e->document()->page()->settings()->fixedPositionCreatesStackingContext())
1522 || isInTopLayer(e, style) 1523 || isInTopLayer(e, style)
1523 )) 1524 ))
1524 style->setZIndex(0); 1525 style->setZIndex(0);
1525 1526
1526 // Textarea considers overflow visible as auto. 1527 // Textarea considers overflow visible as auto.
1527 if (e && e->hasTagName(textareaTag)) { 1528 if (e && isHTMLTextAreaElement(e)) {
1528 style->setOverflowX(style->overflowX() == OVISIBLE ? OAUTO : style->over flowX()); 1529 style->setOverflowX(style->overflowX() == OVISIBLE ? OAUTO : style->over flowX());
1529 style->setOverflowY(style->overflowY() == OVISIBLE ? OAUTO : style->over flowY()); 1530 style->setOverflowY(style->overflowY() == OVISIBLE ? OAUTO : style->over flowY());
1530 } 1531 }
1531 1532
1532 // For now, <marquee> requires an overflow clip to work properly. 1533 // For now, <marquee> requires an overflow clip to work properly.
1533 if (e && e->hasTagName(marqueeTag)) { 1534 if (e && e->hasTagName(marqueeTag)) {
1534 style->setOverflowX(OHIDDEN); 1535 style->setOverflowX(OHIDDEN);
1535 style->setOverflowY(OHIDDEN); 1536 style->setOverflowY(OHIDDEN);
1536 } 1537 }
1537 1538
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2402 void CachedMatchedProperties::reportMemoryUsage(MemoryObjectInfo* memoryObjectIn fo) const 2403 void CachedMatchedProperties::reportMemoryUsage(MemoryObjectInfo* memoryObjectIn fo) const
2403 { 2404 {
2404 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); 2405 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
2405 info.addMember(matchedProperties, "matchedProperties"); 2406 info.addMember(matchedProperties, "matchedProperties");
2406 info.addMember(ranges, "ranges"); 2407 info.addMember(ranges, "ranges");
2407 info.addMember(renderStyle, "renderStyle"); 2408 info.addMember(renderStyle, "renderStyle");
2408 info.addMember(parentRenderStyle, "parentRenderStyle"); 2409 info.addMember(parentRenderStyle, "parentRenderStyle");
2409 } 2410 }
2410 2411
2411 } // namespace WebCore 2412 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AccessibilityRenderObject.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698