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

Side by Side Diff: Source/core/layout/LayoutTextControlSingleLine.cpp

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 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/layout/LayoutSliderContainer.cpp ('k') | Source/core/layout/LayoutTheme.cpp » ('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) 2006, 2007, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 , m_desiredInnerEditorLogicalHeight(-1) 46 , m_desiredInnerEditorLogicalHeight(-1)
47 { 47 {
48 } 48 }
49 49
50 LayoutTextControlSingleLine::~LayoutTextControlSingleLine() 50 LayoutTextControlSingleLine::~LayoutTextControlSingleLine()
51 { 51 {
52 } 52 }
53 53
54 inline Element* LayoutTextControlSingleLine::containerElement() const 54 inline Element* LayoutTextControlSingleLine::containerElement() const
55 { 55 {
56 return inputElement()->userAgentShadowRoot()->getElementById(ShadowElementNa mes::textFieldContainer()); 56 return inputElement()->closedShadowRoot()->getElementById(ShadowElementNames ::textFieldContainer());
57 } 57 }
58 58
59 inline Element* LayoutTextControlSingleLine::editingViewPortElement() const 59 inline Element* LayoutTextControlSingleLine::editingViewPortElement() const
60 { 60 {
61 return inputElement()->userAgentShadowRoot()->getElementById(ShadowElementNa mes::editingViewPort()); 61 return inputElement()->closedShadowRoot()->getElementById(ShadowElementNames ::editingViewPort());
62 } 62 }
63 63
64 inline HTMLElement* LayoutTextControlSingleLine::innerSpinButtonElement() const 64 inline HTMLElement* LayoutTextControlSingleLine::innerSpinButtonElement() const
65 { 65 {
66 return toHTMLElement(inputElement()->userAgentShadowRoot()->getElementById(S hadowElementNames::spinButton())); 66 return toHTMLElement(inputElement()->closedShadowRoot()->getElementById(Shad owElementNames::spinButton()));
67 } 67 }
68 68
69 void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout Point& paintOffset) 69 void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout Point& paintOffset)
70 { 70 {
71 LayoutTextControl::paint(paintInfo, paintOffset); 71 LayoutTextControl::paint(paintInfo, paintOffset);
72 72
73 if (paintInfo.phase == PaintPhaseBlockBackground && m_shouldDrawCapsLockIndi cator) { 73 if (paintInfo.phase == PaintPhaseBlockBackground && m_shouldDrawCapsLockIndi cator) {
74 LayoutRect contentsRect = contentBoxRect(); 74 LayoutRect contentsRect = contentBoxRect();
75 75
76 // Center in the block progression direction. 76 // Center in the block progression direction.
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 if (innerEditorElement()) 422 if (innerEditorElement())
423 innerEditorElement()->setScrollTop(newTop); 423 innerEditorElement()->setScrollTop(newTop);
424 } 424 }
425 425
426 HTMLInputElement* LayoutTextControlSingleLine::inputElement() const 426 HTMLInputElement* LayoutTextControlSingleLine::inputElement() const
427 { 427 {
428 return toHTMLInputElement(node()); 428 return toHTMLInputElement(node());
429 } 429 }
430 430
431 } 431 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutSliderContainer.cpp ('k') | Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698